Class DomainPatchResource
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.appservice.models.ProxyOnlyResource
-
- com.azure.resourcemanager.appservice.models.DomainPatchResource
-
public final class DomainPatchResource extends ProxyOnlyResource
ARM resource for a domain.
-
-
Constructor Summary
Constructors Constructor Description DomainPatchResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringauthCode()Get the authCode property: The authCode property.BooleanautoRenew()Get the autoRenew property: <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>.DomainPurchaseConsentconsent()Get the consent property: Legal agreement consent.ContactcontactAdmin()Get the contactAdmin property: Administrative contact.ContactcontactBilling()Get the contactBilling property: Billing contact.ContactcontactRegistrant()Get the contactRegistrant property: Registrant contact.ContactcontactTech()Get the contactTech property: Technical contact.OffsetDateTimecreatedTime()Get the createdTime property: Domain creation timestamp.DnsTypednsType()Get the dnsType property: Current DNS type.StringdnsZoneId()Get the dnsZoneId property: Azure DNS Zone to use.List<DomainPatchResourcePropertiesDomainNotRenewableReasonsItem>domainNotRenewableReasons()Get the domainNotRenewableReasons property: Reasons why domain is not renewable.OffsetDateTimeexpirationTime()Get the expirationTime property: Domain expiration timestamp.OffsetDateTimelastRenewedTime()Get the lastRenewedTime property: Timestamp when the domain was renewed last time.List<Hostname>managedHostNames()Get the managedHostNames property: All hostnames derived from the domain and assigned to Azure resources.List<String>nameServers()Get the nameServers property: Name servers.Booleanprivacy()Get the privacy property: <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>.ProvisioningStateprovisioningState()Get the provisioningState property: Domain provisioning state.BooleanreadyForDnsRecordManagement()Get the readyForDnsRecordManagement property: <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>.DomainStatusregistrationStatus()Get the registrationStatus property: Domain registration status.DnsTypetargetDnsType()Get the targetDnsType property: Target DNS type (would be used for migration).voidvalidate()Validates the instance.DomainPatchResourcewithAuthCode(String authCode)Set the authCode property: The authCode property.DomainPatchResourcewithAutoRenew(Boolean autoRenew)Set the autoRenew property: <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>.DomainPatchResourcewithConsent(DomainPurchaseConsent consent)Set the consent property: Legal agreement consent.DomainPatchResourcewithContactAdmin(Contact contactAdmin)Set the contactAdmin property: Administrative contact.DomainPatchResourcewithContactBilling(Contact contactBilling)Set the contactBilling property: Billing contact.DomainPatchResourcewithContactRegistrant(Contact contactRegistrant)Set the contactRegistrant property: Registrant contact.DomainPatchResourcewithContactTech(Contact contactTech)Set the contactTech property: Technical contact.DomainPatchResourcewithDnsType(DnsType dnsType)Set the dnsType property: Current DNS type.DomainPatchResourcewithDnsZoneId(String dnsZoneId)Set the dnsZoneId property: Azure DNS Zone to use.DomainPatchResourcewithKind(String kind)Set the kind property: Kind of resource.DomainPatchResourcewithPrivacy(Boolean privacy)Set the privacy property: <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>.DomainPatchResourcewithTargetDnsType(DnsType targetDnsType)Set the targetDnsType property: Target DNS type (would be used for migration).-
Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kind
-
-
-
-
Method Detail
-
withKind
public DomainPatchResource withKind(String kind)
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
contactAdmin
public Contact contactAdmin()
Get the contactAdmin property: Administrative contact.- Returns:
- the contactAdmin value.
-
withContactAdmin
public DomainPatchResource withContactAdmin(Contact contactAdmin)
Set the contactAdmin property: Administrative contact.- Parameters:
contactAdmin- the contactAdmin value to set.- Returns:
- the DomainPatchResource object itself.
-
contactBilling
public Contact contactBilling()
Get the contactBilling property: Billing contact.- Returns:
- the contactBilling value.
-
withContactBilling
public DomainPatchResource withContactBilling(Contact contactBilling)
Set the contactBilling property: Billing contact.- Parameters:
contactBilling- the contactBilling value to set.- Returns:
- the DomainPatchResource object itself.
-
contactRegistrant
public Contact contactRegistrant()
Get the contactRegistrant property: Registrant contact.- Returns:
- the contactRegistrant value.
-
withContactRegistrant
public DomainPatchResource withContactRegistrant(Contact contactRegistrant)
Set the contactRegistrant property: Registrant contact.- Parameters:
contactRegistrant- the contactRegistrant value to set.- Returns:
- the DomainPatchResource object itself.
-
contactTech
public Contact contactTech()
Get the contactTech property: Technical contact.- Returns:
- the contactTech value.
-
withContactTech
public DomainPatchResource withContactTech(Contact contactTech)
Set the contactTech property: Technical contact.- Parameters:
contactTech- the contactTech value to set.- Returns:
- the DomainPatchResource object itself.
-
registrationStatus
public DomainStatus registrationStatus()
Get the registrationStatus property: Domain registration status.- Returns:
- the registrationStatus value.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Domain provisioning state.- Returns:
- the provisioningState value.
-
nameServers
public List<String> nameServers()
Get the nameServers property: Name servers.- Returns:
- the nameServers value.
-
privacy
public Boolean privacy()
Get the privacy property: <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>.- Returns:
- the privacy value.
-
withPrivacy
public DomainPatchResource withPrivacy(Boolean privacy)
Set the privacy property: <code>true</code> if domain privacy is enabled for this domain; otherwise, <code>false</code>.- Parameters:
privacy- the privacy value to set.- Returns:
- the DomainPatchResource object itself.
-
createdTime
public OffsetDateTime createdTime()
Get the createdTime property: Domain creation timestamp.- Returns:
- the createdTime value.
-
expirationTime
public OffsetDateTime expirationTime()
Get the expirationTime property: Domain expiration timestamp.- Returns:
- the expirationTime value.
-
lastRenewedTime
public OffsetDateTime lastRenewedTime()
Get the lastRenewedTime property: Timestamp when the domain was renewed last time.- Returns:
- the lastRenewedTime value.
-
autoRenew
public Boolean autoRenew()
Get the autoRenew property: <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>.- Returns:
- the autoRenew value.
-
withAutoRenew
public DomainPatchResource withAutoRenew(Boolean autoRenew)
Set the autoRenew property: <code>true</code> if the domain should be automatically renewed; otherwise, <code>false</code>.- Parameters:
autoRenew- the autoRenew value to set.- Returns:
- the DomainPatchResource object itself.
-
readyForDnsRecordManagement
public Boolean readyForDnsRecordManagement()
Get the readyForDnsRecordManagement property: <code>true</code> if Azure can assign this domain to App Service apps; otherwise, <code>false</code>. This value will be <code>true</code> if domain registration status is active and it is hosted on name servers Azure has programmatic access to.- Returns:
- the readyForDnsRecordManagement value.
-
managedHostNames
public List<Hostname> managedHostNames()
Get the managedHostNames property: All hostnames derived from the domain and assigned to Azure resources.- Returns:
- the managedHostNames value.
-
consent
public DomainPurchaseConsent consent()
Get the consent property: Legal agreement consent.- Returns:
- the consent value.
-
withConsent
public DomainPatchResource withConsent(DomainPurchaseConsent consent)
Set the consent property: Legal agreement consent.- Parameters:
consent- the consent value to set.- Returns:
- the DomainPatchResource object itself.
-
domainNotRenewableReasons
public List<DomainPatchResourcePropertiesDomainNotRenewableReasonsItem> domainNotRenewableReasons()
Get the domainNotRenewableReasons property: Reasons why domain is not renewable.- Returns:
- the domainNotRenewableReasons value.
-
dnsType
public DnsType dnsType()
Get the dnsType property: Current DNS type.- Returns:
- the dnsType value.
-
withDnsType
public DomainPatchResource withDnsType(DnsType dnsType)
Set the dnsType property: Current DNS type.- Parameters:
dnsType- the dnsType value to set.- Returns:
- the DomainPatchResource object itself.
-
dnsZoneId
public String dnsZoneId()
Get the dnsZoneId property: Azure DNS Zone to use.- Returns:
- the dnsZoneId value.
-
withDnsZoneId
public DomainPatchResource withDnsZoneId(String dnsZoneId)
Set the dnsZoneId property: Azure DNS Zone to use.- Parameters:
dnsZoneId- the dnsZoneId value to set.- Returns:
- the DomainPatchResource object itself.
-
targetDnsType
public DnsType targetDnsType()
Get the targetDnsType property: Target DNS type (would be used for migration).- Returns:
- the targetDnsType value.
-
withTargetDnsType
public DomainPatchResource withTargetDnsType(DnsType targetDnsType)
Set the targetDnsType property: Target DNS type (would be used for migration).- Parameters:
targetDnsType- the targetDnsType value to set.- Returns:
- the DomainPatchResource object itself.
-
authCode
public String authCode()
Get the authCode property: The authCode property.- Returns:
- the authCode value.
-
withAuthCode
public DomainPatchResource withAuthCode(String authCode)
Set the authCode property: The authCode property.- Parameters:
authCode- the authCode value to set.- Returns:
- the DomainPatchResource object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-