java.lang.Object
com.azure.resourcemanager.appcontainers.models.BaseContainer
com.azure.resourcemanager.appcontainers.models.Container

public final class Container extends BaseContainer
Container App container definition.
  • Constructor Details

    • Container

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

    • probes

      public List<ContainerAppProbe> probes()
      Get the probes property: List of probes for the container.
      Returns:
      the probes value.
    • withProbes

      public Container withProbes(List<ContainerAppProbe> probes)
      Set the probes property: List of probes for the container.
      Parameters:
      probes - the probes value to set.
      Returns:
      the Container object itself.
    • withImage

      public Container withImage(String image)
      Set the image property: Container image tag.
      Overrides:
      withImage in class BaseContainer
      Parameters:
      image - the image value to set.
      Returns:
      the BaseContainer object itself.
    • withName

      public Container withName(String name)
      Set the name property: Custom container name.
      Overrides:
      withName in class BaseContainer
      Parameters:
      name - the name value to set.
      Returns:
      the BaseContainer object itself.
    • withCommand

      public Container withCommand(List<String> command)
      Set the command property: Container start command.
      Overrides:
      withCommand in class BaseContainer
      Parameters:
      command - the command value to set.
      Returns:
      the BaseContainer object itself.
    • withArgs

      public Container withArgs(List<String> args)
      Set the args property: Container start command arguments.
      Overrides:
      withArgs in class BaseContainer
      Parameters:
      args - the args value to set.
      Returns:
      the BaseContainer object itself.
    • withEnv

      public Container withEnv(List<EnvironmentVar> env)
      Set the env property: Container environment variables.
      Overrides:
      withEnv in class BaseContainer
      Parameters:
      env - the env value to set.
      Returns:
      the BaseContainer object itself.
    • withResources

      public Container withResources(ContainerResources resources)
      Set the resources property: Container resource requirements.
      Overrides:
      withResources in class BaseContainer
      Parameters:
      resources - the resources value to set.
      Returns:
      the BaseContainer object itself.
    • withVolumeMounts

      public Container withVolumeMounts(List<VolumeMount> volumeMounts)
      Set the volumeMounts property: Container volume mounts.
      Overrides:
      withVolumeMounts in class BaseContainer
      Parameters:
      volumeMounts - the volumeMounts value to set.
      Returns:
      the BaseContainer object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class BaseContainer
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.