Class CfnRegistrationAttachmentMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.smsvoice.CfnRegistrationAttachmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegistrationAttachmentMixinProps>
- Enclosing interface:
CfnRegistrationAttachmentMixinProps
@Stability(Stable)
public static final class CfnRegistrationAttachmentMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRegistrationAttachmentMixinProps>
A builder for
CfnRegistrationAttachmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachmentBody(String attachmentBody) Sets the value ofCfnRegistrationAttachmentMixinProps.getAttachmentBody()attachmentUrl(String attachmentUrl) Sets the value ofCfnRegistrationAttachmentMixinProps.getAttachmentUrl()build()Builds the configured instance.Sets the value ofCfnRegistrationAttachmentMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attachmentBody
@Stability(Stable) public CfnRegistrationAttachmentMixinProps.Builder attachmentBody(String attachmentBody) Sets the value ofCfnRegistrationAttachmentMixinProps.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 CfnRegistrationAttachmentMixinProps.Builder attachmentUrl(String attachmentUrl) Sets the value ofCfnRegistrationAttachmentMixinProps.getAttachmentUrl()- Parameters:
attachmentUrl- A URL to the required registration file. For example, the URL to an MMS/shortcode form.- Returns:
this
-
tags
@Stability(Stable) public CfnRegistrationAttachmentMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnRegistrationAttachmentMixinProps.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<CfnRegistrationAttachmentMixinProps>- Returns:
- a new instance of
CfnRegistrationAttachmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-