Class StackMajorVersion

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

public final class StackMajorVersion extends Object implements com.azure.json.JsonSerializable<StackMajorVersion>
Application stack major version.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the applicationInsights property: <code>true</code> if this supports Application Insights; otherwise, <code>false</code>.
    Get the appSettingsDictionary property: <appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: "FUNCTIONS_WORKER_RUNTIME" to be set stack name.
    Get the displayVersion property: Application stack major version (display only).
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of StackMajorVersion from the JsonReader.
    Get the isDefault property: <code>true</code> if this is the default major version; otherwise, <code>false</code>.
    Get the isDeprecated property: <code>true</code> if this stack has been deprecated, otherwise <code>false</code>.
    Get the isHidden property: <code>true</code> if this stack should be hidden for new customers on portal, otherwise <code>false</code>.
    Get the isPreview property: <code>true</code> if this stack is in Preview, otherwise <code>false</code>.
    Get the minorVersions property: Minor versions associated with the major version.
    Get the runtimeVersion property: Application stack major version (runtime only).
    Get the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • displayVersion

      public String displayVersion()
      Get the displayVersion property: Application stack major version (display only).
      Returns:
      the displayVersion value.
    • runtimeVersion

      public String runtimeVersion()
      Get the runtimeVersion property: Application stack major version (runtime only).
      Returns:
      the runtimeVersion value.
    • isDefault

      public Boolean isDefault()
      Get the isDefault property: <code>true</code> if this is the default major version; otherwise, <code>false</code>.
      Returns:
      the isDefault value.
    • minorVersions

      public List<StackMinorVersion> minorVersions()
      Get the minorVersions property: Minor versions associated with the major version.
      Returns:
      the minorVersions value.
    • applicationInsights

      public Boolean applicationInsights()
      Get the applicationInsights property: <code>true</code> if this supports Application Insights; otherwise, <code>false</code>.
      Returns:
      the applicationInsights value.
    • isPreview

      public Boolean isPreview()
      Get the isPreview property: <code>true</code> if this stack is in Preview, otherwise <code>false</code>.
      Returns:
      the isPreview value.
    • isDeprecated

      public Boolean isDeprecated()
      Get the isDeprecated property: <code>true</code> if this stack has been deprecated, otherwise <code>false</code>.
      Returns:
      the isDeprecated value.
    • isHidden

      public Boolean isHidden()
      Get the isHidden property: <code>true</code> if this stack should be hidden for new customers on portal, otherwise <code>false</code>.
      Returns:
      the isHidden value.
    • appSettingsDictionary

      public Map<String,Object> appSettingsDictionary()
      Get the appSettingsDictionary property: <appSettings> <appSetting name="FUNCTIONS_WORKER_RUNTIME" value="dotnet" /> </appSettings> Example: All the function apps need AppSetting: "FUNCTIONS_WORKER_RUNTIME" to be set stack name.
      Returns:
      the appSettingsDictionary value.
    • siteConfigPropertiesDictionary

      public Map<String,Object> siteConfigPropertiesDictionary()
      Get the siteConfigPropertiesDictionary property: <siteConfigProperties> <siteConfigProperty name="Use32BitWorkerProcess" value="false" /> </siteConfigProperties> Example: All Linux Function Apps, need Use32BitWorkerProcess to be set to 0.
      Returns:
      the siteConfigPropertiesDictionary value.
    • 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<StackMajorVersion>
      Throws:
      IOException
    • fromJson

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