AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFormRequest.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/AmplifyUIBuilderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/amplifyuibuilder/model/CreateFormData.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace AmplifyUIBuilder
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_AMPLIFYUIBUILDER_API CreateFormRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateForm"; }
37
38 AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override;
39
40 AWS_AMPLIFYUIBUILDER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetAppId() const { return m_appId; }
48 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
49 template<typename AppIdT = Aws::String>
50 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
51 template<typename AppIdT = Aws::String>
52 CreateFormRequest& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
60 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
61 template<typename EnvironmentNameT = Aws::String>
62 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
63 template<typename EnvironmentNameT = Aws::String>
64 CreateFormRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetClientToken() const { return m_clientToken; }
72 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
73 template<typename ClientTokenT = Aws::String>
74 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
75 template<typename ClientTokenT = Aws::String>
76 CreateFormRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
78
80
83 inline const CreateFormData& GetFormToCreate() const { return m_formToCreate; }
84 inline bool FormToCreateHasBeenSet() const { return m_formToCreateHasBeenSet; }
85 template<typename FormToCreateT = CreateFormData>
86 void SetFormToCreate(FormToCreateT&& value) { m_formToCreateHasBeenSet = true; m_formToCreate = std::forward<FormToCreateT>(value); }
87 template<typename FormToCreateT = CreateFormData>
88 CreateFormRequest& WithFormToCreate(FormToCreateT&& value) { SetFormToCreate(std::forward<FormToCreateT>(value)); return *this;}
90 private:
91
92 Aws::String m_appId;
93 bool m_appIdHasBeenSet = false;
94
95 Aws::String m_environmentName;
96 bool m_environmentNameHasBeenSet = false;
97
99 bool m_clientTokenHasBeenSet = true;
100
101 CreateFormData m_formToCreate;
102 bool m_formToCreateHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace AmplifyUIBuilder
107} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateFormRequest & WithFormToCreate(FormToCreateT &&value)
CreateFormRequest & WithEnvironmentName(EnvironmentNameT &&value)
AWS_AMPLIFYUIBUILDER_API CreateFormRequest()=default
CreateFormRequest & WithAppId(AppIdT &&value)
AWS_AMPLIFYUIBUILDER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateFormRequest & WithClientToken(ClientTokenT &&value)
void SetEnvironmentName(EnvironmentNameT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String