Package com.oracle.bmc.artifacts.model
Class ContainerImageSignature.Builder
- java.lang.Object
-
- com.oracle.bmc.artifacts.model.ContainerImageSignature.Builder
-
- Enclosing class:
- ContainerImageSignature
public static class ContainerImageSignature.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerImageSignaturebuild()ContainerImageSignature.BuildercompartmentId(String compartmentId)The OCID of the compartment in which the container repository exists.ContainerImageSignature.Buildercopy(ContainerImageSignature model)ContainerImageSignature.BuildercreatedBy(String createdBy)The id of the user or principal that created the resource.ContainerImageSignature.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ContainerImageSignature.BuilderdisplayName(String displayName)The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId.ContainerImageSignature.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ContainerImageSignature.Builderid(String id)The OCID of the container image signature.ContainerImageSignature.BuilderimageId(String imageId)The OCID of the container image.ContainerImageSignature.BuilderkmsKeyId(String kmsKeyId)The OCID of the kmsKeyId used to sign the container image.ContainerImageSignature.BuilderkmsKeyVersionId(String kmsKeyVersionId)The OCID of the kmsKeyVersionId used to sign the container image.ContainerImageSignature.BuilderlifecycleState(ContainerImageSignature.LifecycleState lifecycleState)The current state of the container image signature.ContainerImageSignature.Buildermessage(String message)The base64 encoded signature payload that was signed.ContainerImageSignature.Buildersignature(String signature)The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.ContainerImageSignature.BuildersigningAlgorithm(ContainerImageSignature.SigningAlgorithm signingAlgorithm)The algorithm to be used for signing.ContainerImageSignature.BuildersystemTags(Map<String,Map<String,Object>> systemTags)The system tags for this resource.ContainerImageSignature.BuildertimeCreated(Date timeCreated)An RFC 3339 timestamp indicating when the image was created.
-
-
-
Method Detail
-
compartmentId
public ContainerImageSignature.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 ContainerImageSignature.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 ContainerImageSignature.Builder displayName(String displayName)
The last 10 characters of the kmsKeyId, the last 10 characters of the kmsKeyVersionId, the signingAlgorithm, and the last 10 characters of the signatureId.Example: wrmz22sixa::qdwyc2ptun::SHA_256_RSA_PKCS_PSS::2vwmobasva
- Parameters:
displayName- the value to set- Returns:
- this builder
-
id
public ContainerImageSignature.Builder id(String id)
The OCID of the container image signature.Example: ocid1.containerimagesignature.oc1..exampleuniqueID
- Parameters:
id- the value to set- Returns:
- this builder
-
imageId
public ContainerImageSignature.Builder imageId(String imageId)
The OCID of the container image.Example: ocid1.containerimage.oc1..exampleuniqueID
- Parameters:
imageId- the value to set- Returns:
- this builder
-
kmsKeyId
public ContainerImageSignature.Builder kmsKeyId(String kmsKeyId)
The OCID of the kmsKeyId used to sign the container image.Example: ocid1.key.oc1..exampleuniqueID
- Parameters:
kmsKeyId- the value to set- Returns:
- this builder
-
kmsKeyVersionId
public ContainerImageSignature.Builder kmsKeyVersionId(String kmsKeyVersionId)
The OCID of the kmsKeyVersionId used to sign the container image.Example: ocid1.keyversion.oc1..exampleuniqueID
- Parameters:
kmsKeyVersionId- the value to set- Returns:
- this builder
-
message
public ContainerImageSignature.Builder message(String message)
The base64 encoded signature payload that was signed.- Parameters:
message- the value to set- Returns:
- this builder
-
signature
public ContainerImageSignature.Builder signature(String signature)
The signature of the message field using the kmsKeyId, the kmsKeyVersionId, and the signingAlgorithm.- Parameters:
signature- the value to set- Returns:
- this builder
-
signingAlgorithm
public ContainerImageSignature.Builder signingAlgorithm(ContainerImageSignature.SigningAlgorithm signingAlgorithm)
The algorithm to be used for signing.These are the only supported signing algorithms for container images.
- Parameters:
signingAlgorithm- the value to set- Returns:
- this builder
-
timeCreated
public ContainerImageSignature.Builder timeCreated(Date timeCreated)
An RFC 3339 timestamp indicating when the image was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
lifecycleState
public ContainerImageSignature.Builder lifecycleState(ContainerImageSignature.LifecycleState lifecycleState)
The current state of the container image signature.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
freeformTags
public ContainerImageSignature.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 ContainerImageSignature.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 ContainerImageSignature.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 ContainerImageSignature build()
-
copy
public ContainerImageSignature.Builder copy(ContainerImageSignature model)
-
-