AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PutAccountSettingRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutAccountSetting"; }
32
34
36
37
50 inline const SettingName& GetName() const{ return m_name; }
51
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65
78 inline void SetName(const SettingName& value) { m_nameHasBeenSet = true; m_name = value; }
79
92 inline void SetName(SettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
93
106 inline PutAccountSettingRequest& WithName(const SettingName& value) { SetName(value); return *this;}
107
120 inline PutAccountSettingRequest& WithName(SettingName&& value) { SetName(std::move(value)); return *this;}
121
122
127 inline const Aws::String& GetValue() const{ return m_value; }
128
133 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
134
139 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
140
145 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
146
151 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
152
157 inline PutAccountSettingRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
158
163 inline PutAccountSettingRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
164
169 inline PutAccountSettingRequest& WithValue(const char* value) { SetValue(value); return *this;}
170
171
181 inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
182
192 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
193
203 inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
204
214 inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
215
225 inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
226
236 inline PutAccountSettingRequest& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
237
247 inline PutAccountSettingRequest& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
248
258 inline PutAccountSettingRequest& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
259
260 private:
261
262 SettingName m_name;
263 bool m_nameHasBeenSet = false;
264
265 Aws::String m_value;
266 bool m_valueHasBeenSet = false;
267
268 Aws::String m_principalArn;
269 bool m_principalArnHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace ECS
274} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
PutAccountSettingRequest & WithName(SettingName &&value)
PutAccountSettingRequest & WithValue(const char *value)
AWS_ECS_API Aws::String SerializePayload() const override
PutAccountSettingRequest & WithPrincipalArn(const Aws::String &value)
PutAccountSettingRequest & WithValue(Aws::String &&value)
PutAccountSettingRequest & WithPrincipalArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutAccountSettingRequest & WithPrincipalArn(const char *value)
PutAccountSettingRequest & WithName(const SettingName &value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAccountSettingRequest & WithValue(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String