AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
PutAccountSettingRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/SettingName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ECS {
16namespace Model {
17
21 public:
22 AWS_ECS_API PutAccountSettingRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutAccountSetting"; }
29
30 AWS_ECS_API Aws::String SerializePayload() const override;
31
33
35
140 inline SettingName GetName() const { return m_name; }
141 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
142 inline void SetName(SettingName value) {
143 m_nameHasBeenSet = true;
144 m_name = value;
145 }
147 SetName(value);
148 return *this;
149 }
151
153
165 inline const Aws::String& GetValue() const { return m_value; }
166 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
167 template <typename ValueT = Aws::String>
168 void SetValue(ValueT&& value) {
169 m_valueHasBeenSet = true;
170 m_value = std::forward<ValueT>(value);
171 }
172 template <typename ValueT = Aws::String>
174 SetValue(std::forward<ValueT>(value));
175 return *this;
176 }
178
180
191 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
192 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
193 template <typename PrincipalArnT = Aws::String>
194 void SetPrincipalArn(PrincipalArnT&& value) {
195 m_principalArnHasBeenSet = true;
196 m_principalArn = std::forward<PrincipalArnT>(value);
197 }
198 template <typename PrincipalArnT = Aws::String>
200 SetPrincipalArn(std::forward<PrincipalArnT>(value));
201 return *this;
202 }
204 private:
206
207 Aws::String m_value;
208
209 Aws::String m_principalArn;
210 bool m_nameHasBeenSet = false;
211 bool m_valueHasBeenSet = false;
212 bool m_principalArnHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace ECS
217} // namespace Aws
AWS_ECS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_ECS_API PutAccountSettingRequest()=default
PutAccountSettingRequest & WithValue(ValueT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAccountSettingRequest & WithName(SettingName value)
PutAccountSettingRequest & WithPrincipalArn(PrincipalArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String