Package com.oracle.bmc.artifacts.model
Class ContainerRepository.Builder
- java.lang.Object
-
- com.oracle.bmc.artifacts.model.ContainerRepository.Builder
-
- Enclosing class:
- ContainerRepository
public static class ContainerRepository.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerRepository.BuilderbillableSizeInGBs(Long billableSizeInGBs)Total storage size in GBs that will be charged.ContainerRepositorybuild()ContainerRepository.BuildercompartmentId(String compartmentId)The OCID of the compartment in which the container repository exists.ContainerRepository.Buildercopy(ContainerRepository model)ContainerRepository.BuildercreatedBy(String createdBy)The id of the user or principal that created the resource.ContainerRepository.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ContainerRepository.BuilderdisplayName(String displayName)The container repository name.ContainerRepository.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ContainerRepository.Builderid(String id)The OCID of the container repository.ContainerRepository.BuilderimageCount(Integer imageCount)Total number of images.ContainerRepository.BuilderisImmutable(Boolean isImmutable)Whether the repository is immutable.ContainerRepository.BuilderisPublic(Boolean isPublic)Whether the repository is public.ContainerRepository.BuilderlayerCount(Integer layerCount)Total number of layers.ContainerRepository.BuilderlayersSizeInBytes(Long layersSizeInBytes)Total storage in bytes consumed by layers.ContainerRepository.BuilderlifecycleState(ContainerRepository.LifecycleState lifecycleState)The current state of the container repository.ContainerRepository.Buildernamespace(String namespace)The tenancy namespace used in the container repository path.ContainerRepository.Builderreadme(ContainerRepositoryReadme readme)ContainerRepository.BuildersystemTags(Map<String,Map<String,Object>> systemTags)The system tags for this resource.ContainerRepository.BuildertimeCreated(Date timeCreated)An RFC 3339 timestamp indicating when the repository was created.ContainerRepository.BuildertimeLastPushed(Date timeLastPushed)An RFC 3339 timestamp indicating when an image was last pushed to the repository.
-
-
-
Method Detail
-
compartmentId
public ContainerRepository.Builder compartmentId(String compartmentId)
The OCID of the compartment in which the container repository exists.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
createdBy
public ContainerRepository.Builder createdBy(String createdBy)
The id of the user or principal that created the resource.- Parameters:
createdBy- the value to set- Returns:
- this builder
-
displayName
public ContainerRepository.Builder displayName(String displayName)
The container repository name.- Parameters:
displayName- the value to set- Returns:
- this builder
-
id
public ContainerRepository.Builder id(String id)
The OCID of the container repository.Example: ocid1.containerrepo.oc1..exampleuniqueID
- Parameters:
id- the value to set- Returns:
- this builder
-
imageCount
public ContainerRepository.Builder imageCount(Integer imageCount)
Total number of images.- Parameters:
imageCount- the value to set- Returns:
- this builder
-
isImmutable
public ContainerRepository.Builder isImmutable(Boolean isImmutable)
Whether the repository is immutable.Images cannot be overwritten in an immutable repository.
- Parameters:
isImmutable- the value to set- Returns:
- this builder
-
isPublic
public ContainerRepository.Builder isPublic(Boolean isPublic)
Whether the repository is public.A public repository allows unauthenticated access.
- Parameters:
isPublic- the value to set- Returns:
- this builder
-
layerCount
public ContainerRepository.Builder layerCount(Integer layerCount)
Total number of layers.- Parameters:
layerCount- the value to set- Returns:
- this builder
-
layersSizeInBytes
public ContainerRepository.Builder layersSizeInBytes(Long layersSizeInBytes)
Total storage in bytes consumed by layers.- Parameters:
layersSizeInBytes- the value to set- Returns:
- this builder
-
lifecycleState
public ContainerRepository.Builder lifecycleState(ContainerRepository.LifecycleState lifecycleState)
The current state of the container repository.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
readme
public ContainerRepository.Builder readme(ContainerRepositoryReadme readme)
-
timeCreated
public ContainerRepository.Builder timeCreated(Date timeCreated)
An RFC 3339 timestamp indicating when the repository was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeLastPushed
public ContainerRepository.Builder timeLastPushed(Date timeLastPushed)
An RFC 3339 timestamp indicating when an image was last pushed to the repository.- Parameters:
timeLastPushed- the value to set- Returns:
- this builder
-
billableSizeInGBs
public ContainerRepository.Builder billableSizeInGBs(Long billableSizeInGBs)
Total storage size in GBs that will be charged.- Parameters:
billableSizeInGBs- the value to set- Returns:
- this builder
-
namespace
public ContainerRepository.Builder namespace(String namespace)
The tenancy namespace used in the container repository path.- Parameters:
namespace- the value to set- Returns:
- this builder
-
freeformTags
public ContainerRepository.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"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public ContainerRepository.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"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public ContainerRepository.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”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public ContainerRepository build()
-
copy
public ContainerRepository.Builder copy(ContainerRepository model)
-
-