public static class CreateContainerDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateContainerDetails.Builder |
arguments(List<String> arguments)
A list of string arguments for a container’s ENTRYPOINT process.
|
CreateContainerDetails |
build() |
CreateContainerDetails.Builder |
command(List<String> command)
An optional command that overrides the ENTRYPOINT process.
|
CreateContainerDetails.Builder |
copy(CreateContainerDetails model) |
CreateContainerDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateContainerDetails.Builder |
displayName(String displayName)
A user-friendly name.
|
CreateContainerDetails.Builder |
environmentVariables(Map<String,String> environmentVariables)
A map of additional environment variables to set in the environment of the container’s
ENTRYPOINT process.
|
CreateContainerDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
CreateContainerDetails.Builder |
healthChecks(List<CreateContainerHealthCheckDetails> healthChecks)
list of container health checks to check container status and take appropriate action if
container status is failed.
|
CreateContainerDetails.Builder |
imageUrl(String imageUrl)
A URL identifying the image that the container runs in, such as
docker.io/library/busybox:latest.
|
CreateContainerDetails.Builder |
isResourcePrincipalDisabled(Boolean isResourcePrincipalDisabled)
Determines if the container will have access to the container instance resource
principal.
|
CreateContainerDetails.Builder |
resourceConfig(CreateContainerResourceConfigDetails resourceConfig) |
CreateContainerDetails.Builder |
securityContext(CreateSecurityContextDetails securityContext) |
CreateContainerDetails.Builder |
volumeMounts(List<CreateVolumeMountDetails> volumeMounts)
List of the volume mounts.
|
CreateContainerDetails.Builder |
workingDirectory(String workingDirectory)
The working directory within the container’s filesystem for the container process.
|
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.
displayName
- the value to setpublic 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.
imageUrl
- the value to setpublic 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.
command
- the value to setpublic 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.
arguments
- the value to setpublic 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.
workingDirectory
- the value to setpublic 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.
environmentVariables
- the value to setpublic CreateContainerDetails.Builder volumeMounts(List<CreateVolumeMountDetails> volumeMounts)
List of the volume mounts.
volumeMounts
- the value to setpublic 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.
isResourcePrincipalDisabled
- the value to setpublic CreateContainerDetails.Builder resourceConfig(CreateContainerResourceConfigDetails resourceConfig)
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 three types of health checks that we currently support HTTP, TCP, and Command.
healthChecks
- the value to setpublic CreateContainerDetails.Builder securityContext(CreateSecurityContextDetails securityContext)
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"}
freeformTags
- the value to setpublic 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"}}
.
definedTags
- the value to setpublic CreateContainerDetails build()
public CreateContainerDetails.Builder copy(CreateContainerDetails model)
Copyright © 2016–2024. All rights reserved.