@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FileUploaderFieldConfig extends Object implements Serializable, Cloneable, StructuredPojo
Describes the configuration for the file uploader field.
Constructor and Description |
---|
FileUploaderFieldConfig() |
Modifier and Type | Method and Description |
---|---|
FileUploaderFieldConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAcceptedFileTypes()
The file types that are allowed to be uploaded by the file uploader.
|
String |
getAccessLevel()
The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored.
|
Boolean |
getIsResumable()
Allows the file upload operation to be paused and resumed.
|
Integer |
getMaxFileCount()
Specifies the maximum number of files that can be selected to upload.
|
Integer |
getMaxSize()
The maximum file size in bytes that the file uploader will accept.
|
Boolean |
getShowThumbnails()
Specifies whether to display or hide the image preview after selecting a file for upload.
|
int |
hashCode() |
Boolean |
isResumable()
Allows the file upload operation to be paused and resumed.
|
Boolean |
isShowThumbnails()
Specifies whether to display or hide the image preview after selecting a file for upload.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAcceptedFileTypes(Collection<String> acceptedFileTypes)
The file types that are allowed to be uploaded by the file uploader.
|
void |
setAccessLevel(String accessLevel)
The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored.
|
void |
setIsResumable(Boolean isResumable)
Allows the file upload operation to be paused and resumed.
|
void |
setMaxFileCount(Integer maxFileCount)
Specifies the maximum number of files that can be selected to upload.
|
void |
setMaxSize(Integer maxSize)
The maximum file size in bytes that the file uploader will accept.
|
void |
setShowThumbnails(Boolean showThumbnails)
Specifies whether to display or hide the image preview after selecting a file for upload.
|
String |
toString()
Returns a string representation of this object.
|
FileUploaderFieldConfig |
withAcceptedFileTypes(Collection<String> acceptedFileTypes)
The file types that are allowed to be uploaded by the file uploader.
|
FileUploaderFieldConfig |
withAcceptedFileTypes(String... acceptedFileTypes)
The file types that are allowed to be uploaded by the file uploader.
|
FileUploaderFieldConfig |
withAccessLevel(StorageAccessLevel accessLevel)
The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored.
|
FileUploaderFieldConfig |
withAccessLevel(String accessLevel)
The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored.
|
FileUploaderFieldConfig |
withIsResumable(Boolean isResumable)
Allows the file upload operation to be paused and resumed.
|
FileUploaderFieldConfig |
withMaxFileCount(Integer maxFileCount)
Specifies the maximum number of files that can be selected to upload.
|
FileUploaderFieldConfig |
withMaxSize(Integer maxSize)
The maximum file size in bytes that the file uploader will accept.
|
FileUploaderFieldConfig |
withShowThumbnails(Boolean showThumbnails)
Specifies whether to display or hide the image preview after selecting a file for upload.
|
public void setAccessLevel(String 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 are private
, protected
, or public
. For detailed
information about the permissions associated with each access level, see File access levels in the
Amplify documentation.
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 are private
, protected
, or public
. For
detailed information about the permissions associated with each access level, see File access levels in the
Amplify documentation.StorageAccessLevel
public String getAccessLevel()
The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored. The valid values
for this property are private
, protected
, or public
. For detailed
information about the permissions associated with each access level, see File access levels in the
Amplify documentation.
private
, protected
, or public
. For
detailed information about the permissions associated with each access level, see File access levels in the
Amplify documentation.StorageAccessLevel
public FileUploaderFieldConfig withAccessLevel(String 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 are private
, protected
, or public
. For detailed
information about the permissions associated with each access level, see File access levels in the
Amplify documentation.
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 are private
, protected
, or public
. For
detailed information about the permissions associated with each access level, see File access levels in the
Amplify documentation.StorageAccessLevel
public FileUploaderFieldConfig withAccessLevel(StorageAccessLevel 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 are private
, protected
, or public
. For detailed
information about the permissions associated with each access level, see File access levels in the
Amplify documentation.
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 are private
, protected
, or public
. For
detailed information about the permissions associated with each access level, see File access levels in the
Amplify documentation.StorageAccessLevel
public List<String> getAcceptedFileTypes()
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.
public void setAcceptedFileTypes(Collection<String> 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.
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.public FileUploaderFieldConfig withAcceptedFileTypes(String... 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.
NOTE: This method appends the values to the existing list (if any). Use
setAcceptedFileTypes(java.util.Collection)
or withAcceptedFileTypes(java.util.Collection)
if
you want to override the existing values.
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.public FileUploaderFieldConfig withAcceptedFileTypes(Collection<String> 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.
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.public void setShowThumbnails(Boolean showThumbnails)
Specifies whether to display or hide the image preview after selecting a file for upload. The default value is
true
to display the image preview.
showThumbnails
- Specifies whether to display or hide the image preview after selecting a file for upload. The default
value is true
to display the image preview.public Boolean getShowThumbnails()
Specifies whether to display or hide the image preview after selecting a file for upload. The default value is
true
to display the image preview.
true
to display the image preview.public FileUploaderFieldConfig withShowThumbnails(Boolean showThumbnails)
Specifies whether to display or hide the image preview after selecting a file for upload. The default value is
true
to display the image preview.
showThumbnails
- Specifies whether to display or hide the image preview after selecting a file for upload. The default
value is true
to display the image preview.public Boolean isShowThumbnails()
Specifies whether to display or hide the image preview after selecting a file for upload. The default value is
true
to display the image preview.
true
to display the image preview.public void setIsResumable(Boolean isResumable)
Allows the file upload operation to be paused and resumed. The default value is false
.
When isResumable
is set to true
, 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.
isResumable
- Allows the file upload operation to be paused and resumed. The default value is false
.
When isResumable
is set to true
, 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.
public Boolean getIsResumable()
Allows the file upload operation to be paused and resumed. The default value is false
.
When isResumable
is set to true
, 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.
false
.
When isResumable
is set to true
, 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.
public FileUploaderFieldConfig withIsResumable(Boolean isResumable)
Allows the file upload operation to be paused and resumed. The default value is false
.
When isResumable
is set to true
, 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.
isResumable
- Allows the file upload operation to be paused and resumed. The default value is false
.
When isResumable
is set to true
, 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.
public Boolean isResumable()
Allows the file upload operation to be paused and resumed. The default value is false
.
When isResumable
is set to true
, 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.
false
.
When isResumable
is set to true
, 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.
public void setMaxFileCount(Integer maxFileCount)
Specifies the maximum number of files that can be selected to upload. The default value is an unlimited number of files.
maxFileCount
- Specifies the maximum number of files that can be selected to upload. The default value is an unlimited
number of files.public Integer getMaxFileCount()
Specifies the maximum number of files that can be selected to upload. The default value is an unlimited number of files.
public FileUploaderFieldConfig withMaxFileCount(Integer maxFileCount)
Specifies the maximum number of files that can be selected to upload. The default value is an unlimited number of files.
maxFileCount
- Specifies the maximum number of files that can be selected to upload. The default value is an unlimited
number of files.public void setMaxSize(Integer maxSize)
The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file size.
maxSize
- The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file
size.public Integer getMaxSize()
The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file size.
public FileUploaderFieldConfig withMaxSize(Integer maxSize)
The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file size.
maxSize
- The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file
size.public String toString()
toString
in class Object
Object.toString()
public FileUploaderFieldConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.