Class AfdEndpointPropertiesUpdateParameters
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.AfdEndpointPropertiesUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AfdEndpointPropertiesUpdateParameters>
- Direct Known Subclasses:
AfdEndpointProperties
public class AfdEndpointPropertiesUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<AfdEndpointPropertiesUpdateParameters>
The JSON object containing endpoint update parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AfdEndpointPropertiesUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the enabledState property: Whether to enable use of this rule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AfdEndpointPropertiesUpdateParameters from the JsonReader.Get the profileName property: The name of the profile which holds the endpoint.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.Methods inherited from class 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
-
AfdEndpointPropertiesUpdateParameters
public AfdEndpointPropertiesUpdateParameters()Creates an instance of AfdEndpointPropertiesUpdateParameters class.
-
-
Method Details
-
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 AfdEndpointPropertiesUpdateParameters 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<AfdEndpointPropertiesUpdateParameters>- Throws:
IOException
-
fromJson
public static AfdEndpointPropertiesUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AfdEndpointPropertiesUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AfdEndpointPropertiesUpdateParameters 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 AfdEndpointPropertiesUpdateParameters.
-