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 Details

    • StackProperties

      public StackProperties()
      Creates an instance of StackProperties class.
  • Method Details

    • id

      public String id()
      Get the id property: Id of the ClusterStack.
      Returns:
      the id 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.
    • version

      public String version()
      Get the version property: Version of the ClusterStack.
      Returns:
      the version value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<StackProperties>
      Throws:
      IOException
    • fromJson

      public static StackProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.