Class SessionPoolProperties

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

public final class SessionPoolProperties extends Object implements com.azure.json.JsonSerializable<SessionPoolProperties>
Container App session pool resource specific properties.
  • Constructor Details

    • SessionPoolProperties

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

    • environmentId

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

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

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

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

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

      public SessionPoolProperties withPoolManagementType(PoolManagementType poolManagementType)
      Set the poolManagementType property: The pool management type of the session pool.
      Parameters:
      poolManagementType - the poolManagementType value to set.
      Returns:
      the SessionPoolProperties 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 SessionPoolProperties withScaleConfiguration(ScaleConfiguration scaleConfiguration)
      Set the scaleConfiguration property: The scale configuration of the session pool.
      Parameters:
      scaleConfiguration - the scaleConfiguration value to set.
      Returns:
      the SessionPoolProperties object itself.
    • secrets

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

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

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

      public SessionPoolProperties withDynamicPoolConfiguration(DynamicPoolConfiguration dynamicPoolConfiguration)
      Set the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.
      Parameters:
      dynamicPoolConfiguration - the dynamicPoolConfiguration value to set.
      Returns:
      the SessionPoolProperties 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 SessionPoolProperties 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 SessionPoolProperties 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 SessionPoolProperties 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 SessionPoolProperties 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 SessionPoolProperties 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 SessionPoolProperties 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<SessionPoolProperties>
      Throws:
      IOException
    • fromJson

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