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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the containerType property: The container type of the sessions.Get the customContainerTemplate property: The custom container configuration if the containerType is CustomContainer.Get the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.Get the environmentId property: Resource ID of the session pool's environment.static SessionPoolProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SessionPoolProperties from the JsonReader.Get the managedIdentitySettings property: Optional settings for a Managed Identity that is assigned to the Session pool.Get the nodeCount property: The number of nodes the session pool is using.Get the poolManagementEndpoint property: The endpoint to manage the pool.Get the poolManagementType property: The pool management type of the session pool.Get the provisioningState property: Provisioning state of the session pool.Get the scaleConfiguration property: The scale configuration of the session pool.secrets()
Get the secrets property: The secrets of the session pool.Get the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withContainerType
(ContainerType containerType) Set the containerType property: The container type of the sessions.withCustomContainerTemplate
(CustomContainerTemplate customContainerTemplate) Set the customContainerTemplate property: The custom container configuration if the containerType is CustomContainer.withDynamicPoolConfiguration
(DynamicPoolConfiguration dynamicPoolConfiguration) Set the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.withEnvironmentId
(String environmentId) Set the environmentId property: Resource ID of the session pool's environment.withManagedIdentitySettings
(List<ManagedIdentitySetting> managedIdentitySettings) Set the managedIdentitySettings property: Optional settings for a Managed Identity that is assigned to the Session pool.withPoolManagementType
(PoolManagementType poolManagementType) Set the poolManagementType property: The pool management type of the session pool.withScaleConfiguration
(ScaleConfiguration scaleConfiguration) Set the scaleConfiguration property: The scale configuration of the session pool.withSecrets
(List<SessionPoolSecret> secrets) Set the secrets property: The secrets of the session pool.withSessionNetworkConfiguration
(SessionNetworkConfiguration sessionNetworkConfiguration) Set the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.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
-
SessionPoolProperties
public SessionPoolProperties()Creates an instance of SessionPoolProperties class.
-
-
Method Details
-
environmentId
Get the environmentId property: Resource ID of the session pool's environment.- Returns:
- the environmentId value.
-
withEnvironmentId
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
Get the containerType property: The container type of the sessions.- Returns:
- the containerType value.
-
withContainerType
Set the containerType property: The container type of the sessions.- Parameters:
containerType
- the containerType value to set.- Returns:
- the SessionPoolProperties object itself.
-
poolManagementType
Get the poolManagementType property: The pool management type of the session pool.- Returns:
- the poolManagementType value.
-
withPoolManagementType
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
Get the nodeCount property: The number of nodes the session pool is using.- Returns:
- the nodeCount value.
-
scaleConfiguration
Get the scaleConfiguration property: The scale configuration of the session pool.- Returns:
- the scaleConfiguration value.
-
withScaleConfiguration
Set the scaleConfiguration property: The scale configuration of the session pool.- Parameters:
scaleConfiguration
- the scaleConfiguration value to set.- Returns:
- the SessionPoolProperties object itself.
-
secrets
Get the secrets property: The secrets of the session pool.- Returns:
- the secrets value.
-
withSecrets
Set the secrets property: The secrets of the session pool.- Parameters:
secrets
- the secrets value to set.- Returns:
- the SessionPoolProperties object itself.
-
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
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
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
Get the poolManagementEndpoint property: The endpoint to manage the pool.- Returns:
- the poolManagementEndpoint value.
-
provisioningState
Get the provisioningState property: Provisioning state of the session pool.- Returns:
- the provisioningState value.
-
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
- Specified by:
toJson
in interfacecom.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.
-