AWS SDK for C++  1.9.1
AWS SDK for C++
DeleteAccountSettingRequest.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 "DeleteAccountSetting"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
48  inline const SettingName& GetName() const{ return m_name; }
49 
60  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 
72  inline void SetName(const SettingName& value) { m_nameHasBeenSet = true; m_name = value; }
73 
84  inline void SetName(SettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 
96  inline DeleteAccountSettingRequest& WithName(const SettingName& value) { SetName(value); return *this;}
97 
108  inline DeleteAccountSettingRequest& WithName(SettingName&& value) { SetName(std::move(value)); return *this;}
109 
110 
118  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
119 
127  inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
128 
136  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
137 
145  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
146 
154  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
155 
163  inline DeleteAccountSettingRequest& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
164 
172  inline DeleteAccountSettingRequest& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
173 
181  inline DeleteAccountSettingRequest& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
182 
183  private:
184 
185  SettingName m_name;
186  bool m_nameHasBeenSet;
187 
188  Aws::String m_principalArn;
189  bool m_principalArnHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace ECS
194 } // namespace Aws
Aws::ECS::Model::DeleteAccountSettingRequest::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: DeleteAccountSettingRequest.h:136
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::DeleteAccountSettingRequest::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: DeleteAccountSettingRequest.h:127
Aws::ECS::Model::SettingName
SettingName
Definition: SettingName.h:17
Aws::ECS::Model::DeleteAccountSettingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DeleteAccountSettingRequest::WithPrincipalArn
DeleteAccountSettingRequest & WithPrincipalArn(Aws::String &&value)
Definition: DeleteAccountSettingRequest.h:172
Aws::ECS::Model::DeleteAccountSettingRequest::SetName
void SetName(const SettingName &value)
Definition: DeleteAccountSettingRequest.h:72
Aws::ECS::Model::DeleteAccountSettingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DeleteAccountSettingRequest::WithName
DeleteAccountSettingRequest & WithName(const SettingName &value)
Definition: DeleteAccountSettingRequest.h:96
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DeleteAccountSettingRequest::DeleteAccountSettingRequest
DeleteAccountSettingRequest()
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DeleteAccountSettingRequest::WithName
DeleteAccountSettingRequest & WithName(SettingName &&value)
Definition: DeleteAccountSettingRequest.h:108
Aws::ECS::Model::DeleteAccountSettingRequest
Definition: DeleteAccountSettingRequest.h:23
AWSString.h
Aws::ECS::Model::DeleteAccountSettingRequest::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: DeleteAccountSettingRequest.h:145
Aws::ECS::Model::DeleteAccountSettingRequest::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: DeleteAccountSettingRequest.h:154
SettingName.h
Aws::ECS::Model::DeleteAccountSettingRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DeleteAccountSettingRequest.h:60
Aws::ECS::Model::DeleteAccountSettingRequest::WithPrincipalArn
DeleteAccountSettingRequest & WithPrincipalArn(const char *value)
Definition: DeleteAccountSettingRequest.h:181
Aws::ECS::Model::DeleteAccountSettingRequest::GetName
const SettingName & GetName() const
Definition: DeleteAccountSettingRequest.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DeleteAccountSettingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteAccountSettingRequest.h:31
Aws::ECS::Model::DeleteAccountSettingRequest::WithPrincipalArn
DeleteAccountSettingRequest & WithPrincipalArn(const Aws::String &value)
Definition: DeleteAccountSettingRequest.h:163
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DeleteAccountSettingRequest::SetName
void SetName(SettingName &&value)
Definition: DeleteAccountSettingRequest.h:84
Aws::ECS::Model::DeleteAccountSettingRequest::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: DeleteAccountSettingRequest.h:118