Class DisassociateCloudServicePublicIpRequest
java.lang.Object
com.azure.resourcemanager.network.models.DisassociateCloudServicePublicIpRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DisassociateCloudServicePublicIpRequest>
public final class DisassociateCloudServicePublicIpRequest
extends Object
implements com.azure.json.JsonSerializable<DisassociateCloudServicePublicIpRequest>
The request for DisassociateCloudServicePublicIpOperation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DisassociateCloudServicePublicIpRequest class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DisassociateCloudServicePublicIpRequest from the JsonReader.Get the publicIpArmId property: ARM ID of the Standalone Public IP to associate.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPublicIpArmId(String publicIpArmId) Set the publicIpArmId property: ARM ID of the Standalone Public IP to associate.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
-
DisassociateCloudServicePublicIpRequest
public DisassociateCloudServicePublicIpRequest()Creates an instance of DisassociateCloudServicePublicIpRequest class.
-
-
Method Details
-
publicIpArmId
Get the publicIpArmId property: ARM ID of the Standalone Public IP to associate. This is of the form : /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}.- Returns:
- the publicIpArmId value.
-
withPublicIpArmId
Set the publicIpArmId property: ARM ID of the Standalone Public IP to associate. This is of the form : /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}.- Parameters:
publicIpArmId- the publicIpArmId value to set.- Returns:
- the DisassociateCloudServicePublicIpRequest 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<DisassociateCloudServicePublicIpRequest>- Throws:
IOException
-
fromJson
public static DisassociateCloudServicePublicIpRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DisassociateCloudServicePublicIpRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DisassociateCloudServicePublicIpRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DisassociateCloudServicePublicIpRequest.
-