AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
25 AWS_ECS_API PutAccountSettingRequest() = default;
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
139 inline SettingName GetName() const { return m_name; }
140 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 inline void SetName(SettingName value) { m_nameHasBeenSet = true; m_name = value; }
142 inline PutAccountSettingRequest& WithName(SettingName value) { SetName(value); return *this;}
144
146
158 inline const Aws::String& GetValue() const { return m_value; }
159 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
160 template<typename ValueT = Aws::String>
161 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
162 template<typename ValueT = Aws::String>
163 PutAccountSettingRequest& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
165
167
178 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
179 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
180 template<typename PrincipalArnT = Aws::String>
181 void SetPrincipalArn(PrincipalArnT&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::forward<PrincipalArnT>(value); }
182 template<typename PrincipalArnT = Aws::String>
183 PutAccountSettingRequest& WithPrincipalArn(PrincipalArnT&& value) { SetPrincipalArn(std::forward<PrincipalArnT>(value)); return *this;}
185 private:
186
188 bool m_nameHasBeenSet = false;
189
190 Aws::String m_value;
191 bool m_valueHasBeenSet = false;
192
193 Aws::String m_principalArn;
194 bool m_principalArnHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace ECS
199} // 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