Class CfnRegistrationAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnRegistrationAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegistrationAttachmentProps>
- Enclosing interface:
CfnRegistrationAttachmentProps
@Stability(Stable)
public static final class CfnRegistrationAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRegistrationAttachmentProps>
A builder for
CfnRegistrationAttachmentProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentBody(String attachmentBody) Sets the value ofCfnRegistrationAttachmentProps.getAttachmentBody()attachmentUrl(String attachmentUrl) Sets the value ofCfnRegistrationAttachmentProps.getAttachmentUrl()build()Builds the configured instance.Sets the value ofCfnRegistrationAttachmentProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachmentBody
@Stability(Stable) public CfnRegistrationAttachmentProps.Builder attachmentBody(String attachmentBody) Sets the value ofCfnRegistrationAttachmentProps.getAttachmentBody()- Parameters:
attachmentBody- The registration file to upload. The maximum file size is 1500KB and valid file extensions are PDF, JPEG and PNG.- Returns:
this
-
attachmentUrl
@Stability(Stable) public CfnRegistrationAttachmentProps.Builder attachmentUrl(String attachmentUrl) Sets the value ofCfnRegistrationAttachmentProps.getAttachmentUrl()- Parameters:
attachmentUrl- A URL to the required registration file. For example, the URL to an MMS/shortcode form.- Returns:
this
-
tags
Sets the value ofCfnRegistrationAttachmentProps.getTags()- Parameters:
tags- An array of tags (key and value pairs) to associate with the registration attachment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRegistrationAttachmentProps>- Returns:
- a new instance of
CfnRegistrationAttachmentProps - Throws:
NullPointerException- if any required attribute was not provided
-