Class ImageTemplatePropertiesValidate


  • public final class ImageTemplatePropertiesValidate
    extends Object
    Configuration options and list of validations to be performed on the resulting image.
    • Constructor Detail

      • ImageTemplatePropertiesValidate

        public ImageTemplatePropertiesValidate()
    • Method Detail

      • 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.
      • 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.
      • 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.
      • 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.
      • inVMValidations

        public List<ImageTemplateInVMValidator> inVMValidations()
        Get the inVMValidations property: List of validations to be performed.
        Returns:
        the inVMValidations value.
      • 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.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.