Class SupportedStackResourceProperties

java.lang.Object
com.azure.resourcemanager.appplatform.models.SupportedStackResourceProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<SupportedStackResourceProperties>

public final class SupportedStackResourceProperties extends Object implements com.azure.json.JsonSerializable<SupportedStackResourceProperties>
Supported stack resource properties.
  • Constructor Details

    • SupportedStackResourceProperties

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

    • stackId

      public String stackId()
      Get the stackId property: The id of supported stack.
      Returns:
      the stackId value.
    • withStackId

      public SupportedStackResourceProperties withStackId(String stackId)
      Set the stackId property: The id of supported stack.
      Parameters:
      stackId - the stackId value to set.
      Returns:
      the SupportedStackResourceProperties object itself.
    • version

      public String version()
      Get the version property: The version of supported stack.
      Returns:
      the version value.
    • withVersion

      public SupportedStackResourceProperties withVersion(String version)
      Set the version property: The version of supported stack.
      Parameters:
      version - the version value to set.
      Returns:
      the SupportedStackResourceProperties 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<SupportedStackResourceProperties>
      Throws:
      IOException
    • fromJson

      public static SupportedStackResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SupportedStackResourceProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SupportedStackResourceProperties 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 SupportedStackResourceProperties.