Class AfdEndpointProperties
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.AfdEndpointPropertiesUpdateParameters
-
- com.azure.resourcemanager.cdn.models.AfdEndpointProperties
-
public final class AfdEndpointProperties extends AfdEndpointPropertiesUpdateParameters
The JSON object that contains the properties required to create an endpoint.
-
-
Constructor Summary
Constructors Constructor Description AfdEndpointProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentStatusdeploymentStatus()Get the deploymentStatus property: The deploymentStatus property.Stringhostname()Get the hostname property: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g.AfdProvisioningStateprovisioningState()Get the provisioningState property: Provisioning status.voidvalidate()Validates the instance.AfdEndpointPropertieswithEnabledState(EnabledState enabledState)Set the enabledState property: Whether to enable use of this rule.AfdEndpointPropertieswithOriginResponseTimeoutSeconds(Integer originResponseTimeoutSeconds)Set the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin.-
Methods inherited from class com.azure.resourcemanager.cdn.models.AfdEndpointPropertiesUpdateParameters
enabledState, originResponseTimeoutSeconds
-
-
-
-
Method Detail
-
hostname
public String hostname()
Get the hostname property: The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net.- Returns:
- the hostname value.
-
provisioningState
public AfdProvisioningState provisioningState()
Get the provisioningState property: Provisioning status.- Returns:
- the provisioningState value.
-
deploymentStatus
public DeploymentStatus deploymentStatus()
Get the deploymentStatus property: The deploymentStatus property.- Returns:
- the deploymentStatus value.
-
withOriginResponseTimeoutSeconds
public AfdEndpointProperties withOriginResponseTimeoutSeconds(Integer originResponseTimeoutSeconds)
Set the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.- Overrides:
withOriginResponseTimeoutSecondsin classAfdEndpointPropertiesUpdateParameters- Parameters:
originResponseTimeoutSeconds- the originResponseTimeoutSeconds value to set.- Returns:
- the AfdEndpointPropertiesUpdateParameters object itself.
-
withEnabledState
public AfdEndpointProperties withEnabledState(EnabledState enabledState)
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.
-
-