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