Class ImageTemplateSharedImageDistributor
- java.lang.Object
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateDistributor
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateSharedImageDistributor
-
public final class ImageTemplateSharedImageDistributor extends ImageTemplateDistributor
Distribute via Shared Image Gallery.
-
-
Constructor Summary
Constructors Constructor Description ImageTemplateSharedImageDistributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
excludeFromLatest()
Get the excludeFromLatest property: Flag that indicates whether created image version should be excluded from latest.String
galleryImageId()
Get the galleryImageId property: Resource Id of the Shared Image Gallery image.List<String>
replicationRegions()
Get the replicationRegions property: A list of regions that the image will be replicated to.SharedImageStorageAccountType
storageAccountType()
Get the storageAccountType property: Storage account type to be used to store the shared image.void
validate()
Validates the instance.ImageTemplateSharedImageDistributor
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.ImageTemplateSharedImageDistributor
withExcludeFromLatest(Boolean excludeFromLatest)
Set the excludeFromLatest property: Flag that indicates whether created image version should be excluded from latest.ImageTemplateSharedImageDistributor
withGalleryImageId(String galleryImageId)
Set the galleryImageId property: Resource Id of the Shared Image Gallery image.ImageTemplateSharedImageDistributor
withReplicationRegions(List<String> replicationRegions)
Set the replicationRegions property: A list of regions that the image will be replicated to.ImageTemplateSharedImageDistributor
withRunOutputName(String runOutputName)
Set the runOutputName property: The name to be used for the associated RunOutput.ImageTemplateSharedImageDistributor
withStorageAccountType(SharedImageStorageAccountType storageAccountType)
Set the storageAccountType property: Storage account type to be used to store the shared image.-
Methods inherited from class com.azure.resourcemanager.imagebuilder.models.ImageTemplateDistributor
artifactTags, runOutputName
-
-
-
-
Method Detail
-
galleryImageId
public String galleryImageId()
Get the galleryImageId property: Resource Id of the Shared Image Gallery image.- Returns:
- the galleryImageId value.
-
withGalleryImageId
public ImageTemplateSharedImageDistributor withGalleryImageId(String galleryImageId)
Set the galleryImageId property: Resource Id of the Shared Image Gallery image.- Parameters:
galleryImageId
- the galleryImageId value to set.- Returns:
- the ImageTemplateSharedImageDistributor object itself.
-
replicationRegions
public List<String> replicationRegions()
Get the replicationRegions property: A list of regions that the image will be replicated to.- Returns:
- the replicationRegions value.
-
withReplicationRegions
public ImageTemplateSharedImageDistributor withReplicationRegions(List<String> replicationRegions)
Set the replicationRegions property: A list of regions that the image will be replicated to.- Parameters:
replicationRegions
- the replicationRegions value to set.- Returns:
- the ImageTemplateSharedImageDistributor object itself.
-
excludeFromLatest
public Boolean excludeFromLatest()
Get the excludeFromLatest property: Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).- Returns:
- the excludeFromLatest value.
-
withExcludeFromLatest
public ImageTemplateSharedImageDistributor withExcludeFromLatest(Boolean excludeFromLatest)
Set the excludeFromLatest property: Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).- Parameters:
excludeFromLatest
- the excludeFromLatest value to set.- Returns:
- the ImageTemplateSharedImageDistributor object itself.
-
storageAccountType
public SharedImageStorageAccountType storageAccountType()
Get the storageAccountType property: Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).- Returns:
- the storageAccountType value.
-
withStorageAccountType
public ImageTemplateSharedImageDistributor withStorageAccountType(SharedImageStorageAccountType storageAccountType)
Set the storageAccountType property: Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS).- Parameters:
storageAccountType
- the storageAccountType value to set.- Returns:
- the ImageTemplateSharedImageDistributor object itself.
-
withRunOutputName
public ImageTemplateSharedImageDistributor 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 ImageTemplateSharedImageDistributor 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.
-
-