Class AfdEndpointProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.AfdEndpointPropertiesUpdateParameters
com.azure.resourcemanager.cdn.fluent.models.AfdEndpointProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdEndpointPropertiesUpdateParameters>
The JSON object that contains the properties required to create an endpoint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.Get the deploymentStatus property: The deploymentStatus property.static AfdEndpointPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AfdEndpointProperties from the JsonReader.hostname()Get the hostname property: The host name of the endpoint structured as {endpointName}.Get the profileName property: The name of the profile which holds the endpoint.Get the provisioningState property: Provisioning status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAutoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope) Set the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.withEnabledState(EnabledState enabledState) Set the enabledState property: Whether to enable use of this rule.Methods inherited from class AfdEndpointPropertiesUpdateParameters
enabledStateMethods inherited from class 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
-
AfdEndpointProperties
public AfdEndpointProperties()Creates an instance of AfdEndpointProperties class.
-
-
Method Details
-
hostname
Get the hostname property: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net.- Returns:
- the hostname value.
-
autoGeneratedDomainNameLabelScope
Get the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope. The default value is TenantReuse.- Returns:
- the autoGeneratedDomainNameLabelScope value.
-
withAutoGeneratedDomainNameLabelScope
public AfdEndpointProperties withAutoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope) Set the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope. The default value is TenantReuse.- Parameters:
autoGeneratedDomainNameLabelScope- the autoGeneratedDomainNameLabelScope value to set.- Returns:
- the AfdEndpointProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
profileName
Get the profileName property: The name of the profile which holds the endpoint.- Overrides:
profileNamein classAfdEndpointPropertiesUpdateParameters- Returns:
- the profileName value.
-
withEnabledState
Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Overrides:
withEnabledStatein classAfdEndpointPropertiesUpdateParameters- Parameters:
enabledState- the enabledState value to set.- Returns:
- the AfdEndpointPropertiesUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAfdEndpointPropertiesUpdateParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AfdEndpointPropertiesUpdateParameters>- Overrides:
toJsonin classAfdEndpointPropertiesUpdateParameters- Throws:
IOException
-
fromJson
public static AfdEndpointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AfdEndpointProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AfdEndpointProperties 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 AfdEndpointProperties.
-