AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateCapacityProviderRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <aws/ecs/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ECS
18{
19namespace 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
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
129
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 = false;
308
309 AutoScalingGroupProvider m_autoScalingGroupProvider;
310 bool m_autoScalingGroupProviderHasBeenSet = false;
311
312 Aws::Vector<Tag> m_tags;
313 bool m_tagsHasBeenSet = false;
314 };
315
316} // namespace Model
317} // namespace ECS
318} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAutoScalingGroupProvider(const AutoScalingGroupProvider &value)
CreateCapacityProviderRequest & WithName(const char *value)
CreateCapacityProviderRequest & AddTags(Tag &&value)
CreateCapacityProviderRequest & WithAutoScalingGroupProvider(const AutoScalingGroupProvider &value)
virtual const char * GetServiceRequestName() const override
CreateCapacityProviderRequest & WithTags(const Aws::Vector< Tag > &value)
CreateCapacityProviderRequest & WithName(Aws::String &&value)
AWS_ECS_API Aws::String SerializePayload() const override
CreateCapacityProviderRequest & AddTags(const Tag &value)
CreateCapacityProviderRequest & WithTags(Aws::Vector< Tag > &&value)
const AutoScalingGroupProvider & GetAutoScalingGroupProvider() const
CreateCapacityProviderRequest & WithName(const Aws::String &value)
CreateCapacityProviderRequest & WithAutoScalingGroupProvider(AutoScalingGroupProvider &&value)
void SetAutoScalingGroupProvider(AutoScalingGroupProvider &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector