Class CreateSecretVersionLocksBulkOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2.model.CreateSecretVersionLocksBulkOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateSecretVersionLocksBulkOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe createSecretVersionLocksBulk options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateSecretVersionLocksBulkOptions.BuilderBuilder.static interfaceCreateSecretVersionLocksBulkOptions.ModeAn optional lock mode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringid()Gets the id.List<SecretLockPrototype>locks()Gets the locks.Stringmode()Gets the mode.CreateSecretVersionLocksBulkOptions.BuildernewBuilder()New builder.StringsecretId()Gets the secretId.
-
-
-
Method Detail
-
newBuilder
public CreateSecretVersionLocksBulkOptions.Builder newBuilder()
New builder.- Returns:
- a CreateSecretVersionLocksBulkOptions builder
-
secretId
public String secretId()
Gets the secretId. The UUID that uniquely identifies your secret.- Returns:
- the secretId
-
id
public String id()
Gets the id. The UUID that uniquely identifies your secret version. You can use the `current` or `previous` aliases to refer to the current or previous secret version.- Returns:
- the id
-
locks
public List<SecretLockPrototype> locks()
Gets the locks. The locks data to be attached to a secret version.- Returns:
- the locks
-
mode
public String mode()
Gets the mode. An optional lock mode. When you create a lock, you can set one of the following modes to clear any matching locks on a secret version. - `remove_previous`: Removes any other locks with matching names if they are found in the previous version of the secret. - `remove_previous_and_delete`: Completes the same action as `remove_previous`, but also permanently deletes the data of the previous secret version if it doesn't have any locks. Not supported for custom credentials secret type.- Returns:
- the mode
-
-