Compartilhar via


ExecutedValidation Class

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

Implements

public final class ExecutedValidation
implements JsonSerializable<ExecutedValidation>

This is the executed Validation.

Constructor Summary

Constructor Description
ExecutedValidation()

Creates an instance of ExecutedValidation class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime executionTime()

Get the executionTime property: This property specifies the starting timestamp.

static ExecutedValidation fromJson(JsonReader jsonReader)

Reads an instance of ExecutedValidation from the JsonReader.

ValidationStatus status()

Get the status property: This property specifies the status of the validationProfile of the image version.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: This property specifies the type of image version validation.

void validate()

Validates the instance.

String version()

Get the version property: This property specifies the valid version of the validation.

ExecutedValidation withExecutionTime(OffsetDateTime executionTime)

Set the executionTime property: This property specifies the starting timestamp.

ExecutedValidation withStatus(ValidationStatus status)

Set the status property: This property specifies the status of the validationProfile of the image version.

ExecutedValidation withType(String type)

Set the type property: This property specifies the type of image version validation.

ExecutedValidation withVersion(String version)

Set the version property: This property specifies the valid version of the validation.

Methods inherited from java.lang.Object

Constructor Details

ExecutedValidation

public ExecutedValidation()

Creates an instance of ExecutedValidation class.

Method Details

executionTime

public OffsetDateTime executionTime()

Get the executionTime property: This property specifies the starting timestamp.

Returns:

the executionTime value.

fromJson

public static ExecutedValidation fromJson(JsonReader jsonReader)

Reads an instance of ExecutedValidation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ExecutedValidation 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 ExecutedValidation.

status

public ValidationStatus status()

Get the status property: This property specifies the status of the validationProfile of the image version.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: This property specifies the type of image version validation.

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: This property specifies the valid version of the validation.

Returns:

the version value.

withExecutionTime

public ExecutedValidation withExecutionTime(OffsetDateTime executionTime)

Set the executionTime property: This property specifies the starting timestamp.

Parameters:

executionTime - the executionTime value to set.

Returns:

the ExecutedValidation object itself.

withStatus

public ExecutedValidation withStatus(ValidationStatus status)

Set the status property: This property specifies the status of the validationProfile of the image version.

Parameters:

status - the status value to set.

Returns:

the ExecutedValidation object itself.

withType

public ExecutedValidation withType(String type)

Set the type property: This property specifies the type of image version validation.

Parameters:

type - the type value to set.

Returns:

the ExecutedValidation object itself.

withVersion

public ExecutedValidation withVersion(String version)

Set the version property: This property specifies the valid version of the validation.

Parameters:

version - the version value to set.

Returns:

the ExecutedValidation object itself.

Applies to