Class VirtualMachineCaptureParameters
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineCaptureParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineCaptureParameters>
public final class VirtualMachineCaptureParameters
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineCaptureParameters>
Capture Virtual Machine parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineCaptureParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationContainerName property: The destination container name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineCaptureParameters from the JsonReader.booleanGet the overwriteVhds property: Specifies whether to overwrite the destination virtual hard disk, in case of conflict.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the vhdPrefix property: The captured virtual hard disk's name prefix.withDestinationContainerName(String destinationContainerName) Set the destinationContainerName property: The destination container name.withOverwriteVhds(boolean overwriteVhds) Set the overwriteVhds property: Specifies whether to overwrite the destination virtual hard disk, in case of conflict.withVhdPrefix(String vhdPrefix) Set the vhdPrefix property: The captured virtual hard disk's name prefix.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
-
VirtualMachineCaptureParameters
public VirtualMachineCaptureParameters()Creates an instance of VirtualMachineCaptureParameters class.
-
-
Method Details
-
vhdPrefix
Get the vhdPrefix property: The captured virtual hard disk's name prefix.- Returns:
- the vhdPrefix value.
-
withVhdPrefix
Set the vhdPrefix property: The captured virtual hard disk's name prefix.- Parameters:
vhdPrefix- the vhdPrefix value to set.- Returns:
- the VirtualMachineCaptureParameters object itself.
-
destinationContainerName
Get the destinationContainerName property: The destination container name.- Returns:
- the destinationContainerName value.
-
withDestinationContainerName
public VirtualMachineCaptureParameters withDestinationContainerName(String destinationContainerName) Set the destinationContainerName property: The destination container name.- Parameters:
destinationContainerName- the destinationContainerName value to set.- Returns:
- the VirtualMachineCaptureParameters object itself.
-
overwriteVhds
public boolean overwriteVhds()Get the overwriteVhds property: Specifies whether to overwrite the destination virtual hard disk, in case of conflict.- Returns:
- the overwriteVhds value.
-
withOverwriteVhds
Set the overwriteVhds property: Specifies whether to overwrite the destination virtual hard disk, in case of conflict.- Parameters:
overwriteVhds- the overwriteVhds value to set.- Returns:
- the VirtualMachineCaptureParameters 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<VirtualMachineCaptureParameters>- Throws:
IOException
-
fromJson
public static VirtualMachineCaptureParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineCaptureParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineCaptureParameters 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 VirtualMachineCaptureParameters.
-