Class CreateContainerDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public CreateContainerDetails.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information. If you don’t provide a name, a name is generated automatically.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • imageUrl

        public CreateContainerDetails.Builder imageUrl​(String imageUrl)
        A URL identifying the image that the container runs in, such as docker.io/library/busybox:latest.

        If you do not provide a tag, the tag will default to latest.

        If no registry is provided, will default the registry to public docker hub docker.io/library.

        The registry used for container image must be reachable over the Container Instance's VNIC.

        Parameters:
        imageUrl - the value to set
        Returns:
        this builder
      • command

        public CreateContainerDetails.Builder command​(List<String> command)
        An optional command that overrides the ENTRYPOINT process.

        If you do not provide a value, the existing ENTRYPOINT process defined in the image is used.

        Parameters:
        command - the value to set
        Returns:
        this builder
      • arguments

        public CreateContainerDetails.Builder arguments​(List<String> arguments)
        A list of string arguments for a container’s ENTRYPOINT process.

        Many containers use an ENTRYPOINT process pointing to a shell (/bin/bash). For those containers, this argument list specifies the main command in the container process.

        The total size of all arguments combined must be 64 KB or smaller.

        Parameters:
        arguments - the value to set
        Returns:
        this builder
      • workingDirectory

        public CreateContainerDetails.Builder workingDirectory​(String workingDirectory)
        The working directory within the container’s filesystem for the container process.

        If not specified, the default working directory from the image is used.

        Parameters:
        workingDirectory - the value to set
        Returns:
        this builder
      • environmentVariables

        public CreateContainerDetails.Builder environmentVariables​(Map<String,​String> environmentVariables)
        A map of additional environment variables to set in the environment of the container’s ENTRYPOINT process.

        These variables are in addition to any variables already defined in the container’s image.

        The total size of all environment variables combined, name and values, must be 64 KB or smaller.

        Parameters:
        environmentVariables - the value to set
        Returns:
        this builder
      • isResourcePrincipalDisabled

        public CreateContainerDetails.Builder isResourcePrincipalDisabled​(Boolean isResourcePrincipalDisabled)
        Determines if the container will have access to the container instance resource principal.

        This method utilizes resource principal version 2.2. For information on how to use the exposed resource principal elements, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal.

        Parameters:
        isResourcePrincipalDisabled - the value to set
        Returns:
        this builder
      • healthChecks

        public CreateContainerDetails.Builder healthChecks​(List<CreateContainerHealthCheckDetails> healthChecks)
        list of container health checks to check container status and take appropriate action if container status is failed.

        There are two types of health checks that we currently support HTTP and TCP.

        Parameters:
        healthChecks - the value to set
        Returns:
        this builder
      • freeformTags

        public CreateContainerDetails.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public CreateContainerDetails.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}.

        Parameters:
        definedTags - the value to set
        Returns:
        this builder