Class AfdOriginProperties
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.AfdOriginUpdatePropertiesParameters
com.azure.resourcemanager.cdn.fluent.models.AfdOriginProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdOriginUpdatePropertiesParameters>
The JSON object that contains the properties of the origin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the deploymentStatus property: The deploymentStatus property.static AfdOriginPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AfdOriginProperties from the JsonReader.Get the originGroupName property: The name of the origin group which contains this origin.Get the provisioningState property: Provisioning status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAzureOrigin(ResourceReference azureOrigin) Set the azureOrigin property: Resource reference to the Azure origin resource.withEnabledState(EnabledState enabledState) Set the enabledState property: Whether to enable health probes to be made against backends defined under backendPools.withEnforceCertificateNameCheck(Boolean enforceCertificateNameCheck) Set the enforceCertificateNameCheck property: Whether to enable certificate name check at origin level.withHostname(String hostname) Set the hostname property: The address of the origin.withHttpPort(Integer httpPort) Set the httpPort property: The value of the HTTP port.withHttpsPort(Integer httpsPort) Set the httpsPort property: The value of the HTTPS port.withOriginHostHeader(String originHostHeader) Set the originHostHeader property: The host header value sent to the origin with each request.withPriority(Integer priority) Set the priority property: Priority of origin in given origin group for load balancing.withSharedPrivateLinkResource(SharedPrivateLinkResourceProperties sharedPrivateLinkResource) Set the sharedPrivateLinkResource property: The properties of the private link resource for private origin.withWeight(Integer weight) Set the weight property: Weight of the origin in given origin group for load balancing.Methods inherited from class com.azure.resourcemanager.cdn.fluent.models.AfdOriginUpdatePropertiesParameters
azureOrigin, enabledState, enforceCertificateNameCheck, hostname, httpPort, httpsPort, originHostHeader, priority, sharedPrivateLinkResource, weightMethods 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
-
AfdOriginProperties
public AfdOriginProperties()Creates an instance of AfdOriginProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
originGroupName
Get the originGroupName property: The name of the origin group which contains this origin.- Overrides:
originGroupNamein classAfdOriginUpdatePropertiesParameters- Returns:
- the originGroupName value.
-
withAzureOrigin
Set the azureOrigin property: Resource reference to the Azure origin resource.- Overrides:
withAzureOriginin classAfdOriginUpdatePropertiesParameters- Parameters:
azureOrigin- the azureOrigin value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
withHostname
Set the hostname property: The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.- Overrides:
withHostnamein classAfdOriginUpdatePropertiesParameters- Parameters:
hostname- the hostname value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
withHttpPort
Set the httpPort property: The value of the HTTP port. Must be between 1 and 65535.- Overrides:
withHttpPortin classAfdOriginUpdatePropertiesParameters- Parameters:
httpPort- the httpPort value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
withHttpsPort
Set the httpsPort property: The value of the HTTPS port. Must be between 1 and 65535.- Overrides:
withHttpsPortin classAfdOriginUpdatePropertiesParameters- Parameters:
httpsPort- the httpsPort value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
withOriginHostHeader
Set the originHostHeader property: The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint.- Overrides:
withOriginHostHeaderin classAfdOriginUpdatePropertiesParameters- Parameters:
originHostHeader- the originHostHeader value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
withPriority
Set the priority property: Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5.- Overrides:
withPriorityin classAfdOriginUpdatePropertiesParameters- Parameters:
priority- the priority value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
withWeight
Set the weight property: Weight of the origin in given origin group for load balancing. Must be between 1 and 1000.- Overrides:
withWeightin classAfdOriginUpdatePropertiesParameters- Parameters:
weight- the weight value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
withEnabledState
Set the enabledState property: Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.- Overrides:
withEnabledStatein classAfdOriginUpdatePropertiesParameters- Parameters:
enabledState- the enabledState value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
withEnforceCertificateNameCheck
Set the enforceCertificateNameCheck property: Whether to enable certificate name check at origin level.- Overrides:
withEnforceCertificateNameCheckin classAfdOriginUpdatePropertiesParameters- Parameters:
enforceCertificateNameCheck- the enforceCertificateNameCheck value to set.- Returns:
- the AfdOriginUpdatePropertiesParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAfdOriginUpdatePropertiesParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AfdOriginUpdatePropertiesParameters>- Overrides:
toJsonin classAfdOriginUpdatePropertiesParameters- Throws:
IOException
-
fromJson
Reads an instance of AfdOriginProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AfdOriginProperties 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 AfdOriginProperties.
-