ClusterVersionDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.fluent.models.ClusterVersionDetails

Implements

public final class ClusterVersionDetails
implements JsonSerializable<ClusterVersionDetails>

The detail of the Service Fabric runtime version result.

Constructor Summary

Constructor Description
ClusterVersionDetails()

Creates an instance of ClusterVersionDetails class.

Method Summary

Modifier and Type Method and Description
String codeVersion()

Get the codeVersion property: The Service Fabric runtime version of the cluster.

ClusterEnvironment environment()

Get the environment property: Indicates if this version is for Windows or Linux operating system.

static ClusterVersionDetails fromJson(JsonReader jsonReader)

Reads an instance of ClusterVersionDetails from the JsonReader.

String supportExpiryUtc()

Get the supportExpiryUtc property: The date of expiry of support of the version.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClusterVersionDetails withCodeVersion(String codeVersion)

Set the codeVersion property: The Service Fabric runtime version of the cluster.

ClusterVersionDetails withEnvironment(ClusterEnvironment environment)

Set the environment property: Indicates if this version is for Windows or Linux operating system.

ClusterVersionDetails withSupportExpiryUtc(String supportExpiryUtc)

Set the supportExpiryUtc property: The date of expiry of support of the version.

Methods inherited from java.lang.Object

Constructor Details

ClusterVersionDetails

public ClusterVersionDetails()

Creates an instance of ClusterVersionDetails class.

Method Details

codeVersion

public String codeVersion()

Get the codeVersion property: The Service Fabric runtime version of the cluster.

Returns:

the codeVersion value.

environment

public ClusterEnvironment environment()

Get the environment property: Indicates if this version is for Windows or Linux operating system.

Returns:

the environment value.

fromJson

public static ClusterVersionDetails fromJson(JsonReader jsonReader)

Reads an instance of ClusterVersionDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

supportExpiryUtc

public String supportExpiryUtc()

Get the supportExpiryUtc property: The date of expiry of support of the version.

Returns:

the supportExpiryUtc value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCodeVersion

public ClusterVersionDetails withCodeVersion(String codeVersion)

Set the codeVersion property: The Service Fabric runtime version of the cluster.

Parameters:

codeVersion - the codeVersion value to set.

Returns:

the ClusterVersionDetails object itself.

withEnvironment

public ClusterVersionDetails withEnvironment(ClusterEnvironment environment)

Set the environment property: Indicates if this version is for Windows or Linux operating system.

Parameters:

environment - the environment value to set.

Returns:

the ClusterVersionDetails object itself.

withSupportExpiryUtc

public ClusterVersionDetails withSupportExpiryUtc(String supportExpiryUtc)

Set the supportExpiryUtc property: The date of expiry of support of the version.

Parameters:

supportExpiryUtc - the supportExpiryUtc value to set.

Returns:

the ClusterVersionDetails object itself.

Applies to