AWS SDK for C++  1.9.21
AWS SDK for C++
PutAccountSettingDefaultRequest.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 "PutAccountSettingDefault"; }
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 PutAccountSettingDefaultRequest& WithName(const SettingName& value) { SetName(value); return *this;}
107 
120  inline PutAccountSettingDefaultRequest& 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 PutAccountSettingDefaultRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
158 
163  inline PutAccountSettingDefaultRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
164 
169  inline PutAccountSettingDefaultRequest& WithValue(const char* value) { SetValue(value); return *this;}
170 
171  private:
172 
173  SettingName m_name;
174  bool m_nameHasBeenSet;
175 
176  Aws::String m_value;
177  bool m_valueHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace ECS
182 } // namespace Aws
Aws::ECS::Model::PutAccountSettingDefaultRequest::SetName
void SetName(const SettingName &value)
Definition: PutAccountSettingDefaultRequest.h:78
Aws::ECS::Model::PutAccountSettingDefaultRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutAccountSettingDefaultRequest.h:64
Aws::ECS::Model::PutAccountSettingDefaultRequest::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: PutAccountSettingDefaultRequest.h:133
Aws::ECS::Model::PutAccountSettingDefaultRequest::SetValue
void SetValue(Aws::String &&value)
Definition: PutAccountSettingDefaultRequest.h:145
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::PutAccountSettingDefaultRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutAccountSettingDefaultRequest.h:31
Aws::ECS::Model::SettingName
SettingName
Definition: SettingName.h:17
Aws::ECS::Model::PutAccountSettingDefaultRequest::GetValue
const Aws::String & GetValue() const
Definition: PutAccountSettingDefaultRequest.h:127
Aws::ECS::Model::PutAccountSettingDefaultRequest::WithValue
PutAccountSettingDefaultRequest & WithValue(const Aws::String &value)
Definition: PutAccountSettingDefaultRequest.h:157
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::PutAccountSettingDefaultRequest::WithName
PutAccountSettingDefaultRequest & WithName(const SettingName &value)
Definition: PutAccountSettingDefaultRequest.h:106
Aws::ECS::Model::PutAccountSettingDefaultRequest
Definition: PutAccountSettingDefaultRequest.h:23
Aws::ECS::Model::PutAccountSettingDefaultRequest::SetValue
void SetValue(const Aws::String &value)
Definition: PutAccountSettingDefaultRequest.h:139
Aws::ECS::Model::PutAccountSettingDefaultRequest::WithValue
PutAccountSettingDefaultRequest & WithValue(Aws::String &&value)
Definition: PutAccountSettingDefaultRequest.h:163
Aws::ECS::Model::PutAccountSettingDefaultRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::PutAccountSettingDefaultRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::PutAccountSettingDefaultRequest::WithName
PutAccountSettingDefaultRequest & WithName(SettingName &&value)
Definition: PutAccountSettingDefaultRequest.h:120
AWSString.h
Aws::ECS::Model::PutAccountSettingDefaultRequest::SetName
void SetName(SettingName &&value)
Definition: PutAccountSettingDefaultRequest.h:92
Aws::ECS::Model::PutAccountSettingDefaultRequest::GetName
const SettingName & GetName() const
Definition: PutAccountSettingDefaultRequest.h:50
SettingName.h
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::PutAccountSettingDefaultRequest::PutAccountSettingDefaultRequest
PutAccountSettingDefaultRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::PutAccountSettingDefaultRequest::SetValue
void SetValue(const char *value)
Definition: PutAccountSettingDefaultRequest.h:151
ECS_EXPORTS.h
Aws::ECS::Model::PutAccountSettingDefaultRequest::WithValue
PutAccountSettingDefaultRequest & WithValue(const char *value)
Definition: PutAccountSettingDefaultRequest.h:169
ECSRequest.h