Class DomainPurchaseConsent
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.DomainPurchaseConsent
-
public final class DomainPurchaseConsent extends Object
Domain purchase consent object, representing acceptance of applicable legal agreements.
-
-
Constructor Summary
Constructors Constructor Description DomainPurchaseConsent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeagreedAt()Get the agreedAt property: Timestamp when the agreements were accepted.StringagreedBy()Get the agreedBy property: Client IP address.List<String>agreementKeys()Get the agreementKeys property: List of applicable legal agreement keys.voidvalidate()Validates the instance.DomainPurchaseConsentwithAgreedAt(OffsetDateTime agreedAt)Set the agreedAt property: Timestamp when the agreements were accepted.DomainPurchaseConsentwithAgreedBy(String agreedBy)Set the agreedBy property: Client IP address.DomainPurchaseConsentwithAgreementKeys(List<String> agreementKeys)Set the agreementKeys property: List of applicable legal agreement keys.
-
-
-
Method Detail
-
agreementKeys
public List<String> agreementKeys()
Get the agreementKeys property: List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under <code>TopLevelDomain</code> resource.- Returns:
- the agreementKeys value.
-
withAgreementKeys
public DomainPurchaseConsent withAgreementKeys(List<String> agreementKeys)
Set the agreementKeys property: List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under <code>TopLevelDomain</code> resource.- Parameters:
agreementKeys- the agreementKeys value to set.- Returns:
- the DomainPurchaseConsent object itself.
-
agreedBy
public String agreedBy()
Get the agreedBy property: Client IP address.- Returns:
- the agreedBy value.
-
withAgreedBy
public DomainPurchaseConsent withAgreedBy(String agreedBy)
Set the agreedBy property: Client IP address.- Parameters:
agreedBy- the agreedBy value to set.- Returns:
- the DomainPurchaseConsent object itself.
-
agreedAt
public OffsetDateTime agreedAt()
Get the agreedAt property: Timestamp when the agreements were accepted.- Returns:
- the agreedAt value.
-
withAgreedAt
public DomainPurchaseConsent withAgreedAt(OffsetDateTime agreedAt)
Set the agreedAt property: Timestamp when the agreements were accepted.- Parameters:
agreedAt- the agreedAt value to set.- Returns:
- the DomainPurchaseConsent object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-