AWS SDK for C++  1.9.156
AWS SDK for C++
PutAccountSettingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECS
16 {
17 namespace 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::String SerializePayload() const override;
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;
264 
265  Aws::String m_value;
266  bool m_valueHasBeenSet;
267 
268  Aws::String m_principalArn;
269  bool m_principalArnHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace ECS
274 } // namespace Aws
Aws::ECS::Model::PutAccountSettingRequest::SetName
void SetName(const SettingName &value)
Definition: PutAccountSettingRequest.h:78
Aws::ECS::Model::PutAccountSettingRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutAccountSettingRequest.h:64
Aws::ECS::Model::PutAccountSettingRequest::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: PutAccountSettingRequest.h:225
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::PutAccountSettingRequest::PutAccountSettingRequest
PutAccountSettingRequest()
Aws::ECS::Model::PutAccountSettingRequest::WithValue
PutAccountSettingRequest & WithValue(const Aws::String &value)
Definition: PutAccountSettingRequest.h:157
Aws::ECS::Model::SettingName
SettingName
Definition: SettingName.h:17
Aws::ECS::Model::PutAccountSettingRequest::WithValue
PutAccountSettingRequest & WithValue(const char *value)
Definition: PutAccountSettingRequest.h:169
Aws::ECS::Model::PutAccountSettingRequest::WithPrincipalArn
PutAccountSettingRequest & WithPrincipalArn(Aws::String &&value)
Definition: PutAccountSettingRequest.h:247
Aws::ECS::Model::PutAccountSettingRequest::WithValue
PutAccountSettingRequest & WithValue(Aws::String &&value)
Definition: PutAccountSettingRequest.h:163
Aws::ECS::Model::PutAccountSettingRequest::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: PutAccountSettingRequest.h:214
Aws::ECS::Model::PutAccountSettingRequest::WithName
PutAccountSettingRequest & WithName(const SettingName &value)
Definition: PutAccountSettingRequest.h:106
Aws::ECS::Model::PutAccountSettingRequest::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: PutAccountSettingRequest.h:133
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::PutAccountSettingRequest::SetName
void SetName(SettingName &&value)
Definition: PutAccountSettingRequest.h:92
Aws::ECS::Model::PutAccountSettingRequest
Definition: PutAccountSettingRequest.h:23
Aws::ECS::Model::PutAccountSettingRequest::GetName
const SettingName & GetName() const
Definition: PutAccountSettingRequest.h:50
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::PutAccountSettingRequest::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: PutAccountSettingRequest.h:192
Aws::ECS::Model::PutAccountSettingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutAccountSettingRequest.h:31
AWSString.h
Aws::ECS::Model::PutAccountSettingRequest::SetValue
void SetValue(Aws::String &&value)
Definition: PutAccountSettingRequest.h:145
Aws::ECS::Model::PutAccountSettingRequest::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: PutAccountSettingRequest.h:181
Aws::ECS::Model::PutAccountSettingRequest::SetValue
void SetValue(const char *value)
Definition: PutAccountSettingRequest.h:151
Aws::ECS::Model::PutAccountSettingRequest::WithPrincipalArn
PutAccountSettingRequest & WithPrincipalArn(const Aws::String &value)
Definition: PutAccountSettingRequest.h:236
SettingName.h
Aws::ECS::Model::PutAccountSettingRequest::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: PutAccountSettingRequest.h:203
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::PutAccountSettingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::PutAccountSettingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::PutAccountSettingRequest::WithName
PutAccountSettingRequest & WithName(SettingName &&value)
Definition: PutAccountSettingRequest.h:120
Aws::ECS::Model::PutAccountSettingRequest::SetValue
void SetValue(const Aws::String &value)
Definition: PutAccountSettingRequest.h:139
ECS_EXPORTS.h
Aws::ECS::Model::PutAccountSettingRequest::WithPrincipalArn
PutAccountSettingRequest & WithPrincipalArn(const char *value)
Definition: PutAccountSettingRequest.h:258
ECSRequest.h
Aws::ECS::Model::PutAccountSettingRequest::GetValue
const Aws::String & GetValue() const
Definition: PutAccountSettingRequest.h:127