AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_ECS_API CreateCapacityProviderRequest() = default;
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 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateCapacityProviderRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const AutoScalingGroupProvider& GetAutoScalingGroupProvider() const { return m_autoScalingGroupProvider; }
60 inline bool AutoScalingGroupProviderHasBeenSet() const { return m_autoScalingGroupProviderHasBeenSet; }
61 template<typename AutoScalingGroupProviderT = AutoScalingGroupProvider>
62 void SetAutoScalingGroupProvider(AutoScalingGroupProviderT&& value) { m_autoScalingGroupProviderHasBeenSet = true; m_autoScalingGroupProvider = std::forward<AutoScalingGroupProviderT>(value); }
63 template<typename AutoScalingGroupProviderT = AutoScalingGroupProvider>
64 CreateCapacityProviderRequest& WithAutoScalingGroupProvider(AutoScalingGroupProviderT&& value) { SetAutoScalingGroupProvider(std::forward<AutoScalingGroupProviderT>(value)); return *this;}
66
68
87 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template<typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Vector<Tag>>
92 CreateCapacityProviderRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = Tag>
94 CreateCapacityProviderRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 AutoScalingGroupProvider m_autoScalingGroupProvider;
102 bool m_autoScalingGroupProviderHasBeenSet = false;
103
104 Aws::Vector<Tag> m_tags;
105 bool m_tagsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace ECS
110} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::String SerializePayload() const override
CreateCapacityProviderRequest & WithName(NameT &&value)
CreateCapacityProviderRequest & AddTags(TagsT &&value)
CreateCapacityProviderRequest & WithAutoScalingGroupProvider(AutoScalingGroupProviderT &&value)
CreateCapacityProviderRequest & WithTags(TagsT &&value)
const AutoScalingGroupProvider & GetAutoScalingGroupProvider() const
void SetAutoScalingGroupProvider(AutoScalingGroupProviderT &&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