AWS SDK for C++  1.9.159
AWS SDK for C++
CreateCapacityProviderRequest.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>
12 #include <aws/ecs/model/Tag.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace ECS
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateCapacityProvider"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
62  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 
70  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 
78  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 
86  inline CreateCapacityProviderRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
87 
94  inline CreateCapacityProviderRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 
102  inline CreateCapacityProviderRequest& WithName(const char* value) { SetName(value); return *this;}
103 
104 
108  inline const AutoScalingGroupProvider& GetAutoScalingGroupProvider() const{ return m_autoScalingGroupProvider; }
109 
113  inline bool AutoScalingGroupProviderHasBeenSet() const { return m_autoScalingGroupProviderHasBeenSet; }
114 
118  inline void SetAutoScalingGroupProvider(const AutoScalingGroupProvider& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = value; }
119 
123  inline void SetAutoScalingGroupProvider(AutoScalingGroupProvider&& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = std::move(value); }
124 
128  inline CreateCapacityProviderRequest& WithAutoScalingGroupProvider(const AutoScalingGroupProvider& value) { SetAutoScalingGroupProvider(value); return *this;}
129 
133  inline CreateCapacityProviderRequest& WithAutoScalingGroupProvider(AutoScalingGroupProvider&& value) { SetAutoScalingGroupProvider(std::move(value)); return *this;}
134 
135 
155  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
156 
176  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 
197  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
198 
218  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
219 
239  inline CreateCapacityProviderRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
240 
260  inline CreateCapacityProviderRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
261 
281  inline CreateCapacityProviderRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
282 
302  inline CreateCapacityProviderRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
303 
304  private:
305 
306  Aws::String m_name;
307  bool m_nameHasBeenSet;
308 
309  AutoScalingGroupProvider m_autoScalingGroupProvider;
310  bool m_autoScalingGroupProviderHasBeenSet;
311 
312  Aws::Vector<Tag> m_tags;
313  bool m_tagsHasBeenSet;
314  };
315 
316 } // namespace Model
317 } // namespace ECS
318 } // namespace Aws
Aws::ECS::Model::CreateCapacityProviderRequest::SetAutoScalingGroupProvider
void SetAutoScalingGroupProvider(AutoScalingGroupProvider &&value)
Definition: CreateCapacityProviderRequest.h:123
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::CreateCapacityProviderRequest::WithName
CreateCapacityProviderRequest & WithName(const Aws::String &value)
Definition: CreateCapacityProviderRequest.h:86
AutoScalingGroupProvider.h
Aws::ECS::Model::CreateCapacityProviderRequest::WithName
CreateCapacityProviderRequest & WithName(Aws::String &&value)
Definition: CreateCapacityProviderRequest.h:94
Aws::ECS::Model::CreateCapacityProviderRequest::SetName
void SetName(const char *value)
Definition: CreateCapacityProviderRequest.h:78
Tag.h
Aws::ECS::Model::CreateCapacityProviderRequest::WithAutoScalingGroupProvider
CreateCapacityProviderRequest & WithAutoScalingGroupProvider(AutoScalingGroupProvider &&value)
Definition: CreateCapacityProviderRequest.h:133
Aws::ECS::Model::CreateCapacityProviderRequest::GetAutoScalingGroupProvider
const AutoScalingGroupProvider & GetAutoScalingGroupProvider() const
Definition: CreateCapacityProviderRequest.h:108
Aws::ECS::Model::CreateCapacityProviderRequest::SetAutoScalingGroupProvider
void SetAutoScalingGroupProvider(const AutoScalingGroupProvider &value)
Definition: CreateCapacityProviderRequest.h:118
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::CreateCapacityProviderRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateCapacityProviderRequest.h:176
Aws::ECS::Model::Tag
Definition: Tag.h:47
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::CreateCapacityProviderRequest::WithAutoScalingGroupProvider
CreateCapacityProviderRequest & WithAutoScalingGroupProvider(const AutoScalingGroupProvider &value)
Definition: CreateCapacityProviderRequest.h:128
Aws::ECS::Model::CreateCapacityProviderRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCapacityProviderRequest.h:33
Aws::ECS::Model::CreateCapacityProviderRequest::WithTags
CreateCapacityProviderRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateCapacityProviderRequest.h:239
Aws::ECS::Model::CreateCapacityProviderRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateCapacityProviderRequest.h:54
Aws::ECS::Model::CreateCapacityProviderRequest
Definition: CreateCapacityProviderRequest.h:25
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::CreateCapacityProviderRequest::AddTags
CreateCapacityProviderRequest & AddTags(Tag &&value)
Definition: CreateCapacityProviderRequest.h:302
Aws::ECS::Model::CreateCapacityProviderRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateCapacityProviderRequest.h:197
Aws::ECS::Model::CreateCapacityProviderRequest::AutoScalingGroupProviderHasBeenSet
bool AutoScalingGroupProviderHasBeenSet() const
Definition: CreateCapacityProviderRequest.h:113
AWSString.h
Aws::ECS::Model::CreateCapacityProviderRequest::CreateCapacityProviderRequest
CreateCapacityProviderRequest()
Aws::ECS::Model::CreateCapacityProviderRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateCapacityProviderRequest.h:62
Aws::ECS::Model::CreateCapacityProviderRequest::WithName
CreateCapacityProviderRequest & WithName(const char *value)
Definition: CreateCapacityProviderRequest.h:102
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::CreateCapacityProviderRequest::GetName
const Aws::String & GetName() const
Definition: CreateCapacityProviderRequest.h:46
Aws::ECS::Model::AutoScalingGroupProvider
Definition: AutoScalingGroupProvider.h:35
Aws::ECS::Model::CreateCapacityProviderRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateCapacityProviderRequest.h:218
Aws::ECS::Model::CreateCapacityProviderRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::CreateCapacityProviderRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::CreateCapacityProviderRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateCapacityProviderRequest.h:155
Aws::ECS::Model::CreateCapacityProviderRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateCapacityProviderRequest.h:70
Aws::ECS::Model::CreateCapacityProviderRequest::AddTags
CreateCapacityProviderRequest & AddTags(const Tag &value)
Definition: CreateCapacityProviderRequest.h:281
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::CreateCapacityProviderRequest::WithTags
CreateCapacityProviderRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateCapacityProviderRequest.h:260