Partilhar via


ValidationsProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ValidationsProfile

Implements

public final class ValidationsProfile
implements JsonSerializable<ValidationsProfile>

This is the validations profile of a Gallery Image Version.

Constructor Summary

Constructor Description
ValidationsProfile()

Creates an instance of ValidationsProfile class.

Method Summary

Modifier and Type Method and Description
List<ExecutedValidation> executedValidations()

Get the executedValidations property: The executedValidations property.

static ValidationsProfile fromJson(JsonReader jsonReader)

Reads an instance of ValidationsProfile from the JsonReader.

List<PlatformAttribute> platformAttributes()

Get the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String validationEtag()

Get the validationEtag property: The published time of the image version.

ValidationsProfile withExecutedValidations(List<ExecutedValidation> executedValidations)

Set the executedValidations property: The executedValidations property.

ValidationsProfile withPlatformAttributes(List<PlatformAttribute> platformAttributes)

Set the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.

ValidationsProfile withValidationEtag(String validationEtag)

Set the validationEtag property: The published time of the image version.

Methods inherited from java.lang.Object

Constructor Details

ValidationsProfile

public ValidationsProfile()

Creates an instance of ValidationsProfile class.

Method Details

executedValidations

public List executedValidations()

Get the executedValidations property: The executedValidations property.

Returns:

the executedValidations value.

fromJson

public static ValidationsProfile fromJson(JsonReader jsonReader)

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.

platformAttributes

public List platformAttributes()

Get the platformAttributes property: This specifies the pub, offer, sku and version of the image version metadata.

Returns:

the platformAttributes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validationEtag

public String validationEtag()

Get the validationEtag property: The published time of the image version.

Returns:

the validationEtag value.

withExecutedValidations

public ValidationsProfile withExecutedValidations(List executedValidations)

Set the executedValidations property: The executedValidations property.

Parameters:

executedValidations - the executedValidations value to set.

Returns:

the ValidationsProfile object itself.

withPlatformAttributes

public ValidationsProfile withPlatformAttributes(List platformAttributes)

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.

withValidationEtag

public ValidationsProfile withValidationEtag(String validationEtag)

Set the validationEtag property: The published time of the image version.

Parameters:

validationEtag - the validationEtag value to set.

Returns:

the ValidationsProfile object itself.

Applies to