Class CreateSecretVersionLocksBulkOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CreateSecretVersionLocksBulkOptions.Builder
-
- Enclosing class:
- CreateSecretVersionLocksBulkOptions
public static class CreateSecretVersionLocksBulkOptions.Builder extends Object
Builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSecretVersionLocksBulkOptions.BuilderaddLocks(SecretLockPrototype locks)Adds a new element to locks.CreateSecretVersionLocksBulkOptionsbuild()Builds a CreateSecretVersionLocksBulkOptions.CreateSecretVersionLocksBulkOptions.Builderid(String id)Set the id.CreateSecretVersionLocksBulkOptions.Builderlocks(List<SecretLockPrototype> locks)Set the locks.CreateSecretVersionLocksBulkOptions.Buildermode(String mode)Set the mode.CreateSecretVersionLocksBulkOptions.BuildersecretId(String secretId)Set the secretId.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String secretId, String id, List<SecretLockPrototype> locks)
Instantiates a new builder with required properties.- Parameters:
secretId- the secretIdid- the idlocks- the locks
-
-
Method Detail
-
build
public CreateSecretVersionLocksBulkOptions build()
Builds a CreateSecretVersionLocksBulkOptions.- Returns:
- the new CreateSecretVersionLocksBulkOptions instance
-
addLocks
public CreateSecretVersionLocksBulkOptions.Builder addLocks(SecretLockPrototype locks)
Adds a new element to locks.- Parameters:
locks- the new element to be added- Returns:
- the CreateSecretVersionLocksBulkOptions builder
-
secretId
public CreateSecretVersionLocksBulkOptions.Builder secretId(String secretId)
Set the secretId.- Parameters:
secretId- the secretId- Returns:
- the CreateSecretVersionLocksBulkOptions builder
-
id
public CreateSecretVersionLocksBulkOptions.Builder id(String id)
Set the id.- Parameters:
id- the id- Returns:
- the CreateSecretVersionLocksBulkOptions builder
-
locks
public CreateSecretVersionLocksBulkOptions.Builder locks(List<SecretLockPrototype> locks)
Set the locks. Existing locks will be replaced.- Parameters:
locks- the locks- Returns:
- the CreateSecretVersionLocksBulkOptions builder
-
mode
public CreateSecretVersionLocksBulkOptions.Builder mode(String mode)
Set the mode.- Parameters:
mode- the mode- Returns:
- the CreateSecretVersionLocksBulkOptions builder
-
-