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