Class CfnForm.FileUploaderFieldConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FileUploaderFieldConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnForm.FileUploaderFieldConfigProperty>
- Enclosing interface:
CfnForm.FileUploaderFieldConfigProperty
@Stability(Stable)
public static final class CfnForm.FileUploaderFieldConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnForm.FileUploaderFieldConfigProperty>
A builder for
CfnForm.FileUploaderFieldConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptedFileTypes(List<String> acceptedFileTypes) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getAcceptedFileTypes()accessLevel(String accessLevel) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getAccessLevel()build()Builds the configured instance.isResumable(Boolean isResumable) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getIsResumable()isResumable(IResolvable isResumable) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getIsResumable()maxFileCount(Number maxFileCount) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getMaxFileCount()Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getMaxSize()showThumbnails(Boolean showThumbnails) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getShowThumbnails()showThumbnails(IResolvable showThumbnails) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getShowThumbnails()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceptedFileTypes
@Stability(Stable) public CfnForm.FileUploaderFieldConfigProperty.Builder acceptedFileTypes(List<String> acceptedFileTypes) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getAcceptedFileTypes()- Parameters:
acceptedFileTypes- The file types that are allowed to be uploaded by the file uploader. This parameter is required. Provide this information in an array of strings specifying the valid file extensions.- Returns:
this
-
accessLevel
@Stability(Stable) public CfnForm.FileUploaderFieldConfigProperty.Builder accessLevel(String accessLevel) Sets the value ofCfnForm.FileUploaderFieldConfigProperty.getAccessLevel()- Parameters:
accessLevel- The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored. This parameter is required. 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 CfnForm.FileUploaderFieldConfigProperty.Builder isResumable(Boolean isResumable) Sets the value ofCfnForm.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 CfnForm.FileUploaderFieldConfigProperty.Builder isResumable(IResolvable isResumable) Sets the value ofCfnForm.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 CfnForm.FileUploaderFieldConfigProperty.Builder maxFileCount(Number maxFileCount) Sets the value ofCfnForm.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
Sets the value ofCfnForm.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 CfnForm.FileUploaderFieldConfigProperty.Builder showThumbnails(Boolean showThumbnails) Sets the value ofCfnForm.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 CfnForm.FileUploaderFieldConfigProperty.Builder showThumbnails(IResolvable showThumbnails) Sets the value ofCfnForm.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<CfnForm.FileUploaderFieldConfigProperty>- Returns:
- a new instance of
CfnForm.FileUploaderFieldConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-