AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCapacityProviderRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/AutoScalingGroupProvider.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
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
35 AWS_ECS_API Aws::String SerializePayload() const override;
36
38
39
41
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateCapacityProviderRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateCapacityProviderRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateCapacityProviderRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const AutoScalingGroupProvider& GetAutoScalingGroupProvider() const{ return m_autoScalingGroupProvider; }
62 inline bool AutoScalingGroupProviderHasBeenSet() const { return m_autoScalingGroupProviderHasBeenSet; }
63 inline void SetAutoScalingGroupProvider(const AutoScalingGroupProvider& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = value; }
64 inline void SetAutoScalingGroupProvider(AutoScalingGroupProvider&& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = std::move(value); }
68
70
89 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
92 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
93 inline CreateCapacityProviderRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
94 inline CreateCapacityProviderRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
95 inline CreateCapacityProviderRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
96 inline CreateCapacityProviderRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
98 private:
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 AutoScalingGroupProvider m_autoScalingGroupProvider;
104 bool m_autoScalingGroupProviderHasBeenSet = false;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_tagsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ECS
112} // namespace Aws
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