Class CustomImageInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.devtestlabs.fluent.models.CustomImageInner

public final class CustomImageInner extends com.azure.core.management.Resource
A custom image.
  • Constructor Details

    • CustomImageInner

      public CustomImageInner()
      Creates an instance of CustomImageInner class.
  • Method Details

    • withLocation

      public CustomImageInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public CustomImageInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • vm

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

      Set the vm property: The virtual machine from which the image is to be created.
      Parameters:
      vm - the vm value to set.
      Returns:
      the CustomImageInner object itself.
    • vhd

      Get the vhd property: The VHD from which the image is to be created.
      Returns:
      the vhd value.
    • withVhd

      Set the vhd property: The VHD from which the image is to be created.
      Parameters:
      vhd - the vhd value to set.
      Returns:
      the CustomImageInner object itself.
    • description

      public String description()
      Get the description property: The description of the custom image.
      Returns:
      the description value.
    • withDescription

      public CustomImageInner withDescription(String description)
      Set the description property: The description of the custom image.
      Parameters:
      description - the description value to set.
      Returns:
      the CustomImageInner object itself.
    • author

      public String author()
      Get the author property: The author of the custom image.
      Returns:
      the author value.
    • withAuthor

      public CustomImageInner withAuthor(String author)
      Set the author property: The author of the custom image.
      Parameters:
      author - the author value to set.
      Returns:
      the CustomImageInner object itself.
    • creationDate

      public OffsetDateTime creationDate()
      Get the creationDate property: The creation date of the custom image.
      Returns:
      the creationDate value.
    • managedImageId

      public String managedImageId()
      Get the managedImageId property: The Managed Image Id backing the custom image.
      Returns:
      the managedImageId value.
    • withManagedImageId

      public CustomImageInner withManagedImageId(String managedImageId)
      Set the managedImageId property: The Managed Image Id backing the custom image.
      Parameters:
      managedImageId - the managedImageId value to set.
      Returns:
      the CustomImageInner object itself.
    • managedSnapshotId

      public String managedSnapshotId()
      Get the managedSnapshotId property: The Managed Snapshot Id backing the custom image.
      Returns:
      the managedSnapshotId value.
    • withManagedSnapshotId

      public CustomImageInner withManagedSnapshotId(String managedSnapshotId)
      Set the managedSnapshotId property: The Managed Snapshot Id backing the custom image.
      Parameters:
      managedSnapshotId - the managedSnapshotId value to set.
      Returns:
      the CustomImageInner object itself.
    • dataDiskStorageInfo

      public List<DataDiskStorageTypeInfo> dataDiskStorageInfo()
      Get the dataDiskStorageInfo property: Storage information about the data disks present in the custom image.
      Returns:
      the dataDiskStorageInfo value.
    • withDataDiskStorageInfo

      public CustomImageInner 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 CustomImageInner object itself.
    • customImagePlan

      public CustomImagePropertiesFromPlan customImagePlan()
      Get the customImagePlan property: Storage information about the plan related to this custom image.
      Returns:
      the customImagePlan value.
    • withCustomImagePlan

      public CustomImageInner 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 CustomImageInner object itself.
    • 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.
    • withIsPlanAuthorized

      public CustomImageInner 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 CustomImageInner object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning status of the resource.
      Returns:
      the provisioningState value.
    • 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.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.