StackProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.StackProperties

Implements

public final class StackProperties
implements JsonSerializable<StackProperties>

KPack ClusterStack properties payload.

Constructor Summary

Constructor Description
StackProperties()

Creates an instance of StackProperties class.

Method Summary

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

Reads an instance of StackProperties from the JsonReader.

String id()

Get the id property: Id of the ClusterStack.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: Version of the ClusterStack.

StackProperties withId(String id)

Set the id property: Id of the ClusterStack.

StackProperties withVersion(String version)

Set the version property: Version of the ClusterStack.

Methods inherited from java.lang.Object

Constructor Details

StackProperties

public StackProperties()

Creates an instance of StackProperties class.

Method Details

fromJson

public static StackProperties fromJson(JsonReader jsonReader)

Reads an instance of StackProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Id of the ClusterStack.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Version of the ClusterStack.

Returns:

the version value.

withId

public StackProperties withId(String id)

Set the id property: Id of the ClusterStack.

Parameters:

id - the id value to set.

Returns:

the StackProperties object itself.

withVersion

public StackProperties withVersion(String version)

Set the version property: Version of the ClusterStack.

Parameters:

version - the version value to set.

Returns:

the StackProperties object itself.

Applies to