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