AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateAppRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/CostTrackingConfiguration.h>
10#include <aws/appmonetization/model/RequestScope.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 AppMonetization {
20namespace Model {
21
28 public:
29 AWS_APPMONETIZATION_API UpdateAppRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateApp"; }
36
37 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
38
39 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41 AWS_APPMONETIZATION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
44
49 inline const Aws::String& GetAppId() const { return m_appId; }
50 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
51 template <typename AppIdT = Aws::String>
52 void SetAppId(AppIdT&& value) {
53 m_appIdHasBeenSet = true;
54 m_appId = std::forward<AppIdT>(value);
55 }
56 template <typename AppIdT = Aws::String>
57 UpdateAppRequest& WithAppId(AppIdT&& value) {
58 SetAppId(std::forward<AppIdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template <typename NameT = Aws::String>
70 void SetName(NameT&& value) {
71 m_nameHasBeenSet = true;
72 m_name = std::forward<NameT>(value);
73 }
74 template <typename NameT = Aws::String>
75 UpdateAppRequest& WithName(NameT&& value) {
76 SetName(std::forward<NameT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
94 UpdateAppRequest& WithDescription(DescriptionT&& value) {
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
107 inline const Aws::String& GetIdentifier() const { return m_identifier; }
108 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
109 template <typename IdentifierT = Aws::String>
110 void SetIdentifier(IdentifierT&& value) {
111 m_identifierHasBeenSet = true;
112 m_identifier = std::forward<IdentifierT>(value);
113 }
114 template <typename IdentifierT = Aws::String>
115 UpdateAppRequest& WithIdentifier(IdentifierT&& value) {
116 SetIdentifier(std::forward<IdentifierT>(value));
117 return *this;
118 }
120
122
127 inline RequestScope GetScope() const { return m_scope; }
128 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
129 inline void SetScope(RequestScope value) {
130 m_scopeHasBeenSet = true;
131 m_scope = value;
132 }
134 SetScope(value);
135 return *this;
136 }
138
140
146 inline const CostTrackingConfiguration& GetCostTracking() const { return m_costTracking; }
147 inline bool CostTrackingHasBeenSet() const { return m_costTrackingHasBeenSet; }
148 template <typename CostTrackingT = CostTrackingConfiguration>
149 void SetCostTracking(CostTrackingT&& value) {
150 m_costTrackingHasBeenSet = true;
151 m_costTracking = std::forward<CostTrackingT>(value);
152 }
153 template <typename CostTrackingT = CostTrackingConfiguration>
154 UpdateAppRequest& WithCostTracking(CostTrackingT&& value) {
155 SetCostTracking(std::forward<CostTrackingT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_appId;
161
162 Aws::String m_name;
163
164 Aws::String m_description;
165
166 Aws::String m_identifier;
167
169
170 CostTrackingConfiguration m_costTracking;
171 bool m_appIdHasBeenSet = false;
172 bool m_nameHasBeenSet = false;
173 bool m_descriptionHasBeenSet = false;
174 bool m_identifierHasBeenSet = false;
175 bool m_scopeHasBeenSet = false;
176 bool m_costTrackingHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace AppMonetization
181} // namespace Aws
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
UpdateAppRequest & WithDescription(DescriptionT &&value)
UpdateAppRequest & WithName(NameT &&value)
UpdateAppRequest & WithAppId(AppIdT &&value)
AWS_APPMONETIZATION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdateAppRequest & WithCostTracking(CostTrackingT &&value)
virtual const char * GetServiceRequestName() const override
const CostTrackingConfiguration & GetCostTracking() const
UpdateAppRequest & WithIdentifier(IdentifierT &&value)
AWS_APPMONETIZATION_API UpdateAppRequest()=default
UpdateAppRequest & WithScope(RequestScope value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String