Class UsernamePasswordSecretMetadataPatch.Builder
- java.lang.Object
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.UsernamePasswordSecretMetadataPatch.Builder
-
- Enclosing class:
- UsernamePasswordSecretMetadataPatch
public static class UsernamePasswordSecretMetadataPatch.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(SecretMetadataPatch usernamePasswordSecretMetadataPatch)Instantiates a new Builder from an existing UsernamePasswordSecretMetadataPatch instance.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(SecretMetadataPatch usernamePasswordSecretMetadataPatch)
Instantiates a new Builder from an existing UsernamePasswordSecretMetadataPatch instance.- Parameters:
usernamePasswordSecretMetadataPatch- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
-
Method Detail
-
build
public UsernamePasswordSecretMetadataPatch build()
Builds a UsernamePasswordSecretMetadataPatch.- Returns:
- the new UsernamePasswordSecretMetadataPatch instance
-
addLabels
public UsernamePasswordSecretMetadataPatch.Builder addLabels(String labels)
Adds a new element to labels.- Parameters:
labels- the new element to be added- Returns:
- the UsernamePasswordSecretMetadataPatch builder
-
name
public UsernamePasswordSecretMetadataPatch.Builder name(String name)
Set the name.- Parameters:
name- the name- Returns:
- the UsernamePasswordSecretMetadataPatch builder
-
description
public UsernamePasswordSecretMetadataPatch.Builder description(String description)
Set the description.- Parameters:
description- the description- Returns:
- the UsernamePasswordSecretMetadataPatch builder
-
labels
public UsernamePasswordSecretMetadataPatch.Builder labels(List<String> labels)
Set the labels. Existing labels will be replaced.- Parameters:
labels- the labels- Returns:
- the UsernamePasswordSecretMetadataPatch builder
-
customMetadata
public UsernamePasswordSecretMetadataPatch.Builder customMetadata(Map<String,Object> customMetadata)
Set the customMetadata.- Parameters:
customMetadata- the customMetadata- Returns:
- the UsernamePasswordSecretMetadataPatch builder
-
rotation
public UsernamePasswordSecretMetadataPatch.Builder rotation(RotationPolicy rotation)
Set the rotation.- Parameters:
rotation- the rotation- Returns:
- the UsernamePasswordSecretMetadataPatch builder
-
expirationDate
public UsernamePasswordSecretMetadataPatch.Builder expirationDate(Date expirationDate)
Set the expirationDate.- Parameters:
expirationDate- the expirationDate- Returns:
- the UsernamePasswordSecretMetadataPatch builder
-
passwordGenerationPolicy
public UsernamePasswordSecretMetadataPatch.Builder passwordGenerationPolicy(PasswordGenerationPolicyPatch passwordGenerationPolicy)
Set the passwordGenerationPolicy.- Parameters:
passwordGenerationPolicy- the passwordGenerationPolicy- Returns:
- the UsernamePasswordSecretMetadataPatch builder
-
-