Class ManagedIdentitySetting

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

public final class ManagedIdentitySetting extends Object implements com.azure.json.JsonSerializable<ManagedIdentitySetting>
Optional settings for a Managed Identity that is assigned to the Session pool.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ManagedIdentitySetting from the JsonReader.
    Get the identity property: The resource ID of a user-assigned managed identity that is assigned to the Session Pool, or 'system' for system-assigned identity.
    Get the lifecycle property: Use to select the lifecycle stages of a Session Pool during which the Managed Identity should be available.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withIdentity(String identity)
    Set the identity property: The resource ID of a user-assigned managed identity that is assigned to the Session Pool, or 'system' for system-assigned identity.
    Set the lifecycle property: Use to select the lifecycle stages of a Session Pool during which the Managed Identity should be available.

    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

    • ManagedIdentitySetting

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

    • identity

      public String identity()
      Get the identity property: The resource ID of a user-assigned managed identity that is assigned to the Session Pool, or 'system' for system-assigned identity.
      Returns:
      the identity value.
    • withIdentity

      public ManagedIdentitySetting withIdentity(String identity)
      Set the identity property: The resource ID of a user-assigned managed identity that is assigned to the Session Pool, or 'system' for system-assigned identity.
      Parameters:
      identity - the identity value to set.
      Returns:
      the ManagedIdentitySetting object itself.
    • lifecycle

      public IdentitySettingsLifeCycle lifecycle()
      Get the lifecycle property: Use to select the lifecycle stages of a Session Pool during which the Managed Identity should be available.
      Returns:
      the lifecycle value.
    • withLifecycle

      public ManagedIdentitySetting withLifecycle(IdentitySettingsLifeCycle lifecycle)
      Set the lifecycle property: Use to select the lifecycle stages of a Session Pool during which the Managed Identity should be available.
      Parameters:
      lifecycle - the lifecycle value to set.
      Returns:
      the ManagedIdentitySetting 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<ManagedIdentitySetting>
      Throws:
      IOException
    • fromJson

      public static ManagedIdentitySetting fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedIdentitySetting from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedIdentitySetting if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ManagedIdentitySetting.