AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateComponentRequest.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/CreateComponentData.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 CreateComponentRequest();
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 "CreateComponent"; }
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 CreateComponentRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
53 inline CreateComponentRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
54 inline CreateComponentRequest& 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 CreateComponentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
67 inline CreateComponentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
68 inline CreateComponentRequest& 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 CreateComponentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81 inline CreateComponentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
82 inline CreateComponentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
84
86
89 inline const CreateComponentData& GetComponentToCreate() const{ return m_componentToCreate; }
90 inline bool ComponentToCreateHasBeenSet() const { return m_componentToCreateHasBeenSet; }
91 inline void SetComponentToCreate(const CreateComponentData& value) { m_componentToCreateHasBeenSet = true; m_componentToCreate = value; }
92 inline void SetComponentToCreate(CreateComponentData&& value) { m_componentToCreateHasBeenSet = true; m_componentToCreate = std::move(value); }
94 inline CreateComponentRequest& WithComponentToCreate(CreateComponentData&& value) { SetComponentToCreate(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 CreateComponentData m_componentToCreate;
108 bool m_componentToCreateHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace AmplifyUIBuilder
113} // namespace Aws
CreateComponentRequest & WithAppId(const Aws::String &value)
CreateComponentRequest & WithEnvironmentName(const Aws::String &value)
void SetComponentToCreate(const CreateComponentData &value)
CreateComponentRequest & WithAppId(Aws::String &&value)
CreateComponentRequest & WithEnvironmentName(const char *value)
AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override
CreateComponentRequest & WithEnvironmentName(Aws::String &&value)
CreateComponentRequest & WithClientToken(Aws::String &&value)
CreateComponentRequest & WithAppId(const char *value)
virtual const char * GetServiceRequestName() const override
CreateComponentRequest & WithClientToken(const char *value)
AWS_AMPLIFYUIBUILDER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateComponentRequest & WithComponentToCreate(CreateComponentData &&value)
CreateComponentRequest & WithComponentToCreate(const CreateComponentData &value)
CreateComponentRequest & WithClientToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String