Class CsmMoveResourceEnvelope
java.lang.Object
com.azure.resourcemanager.appservice.models.CsmMoveResourceEnvelope
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CsmMoveResourceEnvelope>
public final class CsmMoveResourceEnvelope
extends Object
implements com.azure.json.JsonSerializable<CsmMoveResourceEnvelope>
Object with a list of the resources that need to be moved and the resource group they should be moved to.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CsmMoveResourceEnvelope class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CsmMoveResourceEnvelope
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CsmMoveResourceEnvelope from the JsonReader.Get the resources property: The resources property.Get the targetResourceGroup property: The targetResourceGroup property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withResources
(List<String> resources) Set the resources property: The resources property.withTargetResourceGroup
(String targetResourceGroup) Set the targetResourceGroup property: The targetResourceGroup property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CsmMoveResourceEnvelope
public CsmMoveResourceEnvelope()Creates an instance of CsmMoveResourceEnvelope class.
-
-
Method Details
-
targetResourceGroup
Get the targetResourceGroup property: The targetResourceGroup property.- Returns:
- the targetResourceGroup value.
-
withTargetResourceGroup
Set the targetResourceGroup property: The targetResourceGroup property.- Parameters:
targetResourceGroup
- the targetResourceGroup value to set.- Returns:
- the CsmMoveResourceEnvelope object itself.
-
resources
Get the resources property: The resources property.- Returns:
- the resources value.
-
withResources
Set the resources property: The resources property.- Parameters:
resources
- the resources value to set.- Returns:
- the CsmMoveResourceEnvelope object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CsmMoveResourceEnvelope>
- Throws:
IOException
-
fromJson
public static CsmMoveResourceEnvelope fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CsmMoveResourceEnvelope from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CsmMoveResourceEnvelope 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 CsmMoveResourceEnvelope.
-