Class AfdDomainUpdatePropertiesParameters
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.AfdDomainUpdatePropertiesParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdDomainUpdatePropertiesParameters>
- Direct Known Subclasses:
AfdDomainProperties
public class AfdDomainUpdatePropertiesParameters
extends Object
implements com.azure.json.JsonSerializable<AfdDomainUpdatePropertiesParameters>
The JSON object that contains the properties of the domain to create.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AfdDomainUpdatePropertiesParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the azureDnsZone property: Resource reference to the Azure DNS zone.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AfdDomainUpdatePropertiesParameters from the JsonReader.Get the preValidatedCustomDomainResourceId property: Resource reference to the Azure resource where custom domain ownership was prevalidated.Get the profileName property: The name of the profile which holds the domain.Get the tlsSettings property: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAzureDnsZone(ResourceReference azureDnsZone) Set the azureDnsZone property: Resource reference to the Azure DNS zone.withPreValidatedCustomDomainResourceId(ResourceReference preValidatedCustomDomainResourceId) Set the preValidatedCustomDomainResourceId property: Resource reference to the Azure resource where custom domain ownership was prevalidated.withTlsSettings(AfdDomainHttpsParameters tlsSettings) Set the tlsSettings property: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AfdDomainUpdatePropertiesParameters
public AfdDomainUpdatePropertiesParameters()Creates an instance of AfdDomainUpdatePropertiesParameters class.
-
-
Method Details
-
profileName
Get the profileName property: The name of the profile which holds the domain.- Returns:
- the profileName value.
-
tlsSettings
Get the tlsSettings property: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.- Returns:
- the tlsSettings value.
-
withTlsSettings
Set the tlsSettings property: The configuration specifying how to enable HTTPS for the domain - using AzureFrontDoor managed certificate or user's own certificate. If not specified, enabling ssl uses AzureFrontDoor managed certificate by default.- Parameters:
tlsSettings- the tlsSettings value to set.- Returns:
- the AfdDomainUpdatePropertiesParameters object itself.
-
azureDnsZone
Get the azureDnsZone property: Resource reference to the Azure DNS zone.- Returns:
- the azureDnsZone value.
-
withAzureDnsZone
Set the azureDnsZone property: Resource reference to the Azure DNS zone.- Parameters:
azureDnsZone- the azureDnsZone value to set.- Returns:
- the AfdDomainUpdatePropertiesParameters object itself.
-
preValidatedCustomDomainResourceId
Get the preValidatedCustomDomainResourceId property: Resource reference to the Azure resource where custom domain ownership was prevalidated.- Returns:
- the preValidatedCustomDomainResourceId value.
-
withPreValidatedCustomDomainResourceId
public AfdDomainUpdatePropertiesParameters withPreValidatedCustomDomainResourceId(ResourceReference preValidatedCustomDomainResourceId) Set the preValidatedCustomDomainResourceId property: Resource reference to the Azure resource where custom domain ownership was prevalidated.- Parameters:
preValidatedCustomDomainResourceId- the preValidatedCustomDomainResourceId value to set.- Returns:
- the AfdDomainUpdatePropertiesParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AfdDomainUpdatePropertiesParameters>- Throws:
IOException
-
fromJson
public static AfdDomainUpdatePropertiesParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AfdDomainUpdatePropertiesParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AfdDomainUpdatePropertiesParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AfdDomainUpdatePropertiesParameters.
-