AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateComponentRequest.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilderRequest.h>
8#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
9#include <aws/amplifyuibuilder/model/UpdateComponentData.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace AmplifyUIBuilder {
20namespace Model {
21
25 public:
26 AWS_AMPLIFYUIBUILDER_API UpdateComponentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateComponent"; }
33
34 AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override;
35
36 AWS_AMPLIFYUIBUILDER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetAppId() const { return m_appId; }
43 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
44 template <typename AppIdT = Aws::String>
45 void SetAppId(AppIdT&& value) {
46 m_appIdHasBeenSet = true;
47 m_appId = std::forward<AppIdT>(value);
48 }
49 template <typename AppIdT = Aws::String>
51 SetAppId(std::forward<AppIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
61 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
62 template <typename EnvironmentNameT = Aws::String>
63 void SetEnvironmentName(EnvironmentNameT&& value) {
64 m_environmentNameHasBeenSet = true;
65 m_environmentName = std::forward<EnvironmentNameT>(value);
66 }
67 template <typename EnvironmentNameT = Aws::String>
68 UpdateComponentRequest& WithEnvironmentName(EnvironmentNameT&& value) {
69 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetId() const { return m_id; }
79 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
80 template <typename IdT = Aws::String>
81 void SetId(IdT&& value) {
82 m_idHasBeenSet = true;
83 m_id = std::forward<IdT>(value);
84 }
85 template <typename IdT = Aws::String>
87 SetId(std::forward<IdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetClientToken() const { return m_clientToken; }
97 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
98 template <typename ClientTokenT = Aws::String>
99 void SetClientToken(ClientTokenT&& value) {
100 m_clientTokenHasBeenSet = true;
101 m_clientToken = std::forward<ClientTokenT>(value);
102 }
103 template <typename ClientTokenT = Aws::String>
105 SetClientToken(std::forward<ClientTokenT>(value));
106 return *this;
107 }
109
111
114 inline const UpdateComponentData& GetUpdatedComponent() const { return m_updatedComponent; }
115 inline bool UpdatedComponentHasBeenSet() const { return m_updatedComponentHasBeenSet; }
116 template <typename UpdatedComponentT = UpdateComponentData>
117 void SetUpdatedComponent(UpdatedComponentT&& value) {
118 m_updatedComponentHasBeenSet = true;
119 m_updatedComponent = std::forward<UpdatedComponentT>(value);
120 }
121 template <typename UpdatedComponentT = UpdateComponentData>
122 UpdateComponentRequest& WithUpdatedComponent(UpdatedComponentT&& value) {
123 SetUpdatedComponent(std::forward<UpdatedComponentT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_appId;
129
130 Aws::String m_environmentName;
131
132 Aws::String m_id;
133
135
136 UpdateComponentData m_updatedComponent;
137 bool m_appIdHasBeenSet = false;
138 bool m_environmentNameHasBeenSet = false;
139 bool m_idHasBeenSet = false;
140 bool m_clientTokenHasBeenSet = true;
141 bool m_updatedComponentHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace AmplifyUIBuilder
146} // namespace Aws
UpdateComponentRequest & WithUpdatedComponent(UpdatedComponentT &&value)
virtual const char * GetServiceRequestName() const override
UpdateComponentRequest & WithClientToken(ClientTokenT &&value)
AWS_AMPLIFYUIBUILDER_API UpdateComponentRequest()=default
UpdateComponentRequest & WithAppId(AppIdT &&value)
UpdateComponentRequest & WithEnvironmentName(EnvironmentNameT &&value)
AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override
AWS_AMPLIFYUIBUILDER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String