Class AfdEndpointPropertiesUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.AfdEndpointPropertiesUpdateParameters
-
- Direct Known Subclasses:
AfdEndpointProperties
public class AfdEndpointPropertiesUpdateParameters extends Object
The JSON object containing endpoint update parameters.
-
-
Constructor Summary
Constructors Constructor Description AfdEndpointPropertiesUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnabledStateenabledState()Get the enabledState property: Whether to enable use of this rule.IntegeroriginResponseTimeoutSeconds()Get the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin.voidvalidate()Validates the instance.AfdEndpointPropertiesUpdateParameterswithEnabledState(EnabledState enabledState)Set the enabledState property: Whether to enable use of this rule.AfdEndpointPropertiesUpdateParameterswithOriginResponseTimeoutSeconds(Integer originResponseTimeoutSeconds)Set the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin.
-
-
-
Method Detail
-
originResponseTimeoutSeconds
public Integer originResponseTimeoutSeconds()
Get the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.- Returns:
- the originResponseTimeoutSeconds value.
-
withOriginResponseTimeoutSeconds
public AfdEndpointPropertiesUpdateParameters 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.- Parameters:
originResponseTimeoutSeconds- the originResponseTimeoutSeconds value to set.- Returns:
- the AfdEndpointPropertiesUpdateParameters object itself.
-
enabledState
public EnabledState enabledState()
Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Returns:
- the enabledState value.
-
withEnabledState
public AfdEndpointPropertiesUpdateParameters withEnabledState(EnabledState enabledState)
Set the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Parameters:
enabledState- the enabledState value to set.- Returns:
- the AfdEndpointPropertiesUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-