Class SecretVersionInfo.Builder
java.lang.Object
software.amazon.awscdk.services.batch.SecretVersionInfo.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretVersionInfo>
- Enclosing interface:
SecretVersionInfo
@Stability(Stable)
public static final class SecretVersionInfo.Builder
extends Object
implements software.amazon.jsii.Builder<SecretVersionInfo>
A builder for
SecretVersionInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSecretVersionInfo.getVersionId()
versionStage
(String versionStage) Sets the value ofSecretVersionInfo.getVersionStage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
versionId
Sets the value ofSecretVersionInfo.getVersionId()
- Parameters:
versionId
- version id of the secret.- Returns:
this
-
versionStage
Sets the value ofSecretVersionInfo.getVersionStage()
- Parameters:
versionStage
- version stage of the secret.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SecretVersionInfo>
- Returns:
- a new instance of
SecretVersionInfo
- Throws:
NullPointerException
- if any required attribute was not provided
-