Class ContainerSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

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

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

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

        public ContainerSummary.Builder compartmentId​(String compartmentId)
        The compartment OCID.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • freeformTags

        public ContainerSummary.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 ContainerSummary.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
      • systemTags

        public ContainerSummary.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}.

        Parameters:
        systemTags - the value to set
        Returns:
        this builder
      • availabilityDomain

        public ContainerSummary.Builder availabilityDomain​(String availabilityDomain)
        The availability domain where the container instance that hosts this container runs.
        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • faultDomain

        public ContainerSummary.Builder faultDomain​(String faultDomain)
        The fault domain where the container instance that hosts the container runs.
        Parameters:
        faultDomain - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public ContainerSummary.Builder lifecycleDetails​(String lifecycleDetails)
        A message that describes the current state of the container in more detail.

        Can be used to provide actionable information.

        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • timeCreated

        public ContainerSummary.Builder timeCreated​(Date timeCreated)
        The time the the container was created in the format defined by RFC 3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public ContainerSummary.Builder timeUpdated​(Date timeUpdated)
        The time the container was updated in the format defined by RFC 3339.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • containerInstanceId

        public ContainerSummary.Builder containerInstanceId​(String containerInstanceId)
        The OCID of the container instance on which the container is running.
        Parameters:
        containerInstanceId - the value to set
        Returns:
        this builder
      • imageUrl

        public ContainerSummary.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
      • isResourcePrincipalDisabled

        public ContainerSummary.Builder isResourcePrincipalDisabled​(Boolean isResourcePrincipalDisabled)
        Determines whether 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