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