AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAutoScalingConfigurationRequest.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/AppRunnerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apprunner/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AppRunner
17{
18namespace 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_APPRUNNER_API Aws::String SerializePayload() const override;
35
37
38
40
61 inline const Aws::String& GetAutoScalingConfigurationName() const{ return m_autoScalingConfigurationName; }
62 inline bool AutoScalingConfigurationNameHasBeenSet() const { return m_autoScalingConfigurationNameHasBeenSet; }
63 inline void SetAutoScalingConfigurationName(const Aws::String& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = value; }
64 inline void SetAutoScalingConfigurationName(Aws::String&& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = std::move(value); }
65 inline void SetAutoScalingConfigurationName(const char* value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName.assign(value); }
70
72
77 inline int GetMaxConcurrency() const{ return m_maxConcurrency; }
78 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
79 inline void SetMaxConcurrency(int value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
82
84
94 inline int GetMinSize() const{ return m_minSize; }
95 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
96 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
97 inline CreateAutoScalingConfigurationRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
99
101
106 inline int GetMaxSize() const{ return m_maxSize; }
107 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
108 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
109 inline CreateAutoScalingConfigurationRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
111
113
117 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
121 inline CreateAutoScalingConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
122 inline CreateAutoScalingConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
123 inline CreateAutoScalingConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
124 inline CreateAutoScalingConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
126 private:
127
128 Aws::String m_autoScalingConfigurationName;
129 bool m_autoScalingConfigurationNameHasBeenSet = false;
130
131 int m_maxConcurrency;
132 bool m_maxConcurrencyHasBeenSet = false;
133
134 int m_minSize;
135 bool m_minSizeHasBeenSet = false;
136
137 int m_maxSize;
138 bool m_maxSizeHasBeenSet = false;
139
140 Aws::Vector<Tag> m_tags;
141 bool m_tagsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace AppRunner
146} // namespace Aws
CreateAutoScalingConfigurationRequest & WithAutoScalingConfigurationName(Aws::String &&value)
CreateAutoScalingConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateAutoScalingConfigurationRequest & WithAutoScalingConfigurationName(const char *value)
CreateAutoScalingConfigurationRequest & WithAutoScalingConfigurationName(const Aws::String &value)
CreateAutoScalingConfigurationRequest & AddTags(const Tag &value)
AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPRUNNER_API Aws::String SerializePayload() const override
CreateAutoScalingConfigurationRequest & WithTags(const Aws::Vector< Tag > &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