Class AfdEndpointUpdateParameters
java.lang.Object
com.azure.resourcemanager.cdn.models.AfdEndpointUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdEndpointUpdateParameters>
public final class AfdEndpointUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<AfdEndpointUpdateParameters>
Properties required to create or update an endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AfdEndpointUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the enabledState property: Whether to enable use of this rule.static AfdEndpointUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AfdEndpointUpdateParameters from the JsonReader.Get the profileName property: The name of the profile which holds the endpoint.tags()Get the tags property: Endpoint tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabledState(EnabledState enabledState) Set the enabledState property: Whether to enable use of this rule.Set the tags property: Endpoint tags.Methods 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
-
AfdEndpointUpdateParameters
public AfdEndpointUpdateParameters()Creates an instance of AfdEndpointUpdateParameters class.
-
-
Method Details
-
tags
Get the tags property: Endpoint tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Endpoint tags.- Parameters:
tags- the tags value to set.- Returns:
- the AfdEndpointUpdateParameters object itself.
-
profileName
Get the profileName property: The name of the profile which holds the endpoint.- Returns:
- the profileName value.
-
enabledState
Get the enabledState property: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'.- Returns:
- the enabledState value.
-
withEnabledState
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AfdEndpointUpdateParameters>- Throws:
IOException
-
fromJson
public static AfdEndpointUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AfdEndpointUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AfdEndpointUpdateParameters 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 AfdEndpointUpdateParameters.
-