Class UnprepareNetworkPoliciesRequest
java.lang.Object
com.azure.resourcemanager.network.models.UnprepareNetworkPoliciesRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UnprepareNetworkPoliciesRequest>
public final class UnprepareNetworkPoliciesRequest
extends Object
implements com.azure.json.JsonSerializable<UnprepareNetworkPoliciesRequest>
Details of UnprepareNetworkPolicies for Subnet.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UnprepareNetworkPoliciesRequest class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UnprepareNetworkPoliciesRequest from the JsonReader.Get the serviceName property: The name of the service for which subnet is being unprepared for.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withServiceName(String serviceName) Set the serviceName property: The name of the service for which subnet is being unprepared for.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
-
UnprepareNetworkPoliciesRequest
public UnprepareNetworkPoliciesRequest()Creates an instance of UnprepareNetworkPoliciesRequest class.
-
-
Method Details
-
serviceName
Get the serviceName property: The name of the service for which subnet is being unprepared for.- Returns:
- the serviceName value.
-
withServiceName
Set the serviceName property: The name of the service for which subnet is being unprepared for.- Parameters:
serviceName- the serviceName value to set.- Returns:
- the UnprepareNetworkPoliciesRequest 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<UnprepareNetworkPoliciesRequest>- Throws:
IOException
-
fromJson
public static UnprepareNetworkPoliciesRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UnprepareNetworkPoliciesRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UnprepareNetworkPoliciesRequest 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 UnprepareNetworkPoliciesRequest.
-