ClusterUpdateVersionParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.ClusterUpdateVersionParameters

Implements

public final class ClusterUpdateVersionParameters
implements JsonSerializable<ClusterUpdateVersionParameters>

ClusterUpdateVersionParameters represents the body of the request to update cluster version.

Constructor Summary

Constructor Description
ClusterUpdateVersionParameters()

Creates an instance of ClusterUpdateVersionParameters class.

Method Summary

Modifier and Type Method and Description
static ClusterUpdateVersionParameters fromJson(JsonReader jsonReader)

Reads an instance of ClusterUpdateVersionParameters from the JsonReader.

String targetClusterVersion()

Get the targetClusterVersion property: The version to be applied to the cluster during update.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClusterUpdateVersionParameters withTargetClusterVersion(String targetClusterVersion)

Set the targetClusterVersion property: The version to be applied to the cluster during update.

Methods inherited from java.lang.Object

Constructor Details

ClusterUpdateVersionParameters

public ClusterUpdateVersionParameters()

Creates an instance of ClusterUpdateVersionParameters class.

Method Details

fromJson

public static ClusterUpdateVersionParameters fromJson(JsonReader jsonReader)

Reads an instance of ClusterUpdateVersionParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClusterUpdateVersionParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

targetClusterVersion

public String targetClusterVersion()

Get the targetClusterVersion property: The version to be applied to the cluster during update.

Returns:

the targetClusterVersion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTargetClusterVersion

public ClusterUpdateVersionParameters withTargetClusterVersion(String targetClusterVersion)

Set the targetClusterVersion property: The version to be applied to the cluster during update.

Parameters:

targetClusterVersion - the targetClusterVersion value to set.

Returns:

the ClusterUpdateVersionParameters object itself.

Applies to