Class ImageTemplateManagedImageDistributor
- java.lang.Object
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateDistributor
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateManagedImageDistributor
-
public final class ImageTemplateManagedImageDistributor extends ImageTemplateDistributor
Distribute as a Managed Disk Image.
-
-
Constructor Summary
Constructors Constructor Description ImageTemplateManagedImageDistributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
imageId()
Get the imageId property: Resource Id of the Managed Disk Image.String
location()
Get the location property: Azure location for the image, should match if image already exists.void
validate()
Validates the instance.ImageTemplateManagedImageDistributor
withArtifactTags(Map<String,String> artifactTags)
Set the artifactTags property: Tags that will be applied to the artifact once it has been created/updated by the distributor.ImageTemplateManagedImageDistributor
withImageId(String imageId)
Set the imageId property: Resource Id of the Managed Disk Image.ImageTemplateManagedImageDistributor
withLocation(String location)
Set the location property: Azure location for the image, should match if image already exists.ImageTemplateManagedImageDistributor
withRunOutputName(String runOutputName)
Set the runOutputName property: The name to be used for the associated RunOutput.-
Methods inherited from class com.azure.resourcemanager.imagebuilder.models.ImageTemplateDistributor
artifactTags, runOutputName
-
-
-
-
Method Detail
-
imageId
public String imageId()
Get the imageId property: Resource Id of the Managed Disk Image.- Returns:
- the imageId value.
-
withImageId
public ImageTemplateManagedImageDistributor withImageId(String imageId)
Set the imageId property: Resource Id of the Managed Disk Image.- Parameters:
imageId
- the imageId value to set.- Returns:
- the ImageTemplateManagedImageDistributor object itself.
-
location
public String location()
Get the location property: Azure location for the image, should match if image already exists.- Returns:
- the location value.
-
withLocation
public ImageTemplateManagedImageDistributor withLocation(String location)
Set the location property: Azure location for the image, should match if image already exists.- Parameters:
location
- the location value to set.- Returns:
- the ImageTemplateManagedImageDistributor object itself.
-
withRunOutputName
public ImageTemplateManagedImageDistributor withRunOutputName(String runOutputName)
Set the runOutputName property: The name to be used for the associated RunOutput.- Overrides:
withRunOutputName
in classImageTemplateDistributor
- Parameters:
runOutputName
- the runOutputName value to set.- Returns:
- the ImageTemplateDistributor object itself.
-
withArtifactTags
public ImageTemplateManagedImageDistributor withArtifactTags(Map<String,String> artifactTags)
Set the artifactTags property: Tags that will be applied to the artifact once it has been created/updated by the distributor.- Overrides:
withArtifactTags
in classImageTemplateDistributor
- Parameters:
artifactTags
- the artifactTags value to set.- Returns:
- the ImageTemplateDistributor object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classImageTemplateDistributor
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-