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 Details

    • CustomContainerTemplate

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

    • registryCredentials

      public SessionRegistryCredentials 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

      public List<SessionContainer> containers()
      Get the containers property: List of container definitions for the sessions of the session pool.
      Returns:
      the containers value.
    • withContainers

      public CustomContainerTemplate withContainers(List<SessionContainer> containers)
      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

      public SessionIngress ingress()
      Get the ingress property: Session pool ingress configuration.
      Returns:
      the ingress value.
    • withIngress

      public CustomContainerTemplate withIngress(SessionIngress ingress)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.