AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutAccountSettingRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/model/SettingName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
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
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
37
39
112 inline const SettingName& GetName() const{ return m_name; }
113 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
114 inline void SetName(const SettingName& value) { m_nameHasBeenSet = true; m_name = value; }
115 inline void SetName(SettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
116 inline PutAccountSettingRequest& WithName(const SettingName& value) { SetName(value); return *this;}
117 inline PutAccountSettingRequest& WithName(SettingName&& value) { SetName(std::move(value)); return *this;}
119
121
133 inline const Aws::String& GetValue() const{ return m_value; }
134 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
135 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
136 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
137 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
138 inline PutAccountSettingRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
139 inline PutAccountSettingRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
140 inline PutAccountSettingRequest& WithValue(const char* value) { SetValue(value); return *this;}
142
144
154 inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
155 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
156 inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
157 inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
158 inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
159 inline PutAccountSettingRequest& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
160 inline PutAccountSettingRequest& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
161 inline PutAccountSettingRequest& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
163 private:
164
165 SettingName m_name;
166 bool m_nameHasBeenSet = false;
167
168 Aws::String m_value;
169 bool m_valueHasBeenSet = false;
170
171 Aws::String m_principalArn;
172 bool m_principalArnHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace ECS
177} // namespace Aws
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