ImageTemplateInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. imagebuilder. fluent. models. ImageTemplateInner
- com.
- com.
- com.
public final class ImageTemplateInner
extends Resource
Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider.
Constructor Summary
| Constructor | Description |
|---|---|
| ImageTemplateInner() |
Creates an instance of Image |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Image |
autoRun()
Get the auto |
| Integer |
buildTimeoutInMinutes()
Get the build |
|
List<Image |
customize()
Get the customize property: Specifies the properties used to describe the customization steps of the image, like Image source etc. |
|
List<Image |
distribute()
Get the distribute property: The distribution targets where the image output needs to go to. |
|
Image |
errorHandling()
Get the error |
| String |
exactStagingResourceGroup()
Get the exact |
|
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
|
Image |
identity()
Get the identity property: The identity of the image template, if configured. |
|
Image |
lastRunStatus()
Get the last |
| Map<String,String> |
managedResourceTags()
Get the managed |
| String |
name()
Get the name property: The name of the resource. |
|
Image |
optimize()
Get the optimize property: Specifies optimization to be performed on image. |
|
Provisioning |
provisioningError()
Get the provisioning |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Image |
source()
Get the source property: Specifies the properties used to describe the source image. |
| String |
stagingResourceGroup()
Get the staging |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Image |
validation()
Get the validation property: Configuration options and list of validations to be performed on the resulting image. |
|
Image |
vmProfile()
Get the vm |
|
Image |
withAutoRun(ImageTemplateAutoRun autoRun)
Set the auto |
|
Image |
withBuildTimeoutInMinutes(Integer buildTimeoutInMinutes)
Set the build |
|
Image |
withCustomize(List<ImageTemplateCustomizer> customize)
Set the customize property: Specifies the properties used to describe the customization steps of the image, like Image source etc. |
|
Image |
withDistribute(List<ImageTemplateDistributor> distribute)
Set the distribute property: The distribution targets where the image output needs to go to. |
|
Image |
withErrorHandling(ImageTemplatePropertiesErrorHandling errorHandling)
Set the error |
|
Image |
withIdentity(ImageTemplateIdentity identity)
Set the identity property: The identity of the image template, if configured. |
|
Image |
withLocation(String location) |
|
Image |
withManagedResourceTags(Map<String,String> managedResourceTags)
Set the managed |
|
Image |
withOptimize(ImageTemplatePropertiesOptimize optimize)
Set the optimize property: Specifies optimization to be performed on image. |
|
Image |
withSource(ImageTemplateSource source)
Set the source property: Specifies the properties used to describe the source image. |
|
Image |
withStagingResourceGroup(String stagingResourceGroup)
Set the staging |
|
Image |
withTags(Map<String,String> tags) |
|
Image |
withValidation(ImageTemplatePropertiesValidate validation)
Set the validation property: Configuration options and list of validations to be performed on the resulting image. |
|
Image |
withVmProfile(ImageTemplateVmProfile vmProfile)
Set the vm |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
ImageTemplateInner
public ImageTemplateInner()
Creates an instance of ImageTemplateInner class.
Method Details
autoRun
public ImageTemplateAutoRun autoRun()
Get the autoRun property: Indicates whether or not to automatically run the image template build on template creation or update.
Returns:
buildTimeoutInMinutes
public Integer buildTimeoutInMinutes()
Get the buildTimeoutInMinutes property: Maximum duration to wait while building the image template (includes all customizations, optimization, validations, and distributions). Omit or specify 0 to use the default (4 hours).
Returns:
customize
public List<ImageTemplateCustomizer> customize()
Get the customize property: Specifies the properties used to describe the customization steps of the image, like Image source etc.
Returns:
distribute
public List<ImageTemplateDistributor> distribute()
Get the distribute property: The distribution targets where the image output needs to go to.
Returns:
errorHandling
public ImageTemplatePropertiesErrorHandling errorHandling()
Get the errorHandling property: Error handling options upon a build failure.
Returns:
exactStagingResourceGroup
public String exactStagingResourceGroup()
Get the exactStagingResourceGroup property: The staging resource group id in the same subscription as the image template that will be used to build the image. This read-only field differs from 'stagingResourceGroup' only if the value specified in the 'stagingResourceGroup' field is empty.
Returns:
fromJson
public static ImageTemplateInner fromJson(JsonReader jsonReader)
Reads an instance of ImageTemplateInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ImageTemplateInner.id()Returns:
identity
public ImageTemplateIdentity identity()
Get the identity property: The identity of the image template, if configured.
Returns:
lastRunStatus
public ImageTemplateLastRunStatus lastRunStatus()
Get the lastRunStatus property: State of 'run' that is currently executing or was last executed.
Returns:
managedResourceTags
public Map<String,String> managedResourceTags()
Get the managedResourceTags property: Tags that will be applied to the resource group and/or resources created by the service.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ImageTemplateInner.name()Returns:
optimize
public ImageTemplatePropertiesOptimize optimize()
Get the optimize property: Specifies optimization to be performed on image.
Returns:
provisioningError
public ProvisioningError provisioningError()
Get the provisioningError property: Provisioning error, if any.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of the resource.
Returns:
source
public ImageTemplateSource source()
Get the source property: Specifies the properties used to describe the source image.
Returns:
stagingResourceGroup
public String stagingResourceGroup()
Get the stagingResourceGroup property: The staging resource group id in the same subscription as the image template that will be used to build the image. If this field is empty, a resource group with a random name will be created. If the resource group specified in this field doesn't exist, it will be created with the same name. If the resource group specified exists, it must be empty and in the same region as the image template. The resource group created will be deleted during template deletion if this field is empty or the resource group specified doesn't exist, but if the resource group specified exists the resources created in the resource group will be deleted during template deletion and the resource group itself will remain.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ImageTemplateInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ImageTemplateInner.type()Returns:
validate
public void validate()
Validates the instance.
validation
public ImageTemplatePropertiesValidate validation()
Get the validation property: Configuration options and list of validations to be performed on the resulting image.
Returns:
vmProfile
public ImageTemplateVmProfile vmProfile()
Get the vmProfile property: Describes how virtual machine is set up to build images.
Returns:
withAutoRun
public ImageTemplateInner withAutoRun(ImageTemplateAutoRun autoRun)
Set the autoRun property: Indicates whether or not to automatically run the image template build on template creation or update.
Parameters:
Returns:
withBuildTimeoutInMinutes
public ImageTemplateInner withBuildTimeoutInMinutes(Integer buildTimeoutInMinutes)
Set the buildTimeoutInMinutes property: Maximum duration to wait while building the image template (includes all customizations, optimization, validations, and distributions). Omit or specify 0 to use the default (4 hours).
Parameters:
Returns:
withCustomize
public ImageTemplateInner withCustomize(List<ImageTemplateCustomizer> customize)
Set the customize property: Specifies the properties used to describe the customization steps of the image, like Image source etc.
Parameters:
Returns:
withDistribute
public ImageTemplateInner withDistribute(List<ImageTemplateDistributor> distribute)
Set the distribute property: The distribution targets where the image output needs to go to.
Parameters:
Returns:
withErrorHandling
public ImageTemplateInner withErrorHandling(ImageTemplatePropertiesErrorHandling errorHandling)
Set the errorHandling property: Error handling options upon a build failure.
Parameters:
Returns:
withIdentity
public ImageTemplateInner withIdentity(ImageTemplateIdentity identity)
Set the identity property: The identity of the image template, if configured.
Parameters:
Returns:
withLocation
public ImageTemplateInner withLocation(String location)
Overrides:
ImageTemplateInner.withLocation(String location)Parameters:
withManagedResourceTags
public ImageTemplateInner withManagedResourceTags(Map<String,String> managedResourceTags)
Set the managedResourceTags property: Tags that will be applied to the resource group and/or resources created by the service.
Parameters:
Returns:
withOptimize
public ImageTemplateInner withOptimize(ImageTemplatePropertiesOptimize optimize)
Set the optimize property: Specifies optimization to be performed on image.
Parameters:
Returns:
withSource
public ImageTemplateInner withSource(ImageTemplateSource source)
Set the source property: Specifies the properties used to describe the source image.
Parameters:
Returns:
withStagingResourceGroup
public ImageTemplateInner withStagingResourceGroup(String stagingResourceGroup)
Set the stagingResourceGroup property: The staging resource group id in the same subscription as the image template that will be used to build the image. If this field is empty, a resource group with a random name will be created. If the resource group specified in this field doesn't exist, it will be created with the same name. If the resource group specified exists, it must be empty and in the same region as the image template. The resource group created will be deleted during template deletion if this field is empty or the resource group specified doesn't exist, but if the resource group specified exists the resources created in the resource group will be deleted during template deletion and the resource group itself will remain.
Parameters:
Returns:
withTags
public ImageTemplateInner withTags(Map<String,String> tags)
Overrides:
ImageTemplateInner.withTags(Map<String,String> tags)Parameters:
withValidation
public ImageTemplateInner withValidation(ImageTemplatePropertiesValidate validation)
Set the validation property: Configuration options and list of validations to be performed on the resulting image.
Parameters:
Returns:
withVmProfile
public ImageTemplateInner withVmProfile(ImageTemplateVmProfile vmProfile)
Set the vmProfile property: Describes how virtual machine is set up to build images.
Parameters:
Returns: