Class SecretAttachmentTargetProps.Builder
java.lang.Object
software.amazon.awscdk.services.secretsmanager.SecretAttachmentTargetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecretAttachmentTargetProps>
- Enclosing interface:
SecretAttachmentTargetProps
@Stability(Stable)
public static final class SecretAttachmentTargetProps.Builder
extends Object
implements software.amazon.jsii.Builder<SecretAttachmentTargetProps>
A builder for
SecretAttachmentTargetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSecretAttachmentTargetProps.getTargetId()targetType(AttachmentTargetType targetType) Sets the value ofSecretAttachmentTargetProps.getTargetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetId
Sets the value ofSecretAttachmentTargetProps.getTargetId()- Parameters:
targetId- The id of the target to attach the secret to. This parameter is required.- Returns:
this
-
targetType
@Stability(Stable) public SecretAttachmentTargetProps.Builder targetType(AttachmentTargetType targetType) Sets the value ofSecretAttachmentTargetProps.getTargetType()- Parameters:
targetType- The type of the target to attach the secret to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecretAttachmentTargetProps>- Returns:
- a new instance of
SecretAttachmentTargetProps - Throws:
NullPointerException- if any required attribute was not provided
-