Class StackProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.StackProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StackProperties>
public final class StackProperties
extends Object
implements com.azure.json.JsonSerializable<StackProperties>
KPack ClusterStack properties payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StackPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StackProperties from the JsonReader.id()Get the id property: Id of the ClusterStack.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.version()Get the version property: Version of the ClusterStack.Set the id property: Id of the ClusterStack.withVersion(String version) Set the version property: Version of the ClusterStack.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
StackProperties
public StackProperties()Creates an instance of StackProperties class.
-
-
Method Details
-
id
Get the id property: Id of the ClusterStack.- Returns:
- the id value.
-
withId
Set the id property: Id of the ClusterStack.- Parameters:
id- the id value to set.- Returns:
- the StackProperties object itself.
-
version
Get the version property: Version of the ClusterStack.- Returns:
- the version value.
-
withVersion
Set the version property: Version of the ClusterStack.- Parameters:
version- the version value to set.- Returns:
- the StackProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StackProperties>- Throws:
IOException
-
fromJson
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.
-