Class CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.amplifyuibuilder.mixins.CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFormPropsMixin.FileUploaderFieldConfigProperty>
- Enclosing interface:
CfnFormPropsMixin.FileUploaderFieldConfigProperty
@Stability(Stable)
public static final class CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFormPropsMixin.FileUploaderFieldConfigProperty>
A builder for
CfnFormPropsMixin.FileUploaderFieldConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptedFileTypes(List<String> acceptedFileTypes) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getAcceptedFileTypes()accessLevel(String accessLevel) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getAccessLevel()build()Builds the configured instance.isResumable(Boolean isResumable) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getIsResumable()isResumable(IResolvable isResumable) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getIsResumable()maxFileCount(Number maxFileCount) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getMaxFileCount()Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getMaxSize()showThumbnails(Boolean showThumbnails) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getShowThumbnails()showThumbnails(IResolvable showThumbnails) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getShowThumbnails()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceptedFileTypes
@Stability(Stable) public CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder acceptedFileTypes(List<String> acceptedFileTypes) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getAcceptedFileTypes()- Parameters:
acceptedFileTypes- The file types that are allowed to be uploaded by the file uploader. Provide this information in an array of strings specifying the valid file extensions.- Returns:
this
-
accessLevel
@Stability(Stable) public CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder accessLevel(String accessLevel) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getAccessLevel()- Parameters:
accessLevel- The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored. The valid values for this property areprivate,protected, orpublic. For detailed information about the permissions associated with each access level, see File access levels in the Amplify documentation .- Returns:
this
-
isResumable
@Stability(Stable) public CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder isResumable(Boolean isResumable) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getIsResumable()- Parameters:
isResumable- Allows the file upload operation to be paused and resumed. The default value isfalse. WhenisResumableis set totrue, the file uploader uses a multipart upload to break the files into chunks before upload. The progress of the upload isn't continuous, because the file uploader uploads a chunk at a time.- Returns:
this
-
isResumable
@Stability(Stable) public CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder isResumable(IResolvable isResumable) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getIsResumable()- Parameters:
isResumable- Allows the file upload operation to be paused and resumed. The default value isfalse. WhenisResumableis set totrue, the file uploader uses a multipart upload to break the files into chunks before upload. The progress of the upload isn't continuous, because the file uploader uploads a chunk at a time.- Returns:
this
-
maxFileCount
@Stability(Stable) public CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder maxFileCount(Number maxFileCount) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getMaxFileCount()- Parameters:
maxFileCount- Specifies the maximum number of files that can be selected to upload. The default value is an unlimited number of files.- Returns:
this
-
maxSize
@Stability(Stable) public CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder maxSize(Number maxSize) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getMaxSize()- Parameters:
maxSize- The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file size.- Returns:
this
-
showThumbnails
@Stability(Stable) public CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder showThumbnails(Boolean showThumbnails) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getShowThumbnails()- Parameters:
showThumbnails- Specifies whether to display or hide the image preview after selecting a file for upload. The default value istrueto display the image preview.- Returns:
this
-
showThumbnails
@Stability(Stable) public CfnFormPropsMixin.FileUploaderFieldConfigProperty.Builder showThumbnails(IResolvable showThumbnails) Sets the value ofCfnFormPropsMixin.FileUploaderFieldConfigProperty.getShowThumbnails()- Parameters:
showThumbnails- Specifies whether to display or hide the image preview after selecting a file for upload. The default value istrueto display the image preview.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFormPropsMixin.FileUploaderFieldConfigProperty>- Returns:
- a new instance of
CfnFormPropsMixin.FileUploaderFieldConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-