ClusterCodeVersionsResult Class

  • java.lang.Object
    • com.azure.resourcemanager.servicefabric.models.ClusterCodeVersionsResult

Implements

public final class ClusterCodeVersionsResult
implements JsonSerializable<ClusterCodeVersionsResult>

The result of the Service Fabric runtime versions.

Constructor Summary

Constructor Description
ClusterCodeVersionsResult()

Creates an instance of ClusterCodeVersionsResult 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 ClusterCodeVersionsResult fromJson(JsonReader jsonReader)

Reads an instance of ClusterCodeVersionsResult from the JsonReader.

String id()

Get the id property: The identification of the result.

String name()

Get the name property: The name of the result.

String supportExpiryUtc()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The result resource type.

void validate()

Validates the instance.

ClusterCodeVersionsResult withCodeVersion(String codeVersion)

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

ClusterCodeVersionsResult withEnvironment(ClusterEnvironment environment)

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

ClusterCodeVersionsResult withId(String id)

Set the id property: The identification of the result.

ClusterCodeVersionsResult withName(String name)

Set the name property: The name of the result.

ClusterCodeVersionsResult withSupportExpiryUtc(String supportExpiryUtc)

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

ClusterCodeVersionsResult withType(String type)

Set the type property: The result resource type.

Methods inherited from java.lang.Object

Constructor Details

ClusterCodeVersionsResult

public ClusterCodeVersionsResult()

Creates an instance of ClusterCodeVersionsResult 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 ClusterCodeVersionsResult fromJson(JsonReader jsonReader)

Reads an instance of ClusterCodeVersionsResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The identification of the result.

Returns:

the id value.

name

public String name()

Get the name property: The name of the result.

Returns:

the name value.

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:

type

public String type()

Get the type property: The result resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCodeVersion

public ClusterCodeVersionsResult withCodeVersion(String codeVersion)

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

Parameters:

codeVersion - the codeVersion value to set.

Returns:

the ClusterCodeVersionsResult object itself.

withEnvironment

public ClusterCodeVersionsResult 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 ClusterCodeVersionsResult object itself.

withId

public ClusterCodeVersionsResult withId(String id)

Set the id property: The identification of the result.

Parameters:

id - the id value to set.

Returns:

the ClusterCodeVersionsResult object itself.

withName

public ClusterCodeVersionsResult withName(String name)

Set the name property: The name of the result.

Parameters:

name - the name value to set.

Returns:

the ClusterCodeVersionsResult object itself.

withSupportExpiryUtc

public ClusterCodeVersionsResult 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 ClusterCodeVersionsResult object itself.

withType

public ClusterCodeVersionsResult withType(String type)

Set the type property: The result resource type.

Parameters:

type - the type value to set.

Returns:

the ClusterCodeVersionsResult object itself.

Applies to