Class ImageTemplateManagedImageSource
- java.lang.Object
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateSource
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateManagedImageSource
-
public final class ImageTemplateManagedImageSource extends ImageTemplateSource
Describes an image source that is a managed image in customer subscription. This image must reside in the same subscription and region as the Image Builder template.
-
-
Constructor Summary
Constructors Constructor Description ImageTemplateManagedImageSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
imageId()
Get the imageId property: ARM resource id of the managed image in customer subscription.void
validate()
Validates the instance.ImageTemplateManagedImageSource
withImageId(String imageId)
Set the imageId property: ARM resource id of the managed image in customer subscription.
-
-
-
Method Detail
-
imageId
public String imageId()
Get the imageId property: ARM resource id of the managed image in customer subscription.- Returns:
- the imageId value.
-
withImageId
public ImageTemplateManagedImageSource withImageId(String imageId)
Set the imageId property: ARM resource id of the managed image in customer subscription.- Parameters:
imageId
- the imageId value to set.- Returns:
- the ImageTemplateManagedImageSource object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classImageTemplateSource
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-