AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
FormSummary.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/model/FormActionType.h>
9#include <aws/amplifyuibuilder/model/FormDataTypeConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyUIBuilder {
22namespace Model {
23
30 public:
31 AWS_AMPLIFYUIBUILDER_API FormSummary() = default;
32 AWS_AMPLIFYUIBUILDER_API FormSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYUIBUILDER_API FormSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAppId() const { return m_appId; }
41 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
42 template <typename AppIdT = Aws::String>
43 void SetAppId(AppIdT&& value) {
44 m_appIdHasBeenSet = true;
45 m_appId = std::forward<AppIdT>(value);
46 }
47 template <typename AppIdT = Aws::String>
48 FormSummary& WithAppId(AppIdT&& value) {
49 SetAppId(std::forward<AppIdT>(value));
50 return *this;
51 }
53
55
58 inline const FormDataTypeConfig& GetDataType() const { return m_dataType; }
59 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
60 template <typename DataTypeT = FormDataTypeConfig>
61 void SetDataType(DataTypeT&& value) {
62 m_dataTypeHasBeenSet = true;
63 m_dataType = std::forward<DataTypeT>(value);
64 }
65 template <typename DataTypeT = FormDataTypeConfig>
66 FormSummary& WithDataType(DataTypeT&& value) {
67 SetDataType(std::forward<DataTypeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
77 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
78 template <typename EnvironmentNameT = Aws::String>
79 void SetEnvironmentName(EnvironmentNameT&& value) {
80 m_environmentNameHasBeenSet = true;
81 m_environmentName = std::forward<EnvironmentNameT>(value);
82 }
83 template <typename EnvironmentNameT = Aws::String>
84 FormSummary& WithEnvironmentName(EnvironmentNameT&& value) {
85 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
86 return *this;
87 }
89
91
94 inline FormActionType GetFormActionType() const { return m_formActionType; }
95 inline bool FormActionTypeHasBeenSet() const { return m_formActionTypeHasBeenSet; }
96 inline void SetFormActionType(FormActionType value) {
97 m_formActionTypeHasBeenSet = true;
98 m_formActionType = value;
99 }
101 SetFormActionType(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetId() const { return m_id; }
111 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
112 template <typename IdT = Aws::String>
113 void SetId(IdT&& value) {
114 m_idHasBeenSet = true;
115 m_id = std::forward<IdT>(value);
116 }
117 template <typename IdT = Aws::String>
118 FormSummary& WithId(IdT&& value) {
119 SetId(std::forward<IdT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetName() const { return m_name; }
129 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
130 template <typename NameT = Aws::String>
131 void SetName(NameT&& value) {
132 m_nameHasBeenSet = true;
133 m_name = std::forward<NameT>(value);
134 }
135 template <typename NameT = Aws::String>
136 FormSummary& WithName(NameT&& value) {
137 SetName(std::forward<NameT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_appId;
143
144 FormDataTypeConfig m_dataType;
145
146 Aws::String m_environmentName;
147
148 FormActionType m_formActionType{FormActionType::NOT_SET};
149
150 Aws::String m_id;
151
152 Aws::String m_name;
153 bool m_appIdHasBeenSet = false;
154 bool m_dataTypeHasBeenSet = false;
155 bool m_environmentNameHasBeenSet = false;
156 bool m_formActionTypeHasBeenSet = false;
157 bool m_idHasBeenSet = false;
158 bool m_nameHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace AmplifyUIBuilder
163} // namespace Aws
AWS_AMPLIFYUIBUILDER_API FormSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAppId() const
Definition FormSummary.h:40
FormActionType GetFormActionType() const
Definition FormSummary.h:94
FormSummary & WithId(IdT &&value)
const Aws::String & GetName() const
FormSummary & WithEnvironmentName(EnvironmentNameT &&value)
Definition FormSummary.h:84
FormSummary & WithName(NameT &&value)
const Aws::String & GetEnvironmentName() const
Definition FormSummary.h:76
void SetEnvironmentName(EnvironmentNameT &&value)
Definition FormSummary.h:79
FormSummary & WithAppId(AppIdT &&value)
Definition FormSummary.h:48
AWS_AMPLIFYUIBUILDER_API FormSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const FormDataTypeConfig & GetDataType() const
Definition FormSummary.h:58
FormSummary & WithDataType(DataTypeT &&value)
Definition FormSummary.h:66
void SetFormActionType(FormActionType value)
Definition FormSummary.h:96
const Aws::String & GetId() const
AWS_AMPLIFYUIBUILDER_API FormSummary()=default
FormSummary & WithFormActionType(FormActionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue