ImageTemplatePropertiesValidate Class
- java.
lang. Object - com.
azure. resourcemanager. imagebuilder. models. ImageTemplatePropertiesValidate
- com.
public final class ImageTemplatePropertiesValidate
Configuration options and list of validations to be performed on the resulting image.
Constructor Summary
| Constructor | Description |
|---|---|
| ImageTemplatePropertiesValidate() |
Creates an instance of Image |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
continueDistributeOnFailure()
Get the continue |
|
List<Image |
inVMValidations()
Get the in |
| Boolean |
sourceValidationOnly()
Get the source |
| void |
validate()
Validates the instance. |
|
Image |
withContinueDistributeOnFailure(Boolean continueDistributeOnFailure)
Set the continue |
|
Image |
withInVMValidations(List<ImageTemplateInVMValidator> inVMValidations)
Set the in |
|
Image |
withSourceValidationOnly(Boolean sourceValidationOnly)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
ImageTemplatePropertiesValidate
public ImageTemplatePropertiesValidate()
Creates an instance of ImageTemplatePropertiesValidate class.
Method Details
continueDistributeOnFailure
public Boolean continueDistributeOnFailure()
Get the continueDistributeOnFailure property: If validation fails and this field is set to false, output image(s) will not be distributed. This is the default behavior. If validation fails and this field is set to true, output image(s) will still be distributed. Please use this option with caution as it may result in bad images being distributed for use. In either case (true or false), the end to end image run will be reported as having failed in case of a validation failure. [Note: This field has no effect if validation succeeds.].
Returns:
inVMValidations
public List<ImageTemplateInVMValidator> inVMValidations()
Get the inVMValidations property: List of validations to be performed.
Returns:
sourceValidationOnly
public Boolean sourceValidationOnly()
Get the sourceValidationOnly property: If this field is set to true, the image specified in the 'source' section will directly be validated. No separate build will be run to generate and then validate a customized image.
Returns:
validate
public void validate()
Validates the instance.
withContinueDistributeOnFailure
public ImageTemplatePropertiesValidate withContinueDistributeOnFailure(Boolean continueDistributeOnFailure)
Set the continueDistributeOnFailure property: If validation fails and this field is set to false, output image(s) will not be distributed. This is the default behavior. If validation fails and this field is set to true, output image(s) will still be distributed. Please use this option with caution as it may result in bad images being distributed for use. In either case (true or false), the end to end image run will be reported as having failed in case of a validation failure. [Note: This field has no effect if validation succeeds.].
Parameters:
Returns:
withInVMValidations
public ImageTemplatePropertiesValidate withInVMValidations(List<ImageTemplateInVMValidator> inVMValidations)
Set the inVMValidations property: List of validations to be performed.
Parameters:
Returns:
withSourceValidationOnly
public ImageTemplatePropertiesValidate withSourceValidationOnly(Boolean sourceValidationOnly)
Set the sourceValidationOnly property: If this field is set to true, the image specified in the 'source' section will directly be validated. No separate build will be run to generate and then validate a customized image.
Parameters:
Returns: