Package com.oracle.bmc.datascience.model
Class ModelArtifactSignature.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.ModelArtifactSignature.Builder
-
- Enclosing class:
- ModelArtifactSignature
public static class ModelArtifactSignature.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelArtifactSignaturebuild()ModelArtifactSignature.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the resource.ModelArtifactSignature.Buildercopy(ModelArtifactSignature model)ModelArtifactSignature.BuildercreatedBy(String createdBy)The OCID of the user who created the model.ModelArtifactSignature.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ModelArtifactSignature.Builderdigest(String digest)Base64 encoded string representing the model artifact digest.ModelArtifactSignature.BuilderdisplayName(String displayName)A user-friendly display name for the resource.ModelArtifactSignature.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ModelArtifactSignature.Builderid(String id)The OCID of the artifact signature.ModelArtifactSignature.BuilderkmsKeyId(String kmsKeyId)The OCID of the key from OCI KMS.ModelArtifactSignature.BuilderkmsKeyVersionId(String kmsKeyVersionId)The OCID of the key version from OCI KMS.ModelArtifactSignature.BuilderlifecycleState(ArtifactSignatureLifecycleState lifecycleState)The lifecycle state of the model artifact signatureModelArtifactSignature.BuildermodelId(String modelId)The OCID of the model whose artifact has to be signed.ModelArtifactSignature.Buildersignature(String signature)The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.ModelArtifactSignature.BuildersigningAlgorithm(ArtifactSigningAlgorithm signingAlgorithm)The algorithm used for signing.ModelArtifactSignature.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.ModelArtifactSignature.BuildertimeCreated(Date timeCreated)The date and time the resource was created in the timestamp format defined by RFC3339.ModelArtifactSignature.BuildertimeUpdated(Date timeUpdated)The date and time the resource was updated in the timestamp format defined by RFC3339.
-
-
-
Method Detail
-
id
public ModelArtifactSignature.Builder id(String id)
The OCID of the artifact signature.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public ModelArtifactSignature.Builder displayName(String displayName)
A user-friendly display name for the resource.- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public ModelArtifactSignature.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the resource.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
kmsKeyId
public ModelArtifactSignature.Builder kmsKeyId(String kmsKeyId)
The OCID of the key from OCI KMS.- Parameters:
kmsKeyId- the value to set- Returns:
- this builder
-
kmsKeyVersionId
public ModelArtifactSignature.Builder kmsKeyVersionId(String kmsKeyVersionId)
The OCID of the key version from OCI KMS.- Parameters:
kmsKeyVersionId- the value to set- Returns:
- this builder
-
modelId
public ModelArtifactSignature.Builder modelId(String modelId)
The OCID of the model whose artifact has to be signed.- Parameters:
modelId- the value to set- Returns:
- this builder
-
lifecycleState
public ModelArtifactSignature.Builder lifecycleState(ArtifactSignatureLifecycleState lifecycleState)
The lifecycle state of the model artifact signature- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
digest
public ModelArtifactSignature.Builder digest(String digest)
Base64 encoded string representing the model artifact digest.- Parameters:
digest- the value to set- Returns:
- this builder
-
signature
public ModelArtifactSignature.Builder signature(String signature)
The signature of the digest generated using kmsKeyId, kmsKeyVersion Id and signingAlgorithm.- Parameters:
signature- the value to set- Returns:
- this builder
-
signingAlgorithm
public ModelArtifactSignature.Builder signingAlgorithm(ArtifactSigningAlgorithm signingAlgorithm)
The algorithm used for signing.- Parameters:
signingAlgorithm- the value to set- Returns:
- this builder
-
timeCreated
public ModelArtifactSignature.Builder timeCreated(Date timeCreated)
The date and time the resource was created in the timestamp format defined by RFC3339.Example: 2019-08-25T21:10:29.41Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public ModelArtifactSignature.Builder timeUpdated(Date timeUpdated)
The date and time the resource was updated in the timestamp format defined by RFC3339.Example: 2019-08-25T21:10:29.41Z
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
createdBy
public ModelArtifactSignature.Builder createdBy(String createdBy)
The OCID of the user who created the model.- Parameters:
createdBy- the value to set- Returns:
- this builder
-
freeformTags
public ModelArtifactSignature.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. See Resource Tags. Example: {“Department”: “Finance”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public ModelArtifactSignature.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public ModelArtifactSignature.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”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public ModelArtifactSignature build()
-
copy
public ModelArtifactSignature.Builder copy(ModelArtifactSignature model)
-
-