java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.appcontainers.fluent.models.SessionPoolInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class SessionPoolInner extends com.azure.core.management.Resource
Container App session pool.
  • Constructor Details

    • SessionPoolInner

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

    • identity

      public ManagedServiceIdentity identity()
      Get the identity property: Managed identities needed by a session pool to interact with other Azure services to not maintain any secrets or credentials in code.
      Returns:
      the identity value.
    • withIdentity

      public SessionPoolInner withIdentity(ManagedServiceIdentity identity)
      Set the identity property: Managed identities needed by a session pool to interact with other Azure services to not maintain any secrets or credentials in code.
      Parameters:
      identity - the identity value to set.
      Returns:
      the SessionPoolInner object itself.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • withLocation

      public SessionPoolInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public SessionPoolInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • environmentId

      public String environmentId()
      Get the environmentId property: Resource ID of the session pool's environment.
      Returns:
      the environmentId value.
    • withEnvironmentId

      public SessionPoolInner withEnvironmentId(String environmentId)
      Set the environmentId property: Resource ID of the session pool's environment.
      Parameters:
      environmentId - the environmentId value to set.
      Returns:
      the SessionPoolInner object itself.
    • containerType

      public ContainerType containerType()
      Get the containerType property: The container type of the sessions.
      Returns:
      the containerType value.
    • withContainerType

      public SessionPoolInner withContainerType(ContainerType containerType)
      Set the containerType property: The container type of the sessions.
      Parameters:
      containerType - the containerType value to set.
      Returns:
      the SessionPoolInner object itself.
    • poolManagementType

      public PoolManagementType poolManagementType()
      Get the poolManagementType property: The pool management type of the session pool.
      Returns:
      the poolManagementType value.
    • withPoolManagementType

      public SessionPoolInner withPoolManagementType(PoolManagementType poolManagementType)
      Set the poolManagementType property: The pool management type of the session pool.
      Parameters:
      poolManagementType - the poolManagementType value to set.
      Returns:
      the SessionPoolInner object itself.
    • nodeCount

      public Integer nodeCount()
      Get the nodeCount property: The number of nodes the session pool is using.
      Returns:
      the nodeCount value.
    • scaleConfiguration

      public ScaleConfiguration scaleConfiguration()
      Get the scaleConfiguration property: The scale configuration of the session pool.
      Returns:
      the scaleConfiguration value.
    • withScaleConfiguration

      public SessionPoolInner withScaleConfiguration(ScaleConfiguration scaleConfiguration)
      Set the scaleConfiguration property: The scale configuration of the session pool.
      Parameters:
      scaleConfiguration - the scaleConfiguration value to set.
      Returns:
      the SessionPoolInner object itself.
    • secrets

      public List<SessionPoolSecret> secrets()
      Get the secrets property: The secrets of the session pool.
      Returns:
      the secrets value.
    • withSecrets

      public SessionPoolInner withSecrets(List<SessionPoolSecret> secrets)
      Set the secrets property: The secrets of the session pool.
      Parameters:
      secrets - the secrets value to set.
      Returns:
      the SessionPoolInner object itself.
    • dynamicPoolConfiguration

      public DynamicPoolConfiguration dynamicPoolConfiguration()
      Get the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
      Returns:
      the dynamicPoolConfiguration value.
    • withDynamicPoolConfiguration

      public SessionPoolInner withDynamicPoolConfiguration(DynamicPoolConfiguration dynamicPoolConfiguration)
      Set the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
      Parameters:
      dynamicPoolConfiguration - the dynamicPoolConfiguration value to set.
      Returns:
      the SessionPoolInner object itself.
    • customContainerTemplate

      public CustomContainerTemplate customContainerTemplate()
      Get the customContainerTemplate property: The custom container configuration if the containerType is CustomContainer.
      Returns:
      the customContainerTemplate value.
    • withCustomContainerTemplate

      public SessionPoolInner withCustomContainerTemplate(CustomContainerTemplate customContainerTemplate)
      Set the customContainerTemplate property: The custom container configuration if the containerType is CustomContainer.
      Parameters:
      customContainerTemplate - the customContainerTemplate value to set.
      Returns:
      the SessionPoolInner object itself.
    • sessionNetworkConfiguration

      public SessionNetworkConfiguration sessionNetworkConfiguration()
      Get the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.
      Returns:
      the sessionNetworkConfiguration value.
    • withSessionNetworkConfiguration

      public SessionPoolInner withSessionNetworkConfiguration(SessionNetworkConfiguration sessionNetworkConfiguration)
      Set the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.
      Parameters:
      sessionNetworkConfiguration - the sessionNetworkConfiguration value to set.
      Returns:
      the SessionPoolInner object itself.
    • poolManagementEndpoint

      public String poolManagementEndpoint()
      Get the poolManagementEndpoint property: The endpoint to manage the pool.
      Returns:
      the poolManagementEndpoint value.
    • provisioningState

      public SessionPoolProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the session pool.
      Returns:
      the provisioningState value.
    • managedIdentitySettings

      public List<ManagedIdentitySetting> managedIdentitySettings()
      Get the managedIdentitySettings property: Optional settings for a Managed Identity that is assigned to the Session pool.
      Returns:
      the managedIdentitySettings value.
    • withManagedIdentitySettings

      public SessionPoolInner withManagedIdentitySettings(List<ManagedIdentitySetting> managedIdentitySettings)
      Set the managedIdentitySettings property: Optional settings for a Managed Identity that is assigned to the Session pool.
      Parameters:
      managedIdentitySettings - the managedIdentitySettings value to set.
      Returns:
      the SessionPoolInner 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.Resource
      Throws:
      IOException
    • fromJson

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