Class CfnMessageTemplate.MessageTemplateAttachmentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnMessageTemplate.MessageTemplateAttachmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMessageTemplate.MessageTemplateAttachmentProperty>
- Enclosing interface:
CfnMessageTemplate.MessageTemplateAttachmentProperty
@Stability(Stable)
public static final class CfnMessageTemplate.MessageTemplateAttachmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMessageTemplate.MessageTemplateAttachmentProperty>
A builder for
CfnMessageTemplate.MessageTemplateAttachmentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentId(String attachmentId) Sets the value ofCfnMessageTemplate.MessageTemplateAttachmentProperty.getAttachmentId()attachmentName(String attachmentName) Sets the value ofCfnMessageTemplate.MessageTemplateAttachmentProperty.getAttachmentName()build()Builds the configured instance.s3PresignedUrl(String s3PresignedUrl) Sets the value ofCfnMessageTemplate.MessageTemplateAttachmentProperty.getS3PresignedUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachmentName
@Stability(Stable) public CfnMessageTemplate.MessageTemplateAttachmentProperty.Builder attachmentName(String attachmentName) Sets the value ofCfnMessageTemplate.MessageTemplateAttachmentProperty.getAttachmentName()- Parameters:
attachmentName- The name of the attachment file being uploaded. This parameter is required. The name should include the file extension.- Returns:
this
-
s3PresignedUrl
@Stability(Stable) public CfnMessageTemplate.MessageTemplateAttachmentProperty.Builder s3PresignedUrl(String s3PresignedUrl) Sets the value ofCfnMessageTemplate.MessageTemplateAttachmentProperty.getS3PresignedUrl()- Parameters:
s3PresignedUrl- The S3 Presigned URL for the attachment file. This parameter is required. 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
-
attachmentId
@Stability(Stable) public CfnMessageTemplate.MessageTemplateAttachmentProperty.Builder attachmentId(String attachmentId) Sets the value ofCfnMessageTemplate.MessageTemplateAttachmentProperty.getAttachmentId()- Parameters:
attachmentId- The identifier of the attachment file.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMessageTemplate.MessageTemplateAttachmentProperty>- Returns:
- a new instance of
CfnMessageTemplate.MessageTemplateAttachmentProperty - Throws:
NullPointerException- if any required attribute was not provided
-