public static class ContainerInstance.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContainerInstance.Builder |
availabilityDomain(String availabilityDomain)
The availability domain to place the container instance.
|
ContainerInstance |
build() |
ContainerInstance.Builder |
compartmentId(String compartmentId)
The OCID of the compartment.
|
ContainerInstance.Builder |
containerCount(Integer containerCount)
The number of containers on the container instance.
|
ContainerInstance.Builder |
containerRestartPolicy(ContainerInstance.ContainerRestartPolicy containerRestartPolicy)
The container restart policy is applied for all containers in container instance.
|
ContainerInstance.Builder |
containers(List<ContainerInstanceContainer> containers)
The containers on the container instance.
|
ContainerInstance.Builder |
copy(ContainerInstance model) |
ContainerInstance.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ContainerInstance.Builder |
displayName(String displayName)
A user-friendly name.
|
ContainerInstance.Builder |
dnsConfig(ContainerDnsConfig dnsConfig) |
ContainerInstance.Builder |
faultDomain(String faultDomain)
The fault domain to place the container instance.
|
ContainerInstance.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
ContainerInstance.Builder |
gracefulShutdownTimeoutInSeconds(Long gracefulShutdownTimeoutInSeconds)
The amount of time that processes in a container have to gracefully end when the
container must be stopped.
|
ContainerInstance.Builder |
id(String id)
An OCID that cannot be changed.
|
ContainerInstance.Builder |
imagePullSecrets(List<ImagePullSecret> imagePullSecrets)
The image pulls secrets so you can access private registry to pull container images.
|
ContainerInstance.Builder |
lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the container in more detail.
|
ContainerInstance.Builder |
lifecycleState(ContainerInstance.LifecycleState lifecycleState)
The current state of the container instance.
|
ContainerInstance.Builder |
shape(String shape)
The shape of the container instance.
|
ContainerInstance.Builder |
shapeConfig(ContainerInstanceShapeConfig shapeConfig) |
ContainerInstance.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
ContainerInstance.Builder |
timeCreated(Date timeCreated)
The time the container instance was created, in the format defined by RFC
3339.
|
ContainerInstance.Builder |
timeUpdated(Date timeUpdated)
The time the container instance was updated, in the format defined by RFC
3339.
|
ContainerInstance.Builder |
vnics(List<ContainerVnic> vnics)
The virtual networks available to the containers in the container instance.
|
ContainerInstance.Builder |
volumeCount(Integer volumeCount)
The number of volumes that are attached to the container instance.
|
ContainerInstance.Builder |
volumes(List<ContainerVolume> volumes)
A volume is a directory with data that is accessible across multiple containers in a
container instance.
|
public ContainerInstance.Builder id(String id)
An OCID that cannot be changed.
id
- the value to setpublic ContainerInstance.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 ContainerInstance.Builder compartmentId(String compartmentId)
The OCID of the compartment.
compartmentId
- the value to setpublic ContainerInstance.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 ContainerInstance.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 ContainerInstance.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 ContainerInstance.Builder availabilityDomain(String availabilityDomain)
The availability domain to place the container instance.
availabilityDomain
- the value to setpublic ContainerInstance.Builder faultDomain(String faultDomain)
The fault domain to place the container instance.
faultDomain
- the value to setpublic ContainerInstance.Builder lifecycleState(ContainerInstance.LifecycleState lifecycleState)
The current state of the container instance.
lifecycleState
- the value to setpublic ContainerInstance.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 ContainerInstance.Builder volumes(List<ContainerVolume> volumes)
A volume is a directory with data that is accessible across multiple containers in a container instance.
volumes
- the value to setpublic ContainerInstance.Builder volumeCount(Integer volumeCount)
The number of volumes that are attached to the container instance.
volumeCount
- the value to setpublic ContainerInstance.Builder containers(List<ContainerInstanceContainer> containers)
The containers on the container instance.
containers
- the value to setpublic ContainerInstance.Builder containerCount(Integer containerCount)
The number of containers on the container instance.
containerCount
- the value to setpublic ContainerInstance.Builder timeCreated(Date timeCreated)
The time the container instance was created, in the format defined by RFC 3339.
timeCreated
- the value to setpublic ContainerInstance.Builder timeUpdated(Date timeUpdated)
The time the container instance was updated, in the format defined by RFC 3339.
timeUpdated
- the value to setpublic ContainerInstance.Builder shape(String shape)
The shape of the container instance. The shape determines the number of OCPUs, amount of memory, and other resources that are allocated to a container instance.
shape
- the value to setpublic ContainerInstance.Builder shapeConfig(ContainerInstanceShapeConfig shapeConfig)
public ContainerInstance.Builder vnics(List<ContainerVnic> vnics)
The virtual networks available to the containers in the container instance.
vnics
- the value to setpublic ContainerInstance.Builder dnsConfig(ContainerDnsConfig dnsConfig)
public ContainerInstance.Builder gracefulShutdownTimeoutInSeconds(Long gracefulShutdownTimeoutInSeconds)
The amount of time that processes in a container have to gracefully end when the container must be stopped. For example, when you delete a container instance. After the timeout is reached, the processes are sent a signal to be deleted.
gracefulShutdownTimeoutInSeconds
- the value to setpublic ContainerInstance.Builder imagePullSecrets(List<ImagePullSecret> imagePullSecrets)
The image pulls secrets so you can access private registry to pull container images.
imagePullSecrets
- the value to setpublic ContainerInstance.Builder containerRestartPolicy(ContainerInstance.ContainerRestartPolicy containerRestartPolicy)
The container restart policy is applied for all containers in container instance.
containerRestartPolicy
- the value to setpublic ContainerInstance build()
public ContainerInstance.Builder copy(ContainerInstance model)
Copyright © 2016–2024. All rights reserved.