Class SessionPoolUpdatableProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.SessionPoolUpdatableProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SessionPoolUpdatableProperties>
public final class SessionPoolUpdatableProperties
extends Object
implements com.azure.json.JsonSerializable<SessionPoolUpdatableProperties>
Container App session pool updatable properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SessionPoolUpdatableProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customContainerTemplate property: The custom container configuration if the containerType is CustomContainer.Get the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SessionPoolUpdatableProperties from the JsonReader.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.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.tags()
Get the tags property: Resource tags.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.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.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.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.Set the tags property: Resource tags.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
-
SessionPoolUpdatableProperties
public SessionPoolUpdatableProperties()Creates an instance of SessionPoolUpdatableProperties class.
-
-
Method Details
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource tags.- Parameters:
tags
- the tags value to set.- Returns:
- the SessionPoolUpdatableProperties object itself.
-
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
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 SessionPoolUpdatableProperties object itself.
-
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 SessionPoolUpdatableProperties 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 SessionPoolUpdatableProperties object itself.
-
dynamicPoolConfiguration
Get the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.- Returns:
- the dynamicPoolConfiguration value.
-
withDynamicPoolConfiguration
public SessionPoolUpdatableProperties withDynamicPoolConfiguration(DynamicPoolConfiguration dynamicPoolConfiguration) Set the dynamicPoolConfiguration property: The pool configuration if the poolManagementType is dynamic.- Parameters:
dynamicPoolConfiguration
- the dynamicPoolConfiguration value to set.- Returns:
- the SessionPoolUpdatableProperties object itself.
-
customContainerTemplate
Get the customContainerTemplate property: The custom container configuration if the containerType is CustomContainer.- Returns:
- the customContainerTemplate value.
-
withCustomContainerTemplate
public SessionPoolUpdatableProperties 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 SessionPoolUpdatableProperties object itself.
-
sessionNetworkConfiguration
Get the sessionNetworkConfiguration property: The network configuration of the sessions in the session pool.- Returns:
- the sessionNetworkConfiguration value.
-
withSessionNetworkConfiguration
public SessionPoolUpdatableProperties 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 SessionPoolUpdatableProperties 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<SessionPoolUpdatableProperties>
- Throws:
IOException
-
fromJson
public static SessionPoolUpdatableProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SessionPoolUpdatableProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SessionPoolUpdatableProperties 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 SessionPoolUpdatableProperties.
-