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

public final class AuthPlatform extends Object implements com.azure.json.JsonSerializable<AuthPlatform>
The configuration settings of the platform of ContainerApp Service Authentication/Authorization.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of AuthPlatform class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the enabled property: <code>true</code> if the Authentication / Authorization feature is enabled for the current app; otherwise, <code>false</code>.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AuthPlatform from the JsonReader.
    Get the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the current app.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the enabled property: <code>true</code> if the Authentication / Authorization feature is enabled for the current app; otherwise, <code>false</code>.
    withRuntimeVersion(String runtimeVersion)
    Set the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the current app.

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • AuthPlatform

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

    • enabled

      public Boolean enabled()
      Get the enabled property: <code>true</code> if the Authentication / Authorization feature is enabled for the current app; otherwise, <code>false</code>.
      Returns:
      the enabled value.
    • withEnabled

      public AuthPlatform withEnabled(Boolean enabled)
      Set the enabled property: <code>true</code> if the Authentication / Authorization feature is enabled for the current app; otherwise, <code>false</code>.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the AuthPlatform object itself.
    • runtimeVersion

      public String runtimeVersion()
      Get the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the current app. The setting in this value can control the behavior of certain features in the Authentication / Authorization module.
      Returns:
      the runtimeVersion value.
    • withRuntimeVersion

      public AuthPlatform withRuntimeVersion(String runtimeVersion)
      Set the runtimeVersion property: The RuntimeVersion of the Authentication / Authorization feature in use for the current app. The setting in this value can control the behavior of certain features in the Authentication / Authorization module.
      Parameters:
      runtimeVersion - the runtimeVersion value to set.
      Returns:
      the AuthPlatform 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<AuthPlatform>
      Throws:
      IOException
    • fromJson

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