Class KVSecretMetadataPatch.Builder
- java.lang.Object
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.KVSecretMetadataPatch.Builder
-
- Enclosing class:
- KVSecretMetadataPatch
public static class KVSecretMetadataPatch.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(SecretMetadataPatch kvSecretMetadataPatch)Instantiates a new Builder from an existing KVSecretMetadataPatch instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KVSecretMetadataPatch.BuilderaddLabels(String labels)Adds a new element to labels.KVSecretMetadataPatchbuild()Builds a KVSecretMetadataPatch.KVSecretMetadataPatch.BuildercustomMetadata(Map<String,Object> customMetadata)Set the customMetadata.KVSecretMetadataPatch.Builderdescription(String description)Set the description.KVSecretMetadataPatch.Builderlabels(List<String> labels)Set the labels.KVSecretMetadataPatch.Buildername(String name)Set the name.
-
-
-
Constructor Detail
-
Builder
public Builder(SecretMetadataPatch kvSecretMetadataPatch)
Instantiates a new Builder from an existing KVSecretMetadataPatch instance.- Parameters:
kvSecretMetadataPatch- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
-
Method Detail
-
build
public KVSecretMetadataPatch build()
Builds a KVSecretMetadataPatch.- Returns:
- the new KVSecretMetadataPatch instance
-
addLabels
public KVSecretMetadataPatch.Builder addLabels(String labels)
Adds a new element to labels.- Parameters:
labels- the new element to be added- Returns:
- the KVSecretMetadataPatch builder
-
name
public KVSecretMetadataPatch.Builder name(String name)
Set the name.- Parameters:
name- the name- Returns:
- the KVSecretMetadataPatch builder
-
description
public KVSecretMetadataPatch.Builder description(String description)
Set the description.- Parameters:
description- the description- Returns:
- the KVSecretMetadataPatch builder
-
labels
public KVSecretMetadataPatch.Builder labels(List<String> labels)
Set the labels. Existing labels will be replaced.- Parameters:
labels- the labels- Returns:
- the KVSecretMetadataPatch builder
-
customMetadata
public KVSecretMetadataPatch.Builder customMetadata(Map<String,Object> customMetadata)
Set the customMetadata.- Parameters:
customMetadata- the customMetadata- Returns:
- the KVSecretMetadataPatch builder
-
-