AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_APPRUNNER_API CreateAutoScalingConfigurationRequest() = default;
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 template<typename AutoScalingConfigurationNameT = Aws::String>
64 void SetAutoScalingConfigurationName(AutoScalingConfigurationNameT&& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = std::forward<AutoScalingConfigurationNameT>(value); }
65 template<typename AutoScalingConfigurationNameT = Aws::String>
66 CreateAutoScalingConfigurationRequest& WithAutoScalingConfigurationName(AutoScalingConfigurationNameT&& value) { SetAutoScalingConfigurationName(std::forward<AutoScalingConfigurationNameT>(value)); return *this;}
68
70
75 inline int GetMaxConcurrency() const { return m_maxConcurrency; }
76 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
77 inline void SetMaxConcurrency(int value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
80
82
92 inline int GetMinSize() const { return m_minSize; }
93 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
94 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
95 inline CreateAutoScalingConfigurationRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
97
99
104 inline int GetMaxSize() const { return m_maxSize; }
105 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
106 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
107 inline CreateAutoScalingConfigurationRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
109
111
115 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template<typename TagsT = Aws::Vector<Tag>>
118 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
119 template<typename TagsT = Aws::Vector<Tag>>
120 CreateAutoScalingConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
121 template<typename TagsT = Tag>
122 CreateAutoScalingConfigurationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
124 private:
125
126 Aws::String m_autoScalingConfigurationName;
127 bool m_autoScalingConfigurationNameHasBeenSet = false;
128
129 int m_maxConcurrency{0};
130 bool m_maxConcurrencyHasBeenSet = false;
131
132 int m_minSize{0};
133 bool m_minSizeHasBeenSet = false;
134
135 int m_maxSize{0};
136 bool m_maxSizeHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace AppRunner
144} // 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