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 Details

    • DisassociateCloudServicePublicIpRequest

      public DisassociateCloudServicePublicIpRequest()
      Creates an instance of DisassociateCloudServicePublicIpRequest class.
  • Method Details

    • publicIpArmId

      public String 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

      public DisassociateCloudServicePublicIpRequest withPublicIpArmId(String publicIpArmId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.