Class ImageTemplateInVMValidator
- java.lang.Object
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateInVMValidator
-
- Direct Known Subclasses:
ImageTemplatePowerShellValidator
,ImageTemplateShellValidator
public class ImageTemplateInVMValidator extends Object
Describes a unit of in-VM validation of image.
-
-
Constructor Summary
Constructors Constructor Description ImageTemplateInVMValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: Friendly Name to provide context on what this validation step does.void
validate()
Validates the instance.ImageTemplateInVMValidator
withName(String name)
Set the name property: Friendly Name to provide context on what this validation step does.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Friendly Name to provide context on what this validation step does.- Returns:
- the name value.
-
withName
public ImageTemplateInVMValidator withName(String name)
Set the name property: Friendly Name to provide context on what this validation step does.- Parameters:
name
- the name value to set.- Returns:
- the ImageTemplateInVMValidator object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-