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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcesMoveInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ResourcesMoveInfo from the JsonReader.Get the resources property: The IDs of the resources.Get the targetResourceGroup property: The target resource group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withResources(List<String> resources) Set the resources property: The IDs of the resources.withTargetResourceGroup(String targetResourceGroup) Set the targetResourceGroup property: The target resource group.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
-
ResourcesMoveInfo
public ResourcesMoveInfo()Creates an instance of ResourcesMoveInfo class.
-
-
Method Details
-
resources
Get the resources property: The IDs of the resources.- Returns:
- the resources value.
-
withResources
Set the resources property: The IDs of the resources.- Parameters:
resources- the resources value to set.- Returns:
- the ResourcesMoveInfo object itself.
-
targetResourceGroup
Get the targetResourceGroup property: The target resource group.- Returns:
- the targetResourceGroup value.
-
withTargetResourceGroup
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourcesMoveInfo>- Throws:
IOException
-
fromJson
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.
-