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