Class AfdEndpointUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.cdn.models.AfdEndpointUpdateParameters
-
public class AfdEndpointUpdateParameters extends Object
Properties required to create or update an endpoint.
-
-
Constructor Summary
Constructors Constructor Description AfdEndpointUpdateParameters()
-
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.Map<String,String>tags()Get the tags property: Endpoint tags.voidvalidate()Validates the instance.AfdEndpointUpdateParameterswithEnabledState(EnabledState enabledState)Set the enabledState property: Whether to enable use of this rule.AfdEndpointUpdateParameterswithOriginResponseTimeoutSeconds(Integer originResponseTimeoutSeconds)Set the originResponseTimeoutSeconds property: Send and receive timeout on forwarding request to the origin.AfdEndpointUpdateParameterswithTags(Map<String,String> tags)Set the tags property: Endpoint tags.
-
-
-
Method Detail
-
tags
public Map<String,String> tags()
Get the tags property: Endpoint tags.- Returns:
- the tags value.
-
withTags
public AfdEndpointUpdateParameters withTags(Map<String,String> tags)
Set the tags property: Endpoint tags.- Parameters:
tags- the tags value to set.- Returns:
- the AfdEndpointUpdateParameters object itself.
-
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 AfdEndpointUpdateParameters 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 AfdEndpointUpdateParameters 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 AfdEndpointUpdateParameters 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 AfdEndpointUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-