ImageTemplatePropertiesValidate Class

  • java.lang.Object
    • com.azure.resourcemanager.imagebuilder.models.ImageTemplatePropertiesValidate

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 ImageTemplatePropertiesValidate class.

Method Summary

Modifier and Type Method and Description
Boolean continueDistributeOnFailure()

Get the continueDistributeOnFailure property: If validation fails and this field is set to false, output image(s) will not be distributed.

List<ImageTemplateInVMValidator> inVMValidations()

Get the inVMValidations property: List of validations to be performed.

Boolean sourceValidationOnly()

Get the sourceValidationOnly property: If this field is set to true, the image specified in the 'source' section will directly be validated.

void validate()

Validates the instance.

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.

ImageTemplatePropertiesValidate withInVMValidations(List<ImageTemplateInVMValidator> inVMValidations)

Set the inVMValidations property: List of validations to be performed.

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.

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:

the continueDistributeOnFailure value.

inVMValidations

public List<ImageTemplateInVMValidator> inVMValidations()

Get the inVMValidations property: List of validations to be performed.

Returns:

the inVMValidations value.

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:

the sourceValidationOnly value.

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:

continueDistributeOnFailure - the continueDistributeOnFailure value to set.

Returns:

the ImageTemplatePropertiesValidate object itself.

withInVMValidations

public ImageTemplatePropertiesValidate withInVMValidations(List<ImageTemplateInVMValidator> inVMValidations)

Set the inVMValidations property: List of validations to be performed.

Parameters:

inVMValidations - the inVMValidations value to set.

Returns:

the ImageTemplatePropertiesValidate object itself.

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:

sourceValidationOnly - the sourceValidationOnly value to set.

Returns:

the ImageTemplatePropertiesValidate object itself.

Applies to