public static class ContainerInstanceSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContainerInstanceSummary.Builder |
availabilityDomain(String availabilityDomain)
The availability domain where the container instance runs.
|
ContainerInstanceSummary |
build() |
ContainerInstanceSummary.Builder |
compartmentId(String compartmentId)
The OCID of the compartment to create the container instance in.
|
ContainerInstanceSummary.Builder |
containerCount(Integer containerCount)
The number of containers in the container instance.
|
ContainerInstanceSummary.Builder |
containerRestartPolicy(ContainerInstance.ContainerRestartPolicy containerRestartPolicy)
Container Restart Policy
|
ContainerInstanceSummary.Builder |
copy(ContainerInstanceSummary model) |
ContainerInstanceSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ContainerInstanceSummary.Builder |
displayName(String displayName)
A user-friendly name.
|
ContainerInstanceSummary.Builder |
faultDomain(String faultDomain)
The fault domain where the container instance runs.
|
ContainerInstanceSummary.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
ContainerInstanceSummary.Builder |
gracefulShutdownTimeoutInSeconds(Long gracefulShutdownTimeoutInSeconds)
The amount of time that processes in a container have to gracefully end when the
container must be stopped.
|
ContainerInstanceSummary.Builder |
id(String id)
OCID that cannot be changed.
|
ContainerInstanceSummary.Builder |
lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the container instance in more detail.
|
ContainerInstanceSummary.Builder |
lifecycleState(ContainerInstance.LifecycleState lifecycleState)
The current state of the container instance.
|
ContainerInstanceSummary.Builder |
shape(String shape)
The shape of the container instance.
|
ContainerInstanceSummary.Builder |
shapeConfig(ContainerInstanceShapeConfig shapeConfig) |
ContainerInstanceSummary.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
ContainerInstanceSummary.Builder |
timeCreated(Date timeCreated)
The time the container instance was created, in the format defined by RFC3339.
|
ContainerInstanceSummary.Builder |
timeUpdated(Date timeUpdated)
The time the container instance was updated, in the format defined by RFC3339.
|
ContainerInstanceSummary.Builder |
volumeCount(Integer volumeCount)
The number of volumes that are attached to the container instance.
|
public ContainerInstanceSummary.Builder id(String id)
OCID that cannot be changed.
id
- the value to setpublic ContainerInstanceSummary.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 ContainerInstanceSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment to create the container instance in.
compartmentId
- the value to setpublic ContainerInstanceSummary.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 ContainerInstanceSummary.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 ContainerInstanceSummary.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 ContainerInstanceSummary.Builder availabilityDomain(String availabilityDomain)
The availability domain where the container instance runs.
availabilityDomain
- the value to setpublic ContainerInstanceSummary.Builder faultDomain(String faultDomain)
The fault domain where the container instance runs.
faultDomain
- the value to setpublic ContainerInstanceSummary.Builder lifecycleState(ContainerInstance.LifecycleState lifecycleState)
The current state of the container instance.
lifecycleState
- the value to setpublic ContainerInstanceSummary.Builder lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the container instance in more detail. Can be used to provide actionable information.
lifecycleDetails
- the value to setpublic ContainerInstanceSummary.Builder timeCreated(Date timeCreated)
The time the container instance was created, in the format defined by RFC3339.
timeCreated
- the value to setpublic ContainerInstanceSummary.Builder timeUpdated(Date timeUpdated)
The time the container instance was updated, in the format defined by RFC3339.
timeUpdated
- the value to setpublic ContainerInstanceSummary.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 ContainerInstanceSummary.Builder shapeConfig(ContainerInstanceShapeConfig shapeConfig)
public ContainerInstanceSummary.Builder containerCount(Integer containerCount)
The number of containers in the container instance.
containerCount
- the value to setpublic ContainerInstanceSummary.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 ContainerInstanceSummary.Builder volumeCount(Integer volumeCount)
The number of volumes that are attached to the container instance.
volumeCount
- the value to setpublic ContainerInstanceSummary.Builder containerRestartPolicy(ContainerInstance.ContainerRestartPolicy containerRestartPolicy)
Container Restart Policy
containerRestartPolicy
- the value to setpublic ContainerInstanceSummary build()
public ContainerInstanceSummary.Builder copy(ContainerInstanceSummary model)
Copyright © 2016–2024. All rights reserved.