Class ValidationsProfile
java.lang.Object
com.azure.resourcemanager.compute.models.ValidationsProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ValidationsProfile>
public final class ValidationsProfile
extends Object
implements com.azure.json.JsonSerializable<ValidationsProfile>
This is the validations profile of a Gallery Image Version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the executedValidations property: The executedValidations property.static ValidationsProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ValidationsProfile from the JsonReader.Get the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the validationEtag property: The published time of the image version.withExecutedValidations(List<ExecutedValidation> executedValidations) Set the executedValidations property: The executedValidations property.withPlatformAttributes(List<PlatformAttribute> platformAttributes) Set the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.withValidationEtag(String validationEtag) Set the validationEtag property: The published time of the image version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ValidationsProfile
public ValidationsProfile()Creates an instance of ValidationsProfile class.
-
-
Method Details
-
validationEtag
Get the validationEtag property: The published time of the image version.- Returns:
- the validationEtag value.
-
withValidationEtag
Set the validationEtag property: The published time of the image version.- Parameters:
validationEtag- the validationEtag value to set.- Returns:
- the ValidationsProfile object itself.
-
executedValidations
Get the executedValidations property: The executedValidations property.- Returns:
- the executedValidations value.
-
withExecutedValidations
Set the executedValidations property: The executedValidations property.- Parameters:
executedValidations- the executedValidations value to set.- Returns:
- the ValidationsProfile object itself.
-
platformAttributes
Get the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.- Returns:
- the platformAttributes value.
-
withPlatformAttributes
Set the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.- Parameters:
platformAttributes- the platformAttributes value to set.- Returns:
- the ValidationsProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ValidationsProfile>- Throws:
IOException
-
fromJson
Reads an instance of ValidationsProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ValidationsProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ValidationsProfile.
-