AWS SDK for C++  1.9.129
AWS SDK for C++
CreateAutoScalingConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace AppRunner
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateAutoScalingConfiguration"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
45  inline const Aws::String& GetAutoScalingConfigurationName() const{ return m_autoScalingConfigurationName; }
46 
53  inline bool AutoScalingConfigurationNameHasBeenSet() const { return m_autoScalingConfigurationNameHasBeenSet; }
54 
61  inline void SetAutoScalingConfigurationName(const Aws::String& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = value; }
62 
69  inline void SetAutoScalingConfigurationName(Aws::String&& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = std::move(value); }
70 
77  inline void SetAutoScalingConfigurationName(const char* value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName.assign(value); }
78 
85  inline CreateAutoScalingConfigurationRequest& WithAutoScalingConfigurationName(const Aws::String& value) { SetAutoScalingConfigurationName(value); return *this;}
86 
93  inline CreateAutoScalingConfigurationRequest& WithAutoScalingConfigurationName(Aws::String&& value) { SetAutoScalingConfigurationName(std::move(value)); return *this;}
94 
101  inline CreateAutoScalingConfigurationRequest& WithAutoScalingConfigurationName(const char* value) { SetAutoScalingConfigurationName(value); return *this;}
102 
103 
109  inline int GetMaxConcurrency() const{ return m_maxConcurrency; }
110 
116  inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
117 
123  inline void SetMaxConcurrency(int value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
124 
130  inline CreateAutoScalingConfigurationRequest& WithMaxConcurrency(int value) { SetMaxConcurrency(value); return *this;}
131 
132 
143  inline int GetMinSize() const{ return m_minSize; }
144 
155  inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
156 
167  inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
168 
179  inline CreateAutoScalingConfigurationRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
180 
181 
187  inline int GetMaxSize() const{ return m_maxSize; }
188 
194  inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
195 
201  inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
202 
208  inline CreateAutoScalingConfigurationRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
209 
210 
215  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
216 
221  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 
227  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
228 
233  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
234 
239  inline CreateAutoScalingConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
240 
245  inline CreateAutoScalingConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
246 
251  inline CreateAutoScalingConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
252 
257  inline CreateAutoScalingConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
258 
259  private:
260 
261  Aws::String m_autoScalingConfigurationName;
262  bool m_autoScalingConfigurationNameHasBeenSet;
263 
264  int m_maxConcurrency;
265  bool m_maxConcurrencyHasBeenSet;
266 
267  int m_minSize;
268  bool m_minSizeHasBeenSet;
269 
270  int m_maxSize;
271  bool m_maxSizeHasBeenSet;
272 
273  Aws::Vector<Tag> m_tags;
274  bool m_tagsHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace AppRunner
279 } // namespace Aws
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::AddTags
CreateAutoScalingConfigurationRequest & AddTags(Tag &&value)
Definition: CreateAutoScalingConfigurationRequest.h:257
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::MinSizeHasBeenSet
bool MinSizeHasBeenSet() const
Definition: CreateAutoScalingConfigurationRequest.h:155
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::WithAutoScalingConfigurationName
CreateAutoScalingConfigurationRequest & WithAutoScalingConfigurationName(Aws::String &&value)
Definition: CreateAutoScalingConfigurationRequest.h:93
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SetMaxSize
void SetMaxSize(int value)
Definition: CreateAutoScalingConfigurationRequest.h:201
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::WithAutoScalingConfigurationName
CreateAutoScalingConfigurationRequest & WithAutoScalingConfigurationName(const Aws::String &value)
Definition: CreateAutoScalingConfigurationRequest.h:85
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::WithAutoScalingConfigurationName
CreateAutoScalingConfigurationRequest & WithAutoScalingConfigurationName(const char *value)
Definition: CreateAutoScalingConfigurationRequest.h:101
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppRunner::AppRunnerRequest
Definition: AppRunnerRequest.h:17
AWSVector.h
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SetAutoScalingConfigurationName
void SetAutoScalingConfigurationName(const Aws::String &value)
Definition: CreateAutoScalingConfigurationRequest.h:61
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::WithMaxSize
CreateAutoScalingConfigurationRequest & WithMaxSize(int value)
Definition: CreateAutoScalingConfigurationRequest.h:208
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::MaxSizeHasBeenSet
bool MaxSizeHasBeenSet() const
Definition: CreateAutoScalingConfigurationRequest.h:194
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SetAutoScalingConfigurationName
void SetAutoScalingConfigurationName(const char *value)
Definition: CreateAutoScalingConfigurationRequest.h:77
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateAutoScalingConfigurationRequest.h:221
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::CreateAutoScalingConfigurationRequest
CreateAutoScalingConfigurationRequest()
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest
Definition: CreateAutoScalingConfigurationRequest.h:24
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateAutoScalingConfigurationRequest.h:215
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::WithMaxConcurrency
CreateAutoScalingConfigurationRequest & WithMaxConcurrency(int value)
Definition: CreateAutoScalingConfigurationRequest.h:130
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::WithMinSize
CreateAutoScalingConfigurationRequest & WithMinSize(int value)
Definition: CreateAutoScalingConfigurationRequest.h:179
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::MaxConcurrencyHasBeenSet
bool MaxConcurrencyHasBeenSet() const
Definition: CreateAutoScalingConfigurationRequest.h:116
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateAutoScalingConfigurationRequest.h:233
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::WithTags
CreateAutoScalingConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateAutoScalingConfigurationRequest.h:245
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::GetAutoScalingConfigurationName
const Aws::String & GetAutoScalingConfigurationName() const
Definition: CreateAutoScalingConfigurationRequest.h:45
AppRunner_EXPORTS.h
AWSString.h
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SetMaxConcurrency
void SetMaxConcurrency(int value)
Definition: CreateAutoScalingConfigurationRequest.h:123
Aws::AppRunner::Model::Tag
Definition: Tag.h:33
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::WithTags
CreateAutoScalingConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateAutoScalingConfigurationRequest.h:239
Tag.h
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateAutoScalingConfigurationRequest.h:227
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAutoScalingConfigurationRequest.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::GetMaxConcurrency
int GetMaxConcurrency() const
Definition: CreateAutoScalingConfigurationRequest.h:109
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::AddTags
CreateAutoScalingConfigurationRequest & AddTags(const Tag &value)
Definition: CreateAutoScalingConfigurationRequest.h:251
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SetMinSize
void SetMinSize(int value)
Definition: CreateAutoScalingConfigurationRequest.h:167
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::AutoScalingConfigurationNameHasBeenSet
bool AutoScalingConfigurationNameHasBeenSet() const
Definition: CreateAutoScalingConfigurationRequest.h:53
AWS_APPRUNNER_API
#define AWS_APPRUNNER_API
Definition: AppRunner_EXPORTS.h:28
AppRunnerRequest.h
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::GetMinSize
int GetMinSize() const
Definition: CreateAutoScalingConfigurationRequest.h:143
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::GetMaxSize
int GetMaxSize() const
Definition: CreateAutoScalingConfigurationRequest.h:187
Aws::AppRunner::Model::CreateAutoScalingConfigurationRequest::SetAutoScalingConfigurationName
void SetAutoScalingConfigurationName(Aws::String &&value)
Definition: CreateAutoScalingConfigurationRequest.h:69