public static class ContainerSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContainerSummary.Builder |
availabilityDomain(String availabilityDomain)
The availability domain where the container instance that hosts this container runs.
|
ContainerSummary |
build() |
ContainerSummary.Builder |
compartmentId(String compartmentId)
The compartment
OCID.
|
ContainerSummary.Builder |
containerInstanceId(String containerInstanceId)
The OCID
of the container instance on which the container is running.
|
ContainerSummary.Builder |
copy(ContainerSummary model) |
ContainerSummary.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ContainerSummary.Builder |
displayName(String displayName)
A user-friendly name.
|
ContainerSummary.Builder |
faultDomain(String faultDomain)
The fault domain where the container instance that hosts the container runs.
|
ContainerSummary.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
ContainerSummary.Builder |
id(String id)
The OCID
of the container.
|
ContainerSummary.Builder |
imageUrl(String imageUrl)
A URL identifying the image that the container runs in, such as
docker.io/library/busybox:latest.
|
ContainerSummary.Builder |
isResourcePrincipalDisabled(Boolean isResourcePrincipalDisabled)
Determines whether the container will have access to the container instance resource
principal.
|
ContainerSummary.Builder |
lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the container in more detail.
|
ContainerSummary.Builder |
lifecycleState(Container.LifecycleState lifecycleState)
The current state of the container.
|
ContainerSummary.Builder |
resourceConfig(ContainerResourceConfig resourceConfig) |
ContainerSummary.Builder |
securityContext(SecurityContext securityContext) |
ContainerSummary.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
ContainerSummary.Builder |
timeCreated(Date timeCreated)
The time the the container was created in the format defined by RFC
3339.
|
ContainerSummary.Builder |
timeUpdated(Date timeUpdated)
The time the container was updated in the format defined by RFC
3339.
|
public ContainerSummary.Builder id(String id)
The OCID of the container.
id
- the value to setpublic ContainerSummary.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 ContainerSummary.Builder compartmentId(String compartmentId)
The compartment OCID.
compartmentId
- the value to setpublic ContainerSummary.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 ContainerSummary.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 ContainerSummary.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 ContainerSummary.Builder availabilityDomain(String availabilityDomain)
The availability domain where the container instance that hosts this container runs.
availabilityDomain
- the value to setpublic ContainerSummary.Builder faultDomain(String faultDomain)
The fault domain where the container instance that hosts the container runs.
faultDomain
- the value to setpublic ContainerSummary.Builder lifecycleState(Container.LifecycleState lifecycleState)
The current state of the container.
lifecycleState
- the value to setpublic ContainerSummary.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 ContainerSummary.Builder timeCreated(Date timeCreated)
The time the the container was created in the format defined by RFC 3339.
timeCreated
- the value to setpublic ContainerSummary.Builder timeUpdated(Date timeUpdated)
The time the container was updated in the format defined by RFC 3339.
timeUpdated
- the value to setpublic ContainerSummary.Builder containerInstanceId(String containerInstanceId)
The OCID of the container instance on which the container is running.
containerInstanceId
- the value to setpublic ContainerSummary.Builder resourceConfig(ContainerResourceConfig resourceConfig)
public ContainerSummary.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 ContainerSummary.Builder isResourcePrincipalDisabled(Boolean isResourcePrincipalDisabled)
Determines whether 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 ContainerSummary.Builder securityContext(SecurityContext securityContext)
public ContainerSummary build()
public ContainerSummary.Builder copy(ContainerSummary model)
Copyright © 2016–2024. All rights reserved.