Class ResourcesMoveInfo

java.lang.Object
com.azure.resourcemanager.resources.models.ResourcesMoveInfo
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourcesMoveInfo>

public final class ResourcesMoveInfo extends Object implements com.azure.json.JsonSerializable<ResourcesMoveInfo>
Parameters of move resources.
  • Constructor Details

    • ResourcesMoveInfo

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

    • resources

      public List<String> resources()
      Get the resources property: The IDs of the resources.
      Returns:
      the resources value.
    • withResources

      public ResourcesMoveInfo withResources(List<String> resources)
      Set the resources property: The IDs of the resources.
      Parameters:
      resources - the resources value to set.
      Returns:
      the ResourcesMoveInfo object itself.
    • targetResourceGroup

      public String targetResourceGroup()
      Get the targetResourceGroup property: The target resource group.
      Returns:
      the targetResourceGroup value.
    • withTargetResourceGroup

      public ResourcesMoveInfo withTargetResourceGroup(String targetResourceGroup)
      Set the targetResourceGroup property: The target resource group.
      Parameters:
      targetResourceGroup - the targetResourceGroup value to set.
      Returns:
      the ResourcesMoveInfo 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<ResourcesMoveInfo>
      Throws:
      IOException
    • fromJson

      public static ResourcesMoveInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResourcesMoveInfo from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResourcesMoveInfo 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 ResourcesMoveInfo.