Freigeben über


CustomImageProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.fluent.models.CustomImageProperties

Implements

public final class CustomImageProperties
implements JsonSerializable<CustomImageProperties>

Properties of a custom image.

Constructor Summary

Constructor Description
CustomImageProperties()

Creates an instance of CustomImageProperties class.

Method Summary

Modifier and Type Method and Description
String author()

Get the author property: The author of the custom image.

OffsetDateTime creationDate()

Get the creationDate property: The creation date of the custom image.

CustomImagePropertiesFromPlan customImagePlan()

Get the customImagePlan property: Storage information about the plan related to this custom image.

List<DataDiskStorageTypeInfo> dataDiskStorageInfo()

Get the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.

String description()

Get the description property: The description of the custom image.

static CustomImageProperties fromJson(JsonReader jsonReader)

Reads an instance of CustomImageProperties from the JsonReader.

Boolean isPlanAuthorized()

Get the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.

String managedImageId()

Get the managedImageId property: The Managed Image Id backing the custom image.

String managedSnapshotId()

Get the managedSnapshotId property: The Managed Snapshot Id backing the custom image.

String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

void validate()

Validates the instance.

CustomImagePropertiesCustom vhd()

Get the vhd property: The VHD from which the image is to be created.

CustomImagePropertiesFromVm vm()

Get the vm property: The virtual machine from which the image is to be created.

CustomImageProperties withAuthor(String author)

Set the author property: The author of the custom image.

CustomImageProperties withCustomImagePlan(CustomImagePropertiesFromPlan customImagePlan)

Set the customImagePlan property: Storage information about the plan related to this custom image.

CustomImageProperties withDataDiskStorageInfo(List<DataDiskStorageTypeInfo> dataDiskStorageInfo)

Set the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.

CustomImageProperties withDescription(String description)

Set the description property: The description of the custom image.

CustomImageProperties withIsPlanAuthorized(Boolean isPlanAuthorized)

Set the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.

CustomImageProperties withManagedImageId(String managedImageId)

Set the managedImageId property: The Managed Image Id backing the custom image.

CustomImageProperties withManagedSnapshotId(String managedSnapshotId)

Set the managedSnapshotId property: The Managed Snapshot Id backing the custom image.

CustomImageProperties withVhd(CustomImagePropertiesCustom vhd)

Set the vhd property: The VHD from which the image is to be created.

CustomImageProperties 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:

the author value.

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The creation date of the custom image.

Returns:

the creationDate value.

customImagePlan

public CustomImagePropertiesFromPlan customImagePlan()

Get the customImagePlan property: Storage information about the plan related to this custom image.

Returns:

the customImagePlan value.

dataDiskStorageInfo

public List<DataDiskStorageTypeInfo> dataDiskStorageInfo()

Get the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.

Returns:

the dataDiskStorageInfo value.

description

public String description()

Get the description property: The description of the custom image.

Returns:

the description value.

fromJson

public static CustomImageProperties fromJson(JsonReader jsonReader)

Reads an instance of CustomImageProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomImageProperties 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 CustomImageProperties.

isPlanAuthorized

public Boolean isPlanAuthorized()

Get the isPlanAuthorized property: Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment.

Returns:

the isPlanAuthorized value.

managedImageId

public String managedImageId()

Get the managedImageId property: The Managed Image Id backing the custom image.

Returns:

the managedImageId value.

managedSnapshotId

public String managedSnapshotId()

Get the managedSnapshotId property: The Managed Snapshot Id backing the custom image.

Returns:

the managedSnapshotId value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uniqueIdentifier

public String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

Returns:

the uniqueIdentifier value.

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:

the vhd value.

vm

public CustomImagePropertiesFromVm vm()

Get the vm property: The virtual machine from which the image is to be created.

Returns:

the vm value.

withAuthor

public CustomImageProperties withAuthor(String author)

Set the author property: The author of the custom image.

Parameters:

author - the author value to set.

Returns:

the CustomImageProperties object itself.

withCustomImagePlan

public CustomImageProperties withCustomImagePlan(CustomImagePropertiesFromPlan customImagePlan)

Set the customImagePlan property: Storage information about the plan related to this custom image.

Parameters:

customImagePlan - the customImagePlan value to set.

Returns:

the CustomImageProperties object itself.

withDataDiskStorageInfo

public CustomImageProperties withDataDiskStorageInfo(List<DataDiskStorageTypeInfo> dataDiskStorageInfo)

Set the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.

Parameters:

dataDiskStorageInfo - the dataDiskStorageInfo value to set.

Returns:

the CustomImageProperties object itself.

withDescription

public CustomImageProperties withDescription(String description)

Set the description property: The description of the custom image.

Parameters:

description - the description value to set.

Returns:

the CustomImageProperties object itself.

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:

isPlanAuthorized - the isPlanAuthorized value to set.

Returns:

the CustomImageProperties object itself.

withManagedImageId

public CustomImageProperties withManagedImageId(String managedImageId)

Set the managedImageId property: The Managed Image Id backing the custom image.

Parameters:

managedImageId - the managedImageId value to set.

Returns:

the CustomImageProperties object itself.

withManagedSnapshotId

public CustomImageProperties withManagedSnapshotId(String managedSnapshotId)

Set the managedSnapshotId property: The Managed Snapshot Id backing the custom image.

Parameters:

managedSnapshotId - the managedSnapshotId value to set.

Returns:

the CustomImageProperties object itself.

withVhd

public CustomImageProperties withVhd(CustomImagePropertiesCustom vhd)

Set the vhd property: The VHD from which the image is to be created.

Parameters:

vhd - the vhd value to set.

Returns:

the CustomImageProperties object itself.

withVm

public CustomImageProperties withVm(CustomImagePropertiesFromVm vm)

Set the vm property: The virtual machine from which the image is to be created.

Parameters:

vm - the vm value to set.

Returns:

the CustomImageProperties object itself.

Applies to