Class Container


  • public final class Container
    extends Object
    Container App container definition.
    • Constructor Detail

      • Container

        public Container()
    • Method Detail

      • image

        public String image()
        Get the image property: Container image tag.
        Returns:
        the image value.
      • withImage

        public Container withImage​(String image)
        Set the image property: Container image tag.
        Parameters:
        image - the image value to set.
        Returns:
        the Container object itself.
      • name

        public String name()
        Get the name property: Custom container name.
        Returns:
        the name value.
      • withName

        public Container withName​(String name)
        Set the name property: Custom container name.
        Parameters:
        name - the name value to set.
        Returns:
        the Container object itself.
      • command

        public List<String> command()
        Get the command property: Container start command.
        Returns:
        the command value.
      • withCommand

        public Container withCommand​(List<String> command)
        Set the command property: Container start command.
        Parameters:
        command - the command value to set.
        Returns:
        the Container object itself.
      • args

        public List<String> args()
        Get the args property: Container start command arguments.
        Returns:
        the args value.
      • withArgs

        public Container withArgs​(List<String> args)
        Set the args property: Container start command arguments.
        Parameters:
        args - the args value to set.
        Returns:
        the Container object itself.
      • env

        public List<EnvironmentVar> env()
        Get the env property: Container environment variables.
        Returns:
        the env value.
      • withEnv

        public Container withEnv​(List<EnvironmentVar> env)
        Set the env property: Container environment variables.
        Parameters:
        env - the env value to set.
        Returns:
        the Container object itself.
      • resources

        public ContainerResources resources()
        Get the resources property: Container resource requirements.
        Returns:
        the resources value.
      • withResources

        public Container withResources​(ContainerResources resources)
        Set the resources property: Container resource requirements.
        Parameters:
        resources - the resources value to set.
        Returns:
        the Container object itself.
      • 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.
      • volumeMounts

        public List<VolumeMount> volumeMounts()
        Get the volumeMounts property: Container volume mounts.
        Returns:
        the volumeMounts value.
      • withVolumeMounts

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

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