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