Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Container.Builder |
arguments(List<String> arguments)
A list of string arguments for the ENTRYPOINT process of the container.
|
Container.Builder |
availabilityDomain(String availabilityDomain)
The availability domain where the container instance that hosts the container runs.
|
Container |
build() |
Container.Builder |
command(List<String> command)
This command overrides ENTRYPOINT process of the container.
|
Container.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the container.
|
Container.Builder |
containerInstanceId(String containerInstanceId)
The OCID
of the container instance that the container is running on.
|
Container.Builder |
containerRestartAttemptCount(Integer containerRestartAttemptCount)
The number of container restart attempts.
|
Container.Builder |
copy(Container model) |
Container.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Container.Builder |
displayName(String displayName)
A user-friendly name.
|
Container.Builder |
environmentVariables(Map<String,String> environmentVariables)
A map of additional environment variables to set in the environment of the ENTRYPOINT
process of the container.
|
Container.Builder |
exitCode(Integer exitCode)
The exit code of the container process when it stopped running.
|
Container.Builder |
faultDomain(String faultDomain)
The fault domain of the container instance that hosts the container runs.
|
Container.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
Container.Builder |
healthChecks(List<ContainerHealthCheck> healthChecks)
List of container health checks
|
Container.Builder |
id(String id)
The OCID
of the container.
|
Container.Builder |
imageUrl(String imageUrl)
The container image information.
|
Container.Builder |
isResourcePrincipalDisabled(Boolean isResourcePrincipalDisabled)
Determines if the container will have access to the container instance resource
principal.
|
Container.Builder |
lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the container in more detail.
|
Container.Builder |
lifecycleState(Container.LifecycleState lifecycleState)
The current state of the container.
|
Container.Builder |
resourceConfig(ContainerResourceConfig resourceConfig) |
Container.Builder |
securityContext(SecurityContext securityContext) |
Container.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
Container.Builder |
timeCreated(Date timeCreated)
The time the container was created, in the format defined by RFC
3339.
|
Container.Builder |
timeTerminated(Date timeTerminated)
The time when the container last deleted (terminated), in the format defined by RFC
3339.
|
Container.Builder |
timeUpdated(Date timeUpdated)
The time the container was updated, in the format defined by RFC
3339.
|
Container.Builder |
volumeMounts(List<VolumeMount> volumeMounts)
List of the volume mounts.
|
Container.Builder |
workingDirectory(String workingDirectory)
The working directory within the container’s filesystem for the container process.
|
public Container.Builder id(String id)
The OCID of the container.
id
- the value to setpublic Container.Builder displayName(String displayName)
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
displayName
- the value to setpublic Container.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the container.
compartmentId
- the value to setpublic Container.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"}
freeformTags
- the value to setpublic Container.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"}}
.
definedTags
- the value to setpublic Container.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"}}
.
systemTags
- the value to setpublic Container.Builder availabilityDomain(String availabilityDomain)
The availability domain where the container instance that hosts the container runs.
availabilityDomain
- the value to setpublic Container.Builder faultDomain(String faultDomain)
The fault domain of the container instance that hosts the container runs.
faultDomain
- the value to setpublic Container.Builder lifecycleState(Container.LifecycleState lifecycleState)
The current state of the container.
lifecycleState
- the value to setpublic Container.Builder lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the container in more detail. Can be used to provide actionable information.
lifecycleDetails
- the value to setpublic Container.Builder exitCode(Integer exitCode)
The exit code of the container process when it stopped running.
exitCode
- the value to setpublic Container.Builder timeTerminated(Date timeTerminated)
The time when the container last deleted (terminated), in the format defined by RFC 3339.
timeTerminated
- the value to setpublic Container.Builder timeCreated(Date timeCreated)
The time the container was created, in the format defined by RFC 3339.
timeCreated
- the value to setpublic Container.Builder timeUpdated(Date timeUpdated)
The time the container was updated, in the format defined by RFC 3339.
timeUpdated
- the value to setpublic Container.Builder containerInstanceId(String containerInstanceId)
The OCID of the container instance that the container is running on.
containerInstanceId
- the value to setpublic Container.Builder imageUrl(String imageUrl)
The container image information. Currently only supports public Docker registry.
You can provide either the image name (containerImage), image name with version
(containerImagev1), or complete Docker image URL docker.io/library/containerImage:latest
.
If you do not provide a registry, the registry defaults to public Docker hub docker.io/library
. The registry used for the container image must be reachable over the
VNIC of the container instance.
imageUrl
- the value to setpublic Container.Builder command(List<String> command)
This command overrides ENTRYPOINT process of the container. If you do not specify this command, the existing ENTRYPOINT process defined in the image is the default.
command
- the value to setpublic Container.Builder arguments(List<String> arguments)
A list of string arguments for the ENTRYPOINT process of the container.
Many containers use an ENTRYPOINT process pointing to a shell /bin/bash
. For
those containers, you can use the argument list to specify the main command in the
container process.
arguments
- the value to setpublic Container.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.
workingDirectory
- the value to setpublic Container.Builder environmentVariables(Map<String,String> environmentVariables)
A map of additional environment variables to set in the environment of the ENTRYPOINT process of the container. These variables are in addition to any variables already defined in the container’s image.
environmentVariables
- the value to setpublic Container.Builder volumeMounts(List<VolumeMount> volumeMounts)
List of the volume mounts.
volumeMounts
- the value to setpublic Container.Builder healthChecks(List<ContainerHealthCheck> healthChecks)
List of container health checks
healthChecks
- the value to setpublic Container.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 more 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.
isResourcePrincipalDisabled
- the value to setpublic Container.Builder resourceConfig(ContainerResourceConfig resourceConfig)
public Container.Builder containerRestartAttemptCount(Integer containerRestartAttemptCount)
The number of container restart attempts. Depending on the restart policy, a restart might be attempted after a health check failure or a container exit.
containerRestartAttemptCount
- the value to setpublic Container.Builder securityContext(SecurityContext securityContext)
public Container build()
public Container.Builder copy(Container model)
Copyright © 2016–2024. All rights reserved.