Поделиться через


ImageVersionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.fluent.models.ImageVersionProperties

Implements

public final class ImageVersionProperties
implements JsonSerializable<ImageVersionProperties>

Properties of an image version.

Constructor Summary

Constructor Description
ImageVersionProperties()

Creates an instance of ImageVersionProperties class.

Method Summary

Modifier and Type Method and Description
Boolean excludeFromLatest()

Get the excludeFromLatest property: If the version should be excluded from being treated as the latest version.

static ImageVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of ImageVersionProperties from the JsonReader.

String name()

Get the name property: The semantic version string.

Integer osDiskImageSizeInGb()

Get the osDiskImageSizeInGb property: The size of the OS disk image, in GB.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

OffsetDateTime publishedDate()

Get the publishedDate property: The datetime that the backing image version was published.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ImageVersionProperties

public ImageVersionProperties()

Creates an instance of ImageVersionProperties class.

Method Details

excludeFromLatest

public Boolean excludeFromLatest()

Get the excludeFromLatest property: If the version should be excluded from being treated as the latest version.

Returns:

the excludeFromLatest value.

fromJson

public static ImageVersionProperties fromJson(JsonReader jsonReader)

Reads an instance of ImageVersionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The semantic version string.

Returns:

the name value.

osDiskImageSizeInGb

public Integer osDiskImageSizeInGb()

Get the osDiskImageSizeInGb property: The size of the OS disk image, in GB.

Returns:

the osDiskImageSizeInGb value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

publishedDate

public OffsetDateTime publishedDate()

Get the publishedDate property: The datetime that the backing image version was published.

Returns:

the publishedDate value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to