AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateAutoScalingConfigurationRequest.h
1
6#pragma once
7#include <aws/apprunner/AppRunnerRequest.h>
8#include <aws/apprunner/AppRunner_EXPORTS.h>
9#include <aws/apprunner/model/Tag.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppRunner {
17namespace Model {
18
22 public:
23 AWS_APPRUNNER_API CreateAutoScalingConfigurationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateAutoScalingConfiguration"; }
30
31 AWS_APPRUNNER_API Aws::String SerializePayload() const override;
32
34
36
57 inline const Aws::String& GetAutoScalingConfigurationName() const { return m_autoScalingConfigurationName; }
58 inline bool AutoScalingConfigurationNameHasBeenSet() const { return m_autoScalingConfigurationNameHasBeenSet; }
59 template <typename AutoScalingConfigurationNameT = Aws::String>
60 void SetAutoScalingConfigurationName(AutoScalingConfigurationNameT&& value) {
61 m_autoScalingConfigurationNameHasBeenSet = true;
62 m_autoScalingConfigurationName = std::forward<AutoScalingConfigurationNameT>(value);
63 }
64 template <typename AutoScalingConfigurationNameT = Aws::String>
66 SetAutoScalingConfigurationName(std::forward<AutoScalingConfigurationNameT>(value));
67 return *this;
68 }
70
72
77 inline int GetMaxConcurrency() const { return m_maxConcurrency; }
78 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
79 inline void SetMaxConcurrency(int value) {
80 m_maxConcurrencyHasBeenSet = true;
81 m_maxConcurrency = value;
82 }
84 SetMaxConcurrency(value);
85 return *this;
86 }
88
90
100 inline int GetMinSize() const { return m_minSize; }
101 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
102 inline void SetMinSize(int value) {
103 m_minSizeHasBeenSet = true;
104 m_minSize = value;
105 }
107 SetMinSize(value);
108 return *this;
109 }
111
113
118 inline int GetMaxSize() const { return m_maxSize; }
119 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
120 inline void SetMaxSize(int value) {
121 m_maxSizeHasBeenSet = true;
122 m_maxSize = value;
123 }
125 SetMaxSize(value);
126 return *this;
127 }
129
131
135 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 template <typename TagsT = Aws::Vector<Tag>>
138 void SetTags(TagsT&& value) {
139 m_tagsHasBeenSet = true;
140 m_tags = std::forward<TagsT>(value);
141 }
142 template <typename TagsT = Aws::Vector<Tag>>
144 SetTags(std::forward<TagsT>(value));
145 return *this;
146 }
147 template <typename TagsT = Tag>
149 m_tagsHasBeenSet = true;
150 m_tags.emplace_back(std::forward<TagsT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_autoScalingConfigurationName;
156
157 int m_maxConcurrency{0};
158
159 int m_minSize{0};
160
161 int m_maxSize{0};
162
163 Aws::Vector<Tag> m_tags;
164 bool m_autoScalingConfigurationNameHasBeenSet = false;
165 bool m_maxConcurrencyHasBeenSet = false;
166 bool m_minSizeHasBeenSet = false;
167 bool m_maxSizeHasBeenSet = false;
168 bool m_tagsHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace AppRunner
173} // namespace Aws
CreateAutoScalingConfigurationRequest & WithAutoScalingConfigurationName(AutoScalingConfigurationNameT &&value)
AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPRUNNER_API Aws::String SerializePayload() const override
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