Class CustomContainerTemplate
java.lang.Object
com.azure.resourcemanager.appcontainers.models.CustomContainerTemplate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomContainerTemplate>
public final class CustomContainerTemplate
extends Object
implements com.azure.json.JsonSerializable<CustomContainerTemplate>
Custom container configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomContainerTemplate class. -
Method Summary
Modifier and TypeMethodDescriptionGet the containers property: List of container definitions for the sessions of the session pool.static CustomContainerTemplate
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CustomContainerTemplate from the JsonReader.ingress()
Get the ingress property: Session pool ingress configuration.Get the registryCredentials property: Private container registry credentials for containers used by the sessions of the session pool.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withContainers
(List<SessionContainer> containers) Set the containers property: List of container definitions for the sessions of the session pool.withIngress
(SessionIngress ingress) Set the ingress property: Session pool ingress configuration.withRegistryCredentials
(SessionRegistryCredentials registryCredentials) Set the registryCredentials property: Private container registry credentials for containers used by the sessions of 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
-
CustomContainerTemplate
public CustomContainerTemplate()Creates an instance of CustomContainerTemplate class.
-
-
Method Details
-
registryCredentials
Get the registryCredentials property: Private container registry credentials for containers used by the sessions of the session pool.- Returns:
- the registryCredentials value.
-
withRegistryCredentials
public CustomContainerTemplate withRegistryCredentials(SessionRegistryCredentials registryCredentials) Set the registryCredentials property: Private container registry credentials for containers used by the sessions of the session pool.- Parameters:
registryCredentials
- the registryCredentials value to set.- Returns:
- the CustomContainerTemplate object itself.
-
containers
Get the containers property: List of container definitions for the sessions of the session pool.- Returns:
- the containers value.
-
withContainers
Set the containers property: List of container definitions for the sessions of the session pool.- Parameters:
containers
- the containers value to set.- Returns:
- the CustomContainerTemplate object itself.
-
ingress
Get the ingress property: Session pool ingress configuration.- Returns:
- the ingress value.
-
withIngress
Set the ingress property: Session pool ingress configuration.- Parameters:
ingress
- the ingress value to set.- Returns:
- the CustomContainerTemplate 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<CustomContainerTemplate>
- Throws:
IOException
-
fromJson
public static CustomContainerTemplate fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CustomContainerTemplate from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CustomContainerTemplate 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 CustomContainerTemplate.
-