public static class CreateContainerInstanceDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public CreateContainerInstanceDetails.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 CreateContainerInstanceDetails.Builder compartmentId(String compartmentId)
The compartment OCID.
compartmentId
- the value to setpublic CreateContainerInstanceDetails.Builder availabilityDomain(String availabilityDomain)
The availability domain where the container instance runs.
availabilityDomain
- the value to setpublic CreateContainerInstanceDetails.Builder faultDomain(String faultDomain)
The fault domain where the container instance runs.
faultDomain
- the value to setpublic CreateContainerInstanceDetails.Builder shape(String shape)
The shape of the container instance. The shape determines the resources available to the container instance.
shape
- the value to setpublic CreateContainerInstanceDetails.Builder shapeConfig(CreateContainerInstanceShapeConfigDetails shapeConfig)
public CreateContainerInstanceDetails.Builder volumes(List<CreateContainerVolumeDetails> volumes)
A volume is a directory with data that is accessible across multiple containers in a container instance.
You can attach up to 32 volumes to single container instance.
volumes
- the value to setpublic CreateContainerInstanceDetails.Builder containers(List<CreateContainerDetails> containers)
The containers to create on this container instance.
containers
- the value to setpublic CreateContainerInstanceDetails.Builder vnics(List<CreateContainerVnicDetails> vnics)
The networks available to containers on this container instance.
vnics
- the value to setpublic CreateContainerInstanceDetails.Builder dnsConfig(CreateContainerDnsConfigDetails dnsConfig)
public CreateContainerInstanceDetails.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 CreateContainerInstanceDetails.Builder imagePullSecrets(List<CreateImagePullSecretDetails> imagePullSecrets)
The image pulls secrets so you can access private registry to pull container images.
imagePullSecrets
- the value to setpublic CreateContainerInstanceDetails.Builder containerRestartPolicy(ContainerInstance.ContainerRestartPolicy containerRestartPolicy)
Container restart policy
containerRestartPolicy
- the value to setpublic CreateContainerInstanceDetails.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 CreateContainerInstanceDetails.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 CreateContainerInstanceDetails build()
public CreateContainerInstanceDetails.Builder copy(CreateContainerInstanceDetails model)
Copyright © 2016–2024. All rights reserved.