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