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