AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
50 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
51 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
52 inline CreateFormRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
53 inline CreateFormRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
54 inline CreateFormRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
56
58
61 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
62 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
63 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
64 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
65 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
66 inline CreateFormRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
67 inline CreateFormRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
68 inline CreateFormRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
70
72
75 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
78 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
79 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
80 inline CreateFormRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81 inline CreateFormRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
82 inline CreateFormRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
84
86
89 inline const CreateFormData& GetFormToCreate() const{ return m_formToCreate; }
90 inline bool FormToCreateHasBeenSet() const { return m_formToCreateHasBeenSet; }
91 inline void SetFormToCreate(const CreateFormData& value) { m_formToCreateHasBeenSet = true; m_formToCreate = value; }
92 inline void SetFormToCreate(CreateFormData&& value) { m_formToCreateHasBeenSet = true; m_formToCreate = std::move(value); }
93 inline CreateFormRequest& WithFormToCreate(const CreateFormData& value) { SetFormToCreate(value); return *this;}
94 inline CreateFormRequest& WithFormToCreate(CreateFormData&& value) { SetFormToCreate(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_appId;
99 bool m_appIdHasBeenSet = false;
100
101 Aws::String m_environmentName;
102 bool m_environmentNameHasBeenSet = false;
103
104 Aws::String m_clientToken;
105 bool m_clientTokenHasBeenSet = false;
106
107 CreateFormData m_formToCreate;
108 bool m_formToCreateHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace AmplifyUIBuilder
113} // namespace Aws
CreateFormRequest & WithAppId(const Aws::String &value)
CreateFormRequest & WithClientToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateFormRequest & WithEnvironmentName(const Aws::String &value)
void SetFormToCreate(const CreateFormData &value)
CreateFormRequest & WithAppId(const char *value)
CreateFormRequest & WithFormToCreate(const CreateFormData &value)
CreateFormRequest & WithFormToCreate(CreateFormData &&value)
AWS_AMPLIFYUIBUILDER_API CreateFormRequest()
CreateFormRequest & WithClientToken(const char *value)
CreateFormRequest & WithClientToken(Aws::String &&value)
AWS_AMPLIFYUIBUILDER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateFormRequest & WithAppId(Aws::String &&value)
CreateFormRequest & WithEnvironmentName(Aws::String &&value)
void SetEnvironmentName(const Aws::String &value)
CreateFormRequest & WithEnvironmentName(const char *value)
AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String