AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
UpdateAppRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/amplifygen3/model/AppBackendRequest.h>
10#include <aws/amplifygen3/model/AppUpdateSourceConfigRequest.h>
11#include <aws/amplifygen3/model/AppUpdateWebConfigRequest.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AmplifyGen3 {
18namespace Model {
19
23 public:
24 AWS_AMPLIFYGEN3_API UpdateAppRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateApp"; }
31
32 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetAppName() const { return m_appName; }
39 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
40 template <typename AppNameT = Aws::String>
41 void SetAppName(AppNameT&& value) {
42 m_appNameHasBeenSet = true;
43 m_appName = std::forward<AppNameT>(value);
44 }
45 template <typename AppNameT = Aws::String>
46 UpdateAppRequest& WithAppName(AppNameT&& value) {
47 SetAppName(std::forward<AppNameT>(value));
48 return *this;
49 }
51
53
56 inline const AppUpdateSourceConfigRequest& GetSourceConfig() const { return m_sourceConfig; }
57 inline bool SourceConfigHasBeenSet() const { return m_sourceConfigHasBeenSet; }
58 template <typename SourceConfigT = AppUpdateSourceConfigRequest>
59 void SetSourceConfig(SourceConfigT&& value) {
60 m_sourceConfigHasBeenSet = true;
61 m_sourceConfig = std::forward<SourceConfigT>(value);
62 }
63 template <typename SourceConfigT = AppUpdateSourceConfigRequest>
64 UpdateAppRequest& WithSourceConfig(SourceConfigT&& value) {
65 SetSourceConfig(std::forward<SourceConfigT>(value));
66 return *this;
67 }
69
71
74 inline const AppUpdateWebConfigRequest& GetWeb() const { return m_web; }
75 inline bool WebHasBeenSet() const { return m_webHasBeenSet; }
76 template <typename WebT = AppUpdateWebConfigRequest>
77 void SetWeb(WebT&& value) {
78 m_webHasBeenSet = true;
79 m_web = std::forward<WebT>(value);
80 }
81 template <typename WebT = AppUpdateWebConfigRequest>
82 UpdateAppRequest& WithWeb(WebT&& value) {
83 SetWeb(std::forward<WebT>(value));
84 return *this;
85 }
87
89
94 inline const AppBackendRequest& GetBackend() const { return m_backend; }
95 inline bool BackendHasBeenSet() const { return m_backendHasBeenSet; }
96 template <typename BackendT = AppBackendRequest>
97 void SetBackend(BackendT&& value) {
98 m_backendHasBeenSet = true;
99 m_backend = std::forward<BackendT>(value);
100 }
101 template <typename BackendT = AppBackendRequest>
102 UpdateAppRequest& WithBackend(BackendT&& value) {
103 SetBackend(std::forward<BackendT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_appName;
109
110 AppUpdateSourceConfigRequest m_sourceConfig;
111
113
114 AppBackendRequest m_backend;
115 bool m_appNameHasBeenSet = false;
116 bool m_sourceConfigHasBeenSet = false;
117 bool m_webHasBeenSet = false;
118 bool m_backendHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace AmplifyGen3
123} // namespace Aws
AWS_AMPLIFYGEN3_API UpdateAppRequest()=default
const AppUpdateSourceConfigRequest & GetSourceConfig() const
virtual const char * GetServiceRequestName() const override
UpdateAppRequest & WithBackend(BackendT &&value)
const AppBackendRequest & GetBackend() const
UpdateAppRequest & WithSourceConfig(SourceConfigT &&value)
const AppUpdateWebConfigRequest & GetWeb() const
void SetSourceConfig(SourceConfigT &&value)
UpdateAppRequest & WithAppName(AppNameT &&value)
UpdateAppRequest & WithWeb(WebT &&value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String