AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateComponentRequest.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/UpdateComponentData.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 UpdateComponentRequest() = 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 "UpdateComponent"; }
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 UpdateComponentRequest& 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 UpdateComponentRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetId() const { return m_id; }
72 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
73 template<typename IdT = Aws::String>
74 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
75 template<typename IdT = Aws::String>
76 UpdateComponentRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
78
80
83 inline const Aws::String& GetClientToken() const { return m_clientToken; }
84 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
85 template<typename ClientTokenT = Aws::String>
86 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
87 template<typename ClientTokenT = Aws::String>
88 UpdateComponentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
90
92
95 inline const UpdateComponentData& GetUpdatedComponent() const { return m_updatedComponent; }
96 inline bool UpdatedComponentHasBeenSet() const { return m_updatedComponentHasBeenSet; }
97 template<typename UpdatedComponentT = UpdateComponentData>
98 void SetUpdatedComponent(UpdatedComponentT&& value) { m_updatedComponentHasBeenSet = true; m_updatedComponent = std::forward<UpdatedComponentT>(value); }
99 template<typename UpdatedComponentT = UpdateComponentData>
100 UpdateComponentRequest& WithUpdatedComponent(UpdatedComponentT&& value) { SetUpdatedComponent(std::forward<UpdatedComponentT>(value)); return *this;}
102 private:
103
104 Aws::String m_appId;
105 bool m_appIdHasBeenSet = false;
106
107 Aws::String m_environmentName;
108 bool m_environmentNameHasBeenSet = false;
109
110 Aws::String m_id;
111 bool m_idHasBeenSet = false;
112
114 bool m_clientTokenHasBeenSet = true;
115
116 UpdateComponentData m_updatedComponent;
117 bool m_updatedComponentHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace AmplifyUIBuilder
122} // 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