AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FileUploaderFieldConfig.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/StorageAccessLevel.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AmplifyUIBuilder
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_AMPLIFYUIBUILDER_API FileUploaderFieldConfig();
38 AWS_AMPLIFYUIBUILDER_API FileUploaderFieldConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API FileUploaderFieldConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
53 inline const StorageAccessLevel& GetAccessLevel() const{ return m_accessLevel; }
54 inline bool AccessLevelHasBeenSet() const { return m_accessLevelHasBeenSet; }
55 inline void SetAccessLevel(const StorageAccessLevel& value) { m_accessLevelHasBeenSet = true; m_accessLevel = value; }
56 inline void SetAccessLevel(StorageAccessLevel&& value) { m_accessLevelHasBeenSet = true; m_accessLevel = std::move(value); }
57 inline FileUploaderFieldConfig& WithAccessLevel(const StorageAccessLevel& value) { SetAccessLevel(value); return *this;}
58 inline FileUploaderFieldConfig& WithAccessLevel(StorageAccessLevel&& value) { SetAccessLevel(std::move(value)); return *this;}
60
62
67 inline const Aws::Vector<Aws::String>& GetAcceptedFileTypes() const{ return m_acceptedFileTypes; }
68 inline bool AcceptedFileTypesHasBeenSet() const { return m_acceptedFileTypesHasBeenSet; }
69 inline void SetAcceptedFileTypes(const Aws::Vector<Aws::String>& value) { m_acceptedFileTypesHasBeenSet = true; m_acceptedFileTypes = value; }
70 inline void SetAcceptedFileTypes(Aws::Vector<Aws::String>&& value) { m_acceptedFileTypesHasBeenSet = true; m_acceptedFileTypes = std::move(value); }
73 inline FileUploaderFieldConfig& AddAcceptedFileTypes(const Aws::String& value) { m_acceptedFileTypesHasBeenSet = true; m_acceptedFileTypes.push_back(value); return *this; }
74 inline FileUploaderFieldConfig& AddAcceptedFileTypes(Aws::String&& value) { m_acceptedFileTypesHasBeenSet = true; m_acceptedFileTypes.push_back(std::move(value)); return *this; }
75 inline FileUploaderFieldConfig& AddAcceptedFileTypes(const char* value) { m_acceptedFileTypesHasBeenSet = true; m_acceptedFileTypes.push_back(value); return *this; }
77
79
84 inline bool GetShowThumbnails() const{ return m_showThumbnails; }
85 inline bool ShowThumbnailsHasBeenSet() const { return m_showThumbnailsHasBeenSet; }
86 inline void SetShowThumbnails(bool value) { m_showThumbnailsHasBeenSet = true; m_showThumbnails = value; }
87 inline FileUploaderFieldConfig& WithShowThumbnails(bool value) { SetShowThumbnails(value); return *this;}
89
91
98 inline bool GetIsResumable() const{ return m_isResumable; }
99 inline bool IsResumableHasBeenSet() const { return m_isResumableHasBeenSet; }
100 inline void SetIsResumable(bool value) { m_isResumableHasBeenSet = true; m_isResumable = value; }
101 inline FileUploaderFieldConfig& WithIsResumable(bool value) { SetIsResumable(value); return *this;}
103
105
109 inline int GetMaxFileCount() const{ return m_maxFileCount; }
110 inline bool MaxFileCountHasBeenSet() const { return m_maxFileCountHasBeenSet; }
111 inline void SetMaxFileCount(int value) { m_maxFileCountHasBeenSet = true; m_maxFileCount = value; }
112 inline FileUploaderFieldConfig& WithMaxFileCount(int value) { SetMaxFileCount(value); return *this;}
114
116
120 inline int GetMaxSize() const{ return m_maxSize; }
121 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
122 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
123 inline FileUploaderFieldConfig& WithMaxSize(int value) { SetMaxSize(value); return *this;}
125 private:
126
127 StorageAccessLevel m_accessLevel;
128 bool m_accessLevelHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_acceptedFileTypes;
131 bool m_acceptedFileTypesHasBeenSet = false;
132
133 bool m_showThumbnails;
134 bool m_showThumbnailsHasBeenSet = false;
135
136 bool m_isResumable;
137 bool m_isResumableHasBeenSet = false;
138
139 int m_maxFileCount;
140 bool m_maxFileCountHasBeenSet = false;
141
142 int m_maxSize;
143 bool m_maxSizeHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace AmplifyUIBuilder
148} // namespace Aws
void SetAcceptedFileTypes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAcceptedFileTypes() const
FileUploaderFieldConfig & AddAcceptedFileTypes(const Aws::String &value)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API FileUploaderFieldConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
FileUploaderFieldConfig & WithAcceptedFileTypes(Aws::Vector< Aws::String > &&value)
FileUploaderFieldConfig & AddAcceptedFileTypes(Aws::String &&value)
FileUploaderFieldConfig & WithAccessLevel(const StorageAccessLevel &value)
FileUploaderFieldConfig & AddAcceptedFileTypes(const char *value)
FileUploaderFieldConfig & WithAcceptedFileTypes(const Aws::Vector< Aws::String > &value)
void SetAcceptedFileTypes(const Aws::Vector< Aws::String > &value)
FileUploaderFieldConfig & WithAccessLevel(StorageAccessLevel &&value)
AWS_AMPLIFYUIBUILDER_API FileUploaderFieldConfig(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue