Class ContainerInstance.Builder
- java.lang.Object
- 
- com.oracle.bmc.containerinstances.model.ContainerInstance.Builder
 
- 
- Enclosing class:
- ContainerInstance
 
 public static class ContainerInstance.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerInstance.BuilderavailabilityDomain(String availabilityDomain)The availability domain to place the container instance.ContainerInstancebuild()ContainerInstance.BuildercompartmentId(String compartmentId)The OCID of the compartment.ContainerInstance.BuildercontainerCount(Integer containerCount)The number of containers on the container instance.ContainerInstance.BuildercontainerRestartPolicy(ContainerInstance.ContainerRestartPolicy containerRestartPolicy)The container restart policy is applied for all containers in container instance.ContainerInstance.Buildercontainers(List<ContainerInstanceContainer> containers)The containers on the container instance.ContainerInstance.Buildercopy(ContainerInstance model)ContainerInstance.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ContainerInstance.BuilderdisplayName(String displayName)A user-friendly name.ContainerInstance.BuilderdnsConfig(ContainerDnsConfig dnsConfig)ContainerInstance.BuilderfaultDomain(String faultDomain)The fault domain to place the container instance.ContainerInstance.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ContainerInstance.BuildergracefulShutdownTimeoutInSeconds(Long gracefulShutdownTimeoutInSeconds)The amount of time that processes in a container have to gracefully end when the container must be stopped.ContainerInstance.Builderid(String id)An OCID that cannot be changed.ContainerInstance.BuilderimagePullSecrets(List<ImagePullSecret> imagePullSecrets)The image pulls secrets so you can access private registry to pull container images.ContainerInstance.BuilderlifecycleDetails(String lifecycleDetails)A message that describes the current state of the container in more detail.ContainerInstance.BuilderlifecycleState(ContainerInstance.LifecycleState lifecycleState)The current state of the container instance.ContainerInstance.Buildershape(String shape)The shape of the container instance.ContainerInstance.BuildershapeConfig(ContainerInstanceShapeConfig shapeConfig)ContainerInstance.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.ContainerInstance.BuildertimeCreated(Date timeCreated)The time the container instance was created, in the format defined by RFC 3339.ContainerInstance.BuildertimeUpdated(Date timeUpdated)The time the container instance was updated, in the format defined by RFC 3339.ContainerInstance.Buildervnics(List<ContainerVnic> vnics)The virtual networks available to the containers in the container instance.ContainerInstance.BuildervolumeCount(Integer volumeCount)The number of volumes that are attached to the container instance.ContainerInstance.Buildervolumes(List<ContainerVolume> volumes)A volume is a directory with data that is accessible across multiple containers in a container instance.
 
- 
- 
- 
Method Detail- 
idpublic ContainerInstance.Builder id(String id) An OCID that cannot be changed.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic ContainerInstance.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
 
 - 
compartmentIdpublic ContainerInstance.Builder compartmentId(String compartmentId) The OCID of the compartment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic 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”} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic 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”}}. - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
systemTagspublic 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”}}. - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
availabilityDomainpublic ContainerInstance.Builder availabilityDomain(String availabilityDomain) The availability domain to place the container instance.- Parameters:
- availabilityDomain- the value to set
- Returns:
- this builder
 
 - 
faultDomainpublic ContainerInstance.Builder faultDomain(String faultDomain) The fault domain to place the container instance.- Parameters:
- faultDomain- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic ContainerInstance.Builder lifecycleState(ContainerInstance.LifecycleState lifecycleState) The current state of the container instance.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic 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. - Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
volumespublic ContainerInstance.Builder volumes(List<ContainerVolume> volumes) A volume is a directory with data that is accessible across multiple containers in a container instance.- Parameters:
- volumes- the value to set
- Returns:
- this builder
 
 - 
volumeCountpublic ContainerInstance.Builder volumeCount(Integer volumeCount) The number of volumes that are attached to the container instance.- Parameters:
- volumeCount- the value to set
- Returns:
- this builder
 
 - 
containerspublic ContainerInstance.Builder containers(List<ContainerInstanceContainer> containers) The containers on the container instance.- Parameters:
- containers- the value to set
- Returns:
- this builder
 
 - 
containerCountpublic ContainerInstance.Builder containerCount(Integer containerCount) The number of containers on the container instance.- Parameters:
- containerCount- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic ContainerInstance.Builder timeCreated(Date timeCreated) The time the container instance was created, in the format defined by RFC 3339.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic ContainerInstance.Builder timeUpdated(Date timeUpdated) The time the container instance was updated, in the format defined by RFC 3339.- Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
shapepublic 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. - Parameters:
- shape- the value to set
- Returns:
- this builder
 
 - 
shapeConfigpublic ContainerInstance.Builder shapeConfig(ContainerInstanceShapeConfig shapeConfig) 
 - 
vnicspublic ContainerInstance.Builder vnics(List<ContainerVnic> vnics) The virtual networks available to the containers in the container instance.- Parameters:
- vnics- the value to set
- Returns:
- this builder
 
 - 
dnsConfigpublic ContainerInstance.Builder dnsConfig(ContainerDnsConfig dnsConfig) 
 - 
gracefulShutdownTimeoutInSecondspublic 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. - Parameters:
- gracefulShutdownTimeoutInSeconds- the value to set
- Returns:
- this builder
 
 - 
imagePullSecretspublic ContainerInstance.Builder imagePullSecrets(List<ImagePullSecret> imagePullSecrets) The image pulls secrets so you can access private registry to pull container images.- Parameters:
- imagePullSecrets- the value to set
- Returns:
- this builder
 
 - 
containerRestartPolicypublic ContainerInstance.Builder containerRestartPolicy(ContainerInstance.ContainerRestartPolicy containerRestartPolicy) The container restart policy is applied for all containers in container instance.- Parameters:
- containerRestartPolicy- the value to set
- Returns:
- this builder
 
 - 
buildpublic ContainerInstance build() 
 - 
copypublic ContainerInstance.Builder copy(ContainerInstance model) 
 
- 
 
-