Class CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.wisdom.CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty>
- Enclosing interface:
CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty
@Stability(Stable)
public static final class CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentId(String attachmentId) attachmentName(String attachmentName) build()Builds the configured instance.s3PresignedUrl(String s3PresignedUrl)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachmentId
@Stability(Stable) public CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty.Builder attachmentId(String attachmentId) - Parameters:
attachmentId- The identifier of the attachment file.- Returns:
this
-
attachmentName
@Stability(Stable) public CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty.Builder attachmentName(String attachmentName) Sets the value ofCfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty.getAttachmentName()- Parameters:
attachmentName- The name of the attachment file being uploaded. The name should include the file extension.- Returns:
this
-
s3PresignedUrl
@Stability(Stable) public CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty.Builder s3PresignedUrl(String s3PresignedUrl) Sets the value ofCfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty.getS3PresignedUrl()- Parameters:
s3PresignedUrl- The S3 Presigned URL for the attachment file. When generating the PreSignedUrl, please ensure that the expires-in time is set to 30 minutes. The URL can be generated through the AWS Console or through the AWS CLI. For more information, see Sharing objects with presigned URLs .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty>- Returns:
- a new instance of
CfnMessageTemplatePropsMixin.MessageTemplateAttachmentProperty - Throws:
NullPointerException- if any required attribute was not provided
-