public static class ContainerImage.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ContainerImage |
build() |
ContainerImage.Builder |
compartmentId(String compartmentId)
The compartment OCID to which the container image belongs.
|
ContainerImage.Builder |
copy(ContainerImage model) |
ContainerImage.Builder |
createdBy(String createdBy)
The OCID of the
user or principal that created the resource.
|
ContainerImage.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ContainerImage.Builder |
digest(String digest)
The container image digest.
|
ContainerImage.Builder |
displayName(String displayName)
The repository name and the most recent version associated with the image.
|
ContainerImage.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
ContainerImage.Builder |
id(String id)
The OCID of the
container image.
|
ContainerImage.Builder |
layers(List<ContainerImageLayer> layers)
Layers of which the image is composed, ordered by the layer digest.
|
ContainerImage.Builder |
layersSizeInBytes(Long layersSizeInBytes)
The total size of the container image layers in bytes.
|
ContainerImage.Builder |
lifecycleState(ContainerImage.LifecycleState lifecycleState)
The current state of the container image.
|
ContainerImage.Builder |
manifestSizeInBytes(Integer manifestSizeInBytes)
The size of the container image manifest in bytes.
|
ContainerImage.Builder |
pullCount(Long pullCount)
Total number of pulls.
|
ContainerImage.Builder |
repositoryId(String repositoryId)
The OCID of the
container repository.
|
ContainerImage.Builder |
repositoryName(String repositoryName)
The container repository name.
|
ContainerImage.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
The system tags for this resource.
|
ContainerImage.Builder |
timeCreated(Date timeCreated)
An RFC 3339 timestamp indicating when the image was created.
|
ContainerImage.Builder |
timeLastPulled(Date timeLastPulled)
An RFC 3339 timestamp indicating when the image was last pulled.
|
ContainerImage.Builder |
version(String version)
The most recent version associated with this image.
|
ContainerImage.Builder |
versions(List<ContainerVersion> versions)
The versions associated with this image.
|
public ContainerImage.Builder compartmentId(String compartmentId)
The compartment OCID to which the container image belongs. Inferred from the container repository.
compartmentId
- the value to setpublic ContainerImage.Builder createdBy(String createdBy)
The OCID of the user or principal that created the resource.
createdBy
- the value to setpublic ContainerImage.Builder digest(String digest)
The container image digest.
digest
- the value to setpublic ContainerImage.Builder displayName(String displayName)
The repository name and the most recent version associated with the image. If there are no versions associated with the image, then last known version and digest are used instead. If the last known version is unavailable, then ‘unknown’ is used instead of the version.
Example: ubuntu:latest
or ubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2
displayName
- the value to setpublic ContainerImage.Builder id(String id)
The OCID of the container image.
Example: ocid1.containerimage.oc1..exampleuniqueID
id
- the value to setpublic ContainerImage.Builder layers(List<ContainerImageLayer> layers)
Layers of which the image is composed, ordered by the layer digest.
layers
- the value to setpublic ContainerImage.Builder layersSizeInBytes(Long layersSizeInBytes)
The total size of the container image layers in bytes.
layersSizeInBytes
- the value to setpublic ContainerImage.Builder lifecycleState(ContainerImage.LifecycleState lifecycleState)
The current state of the container image.
lifecycleState
- the value to setpublic ContainerImage.Builder manifestSizeInBytes(Integer manifestSizeInBytes)
The size of the container image manifest in bytes.
manifestSizeInBytes
- the value to setpublic ContainerImage.Builder pullCount(Long pullCount)
Total number of pulls.
pullCount
- the value to setpublic ContainerImage.Builder repositoryId(String repositoryId)
The OCID of the container repository.
repositoryId
- the value to setpublic ContainerImage.Builder repositoryName(String repositoryName)
The container repository name.
repositoryName
- the value to setpublic ContainerImage.Builder timeCreated(Date timeCreated)
An RFC 3339 timestamp indicating when the image was created.
timeCreated
- the value to setpublic ContainerImage.Builder timeLastPulled(Date timeLastPulled)
An RFC 3339 timestamp indicating when the image was last pulled.
timeLastPulled
- the value to setpublic ContainerImage.Builder version(String version)
The most recent version associated with this image.
version
- the value to setpublic ContainerImage.Builder versions(List<ContainerVersion> versions)
The versions associated with this image.
versions
- the value to setpublic ContainerImage.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic ContainerImage.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic ContainerImage.Builder systemTags(Map<String,Map<String,Object>> systemTags)
The system tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
systemTags
- the value to setpublic ContainerImage build()
public ContainerImage.Builder copy(ContainerImage model)
Copyright © 2016–2024. All rights reserved.