CustomImageProperties Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. fluent. models. CustomImageProperties
- com.
Implements
public final class CustomImageProperties
implements JsonSerializable<CustomImageProperties>
Properties of a custom image.
Constructor Summary
| Constructor | Description |
|---|---|
| CustomImageProperties() |
Creates an instance of Custom |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
author()
Get the author property: The author of the custom image. |
|
Offset |
creationDate()
Get the creation |
|
Custom |
customImagePlan()
Get the custom |
|
List<Data |
dataDiskStorageInfo()
Get the data |
| String |
description()
Get the description property: The description of the custom image. |
|
static
Custom |
fromJson(JsonReader jsonReader)
Reads an instance of Custom |
| Boolean |
isPlanAuthorized()
Get the is |
| String |
managedImageId()
Get the managed |
| String |
managedSnapshotId()
Get the managed |
| String |
provisioningState()
Get the provisioning |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
uniqueIdentifier()
Get the unique |
| void |
validate()
Validates the instance. |
|
Custom |
vhd()
Get the vhd property: The VHD from which the image is to be created. |
|
Custom |
vm()
Get the vm property: The virtual machine from which the image is to be created. |
|
Custom |
withAuthor(String author)
Set the author property: The author of the custom image. |
|
Custom |
withCustomImagePlan(CustomImagePropertiesFromPlan customImagePlan)
Set the custom |
|
Custom |
withDataDiskStorageInfo(List<DataDiskStorageTypeInfo> dataDiskStorageInfo)
Set the data |
|
Custom |
withDescription(String description)
Set the description property: The description of the custom image. |
|
Custom |
withIsPlanAuthorized(Boolean isPlanAuthorized)
Set the is |
|
Custom |
withManagedImageId(String managedImageId)
Set the managed |
|
Custom |
withManagedSnapshotId(String managedSnapshotId)
Set the managed |
|
Custom |
withVhd(CustomImagePropertiesCustom vhd)
Set the vhd property: The VHD from which the image is to be created. |
|
Custom |
withVm(CustomImagePropertiesFromVm vm)
Set the vm property: The virtual machine from which the image is to be created. |
Methods inherited from java.lang.Object
Constructor Details
CustomImageProperties
public CustomImageProperties()
Creates an instance of CustomImageProperties class.
Method Details
author
public String author()
Get the author property: The author of the custom image.
Returns:
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: The creation date of the custom image.
Returns:
customImagePlan
public CustomImagePropertiesFromPlan customImagePlan()
Get the customImagePlan property: Storage information about the plan related to this custom image.
Returns:
dataDiskStorageInfo
public List<DataDiskStorageTypeInfo> dataDiskStorageInfo()
Get the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.
Returns:
description
public String description()
Get the description property: The description of the custom image.
Returns:
fromJson
public static CustomImageProperties fromJson(JsonReader jsonReader)
Reads an instance of CustomImageProperties from the JsonReader.
Parameters:
Returns:
Throws:
isPlanAuthorized
public Boolean isPlanAuthorized()
Get the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.
Returns:
managedImageId
public String managedImageId()
Get the managedImageId property: The Managed Image Id backing the custom image.
Returns:
managedSnapshotId
public String managedSnapshotId()
Get the managedSnapshotId property: The Managed Snapshot Id backing the custom image.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning status of the resource.
Returns:
toJson
uniqueIdentifier
public String uniqueIdentifier()
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
Returns:
validate
public void validate()
Validates the instance.
vhd
public CustomImagePropertiesCustom vhd()
Get the vhd property: The VHD from which the image is to be created.
Returns:
vm
public CustomImagePropertiesFromVm vm()
Get the vm property: The virtual machine from which the image is to be created.
Returns:
withAuthor
public CustomImageProperties withAuthor(String author)
Set the author property: The author of the custom image.
Parameters:
Returns:
withCustomImagePlan
public CustomImageProperties withCustomImagePlan(CustomImagePropertiesFromPlan customImagePlan)
Set the customImagePlan property: Storage information about the plan related to this custom image.
Parameters:
Returns:
withDataDiskStorageInfo
public CustomImageProperties withDataDiskStorageInfo(List<DataDiskStorageTypeInfo> dataDiskStorageInfo)
Set the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.
Parameters:
Returns:
withDescription
public CustomImageProperties withDescription(String description)
Set the description property: The description of the custom image.
Parameters:
Returns:
withIsPlanAuthorized
public CustomImageProperties withIsPlanAuthorized(Boolean isPlanAuthorized)
Set the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.
Parameters:
Returns:
withManagedImageId
public CustomImageProperties withManagedImageId(String managedImageId)
Set the managedImageId property: The Managed Image Id backing the custom image.
Parameters:
Returns:
withManagedSnapshotId
public CustomImageProperties withManagedSnapshotId(String managedSnapshotId)
Set the managedSnapshotId property: The Managed Snapshot Id backing the custom image.
Parameters:
Returns:
withVhd
public CustomImageProperties withVhd(CustomImagePropertiesCustom vhd)
Set the vhd property: The VHD from which the image is to be created.
Parameters:
Returns:
withVm
public CustomImageProperties withVm(CustomImagePropertiesFromVm vm)
Set the vm property: The virtual machine from which the image is to be created.
Parameters:
Returns: