AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingConfiguration.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/apprunner/model/AutoScalingConfigurationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppRunner
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_APPRUNNER_API AutoScalingConfiguration();
46 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetAutoScalingConfigurationArn() const{ return m_autoScalingConfigurationArn; }
54 inline bool AutoScalingConfigurationArnHasBeenSet() const { return m_autoScalingConfigurationArnHasBeenSet; }
55 inline void SetAutoScalingConfigurationArn(const Aws::String& value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn = value; }
56 inline void SetAutoScalingConfigurationArn(Aws::String&& value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn = std::move(value); }
57 inline void SetAutoScalingConfigurationArn(const char* value) { m_autoScalingConfigurationArnHasBeenSet = true; m_autoScalingConfigurationArn.assign(value); }
62
64
68 inline const Aws::String& GetAutoScalingConfigurationName() const{ return m_autoScalingConfigurationName; }
69 inline bool AutoScalingConfigurationNameHasBeenSet() const { return m_autoScalingConfigurationNameHasBeenSet; }
70 inline void SetAutoScalingConfigurationName(const Aws::String& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = value; }
71 inline void SetAutoScalingConfigurationName(Aws::String&& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = std::move(value); }
72 inline void SetAutoScalingConfigurationName(const char* value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName.assign(value); }
77
79
84 inline int GetAutoScalingConfigurationRevision() const{ return m_autoScalingConfigurationRevision; }
85 inline bool AutoScalingConfigurationRevisionHasBeenSet() const { return m_autoScalingConfigurationRevisionHasBeenSet; }
86 inline void SetAutoScalingConfigurationRevision(int value) { m_autoScalingConfigurationRevisionHasBeenSet = true; m_autoScalingConfigurationRevision = value; }
89
91
97 inline bool GetLatest() const{ return m_latest; }
98 inline bool LatestHasBeenSet() const { return m_latestHasBeenSet; }
99 inline void SetLatest(bool value) { m_latestHasBeenSet = true; m_latest = value; }
100 inline AutoScalingConfiguration& WithLatest(bool value) { SetLatest(value); return *this;}
102
104
110 inline const AutoScalingConfigurationStatus& GetStatus() const{ return m_status; }
111 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
112 inline void SetStatus(const AutoScalingConfigurationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
113 inline void SetStatus(AutoScalingConfigurationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
115 inline AutoScalingConfiguration& WithStatus(AutoScalingConfigurationStatus&& value) { SetStatus(std::move(value)); return *this;}
117
119
124 inline int GetMaxConcurrency() const{ return m_maxConcurrency; }
125 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
126 inline void SetMaxConcurrency(int value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
127 inline AutoScalingConfiguration& WithMaxConcurrency(int value) { SetMaxConcurrency(value); return *this;}
129
131
141 inline int GetMinSize() const{ return m_minSize; }
142 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
143 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
144 inline AutoScalingConfiguration& WithMinSize(int value) { SetMinSize(value); return *this;}
146
148
152 inline int GetMaxSize() const{ return m_maxSize; }
153 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
154 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
155 inline AutoScalingConfiguration& WithMaxSize(int value) { SetMaxSize(value); return *this;}
157
159
163 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
164 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
165 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
166 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
167 inline AutoScalingConfiguration& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
168 inline AutoScalingConfiguration& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
170
172
176 inline const Aws::Utils::DateTime& GetDeletedAt() const{ return m_deletedAt; }
177 inline bool DeletedAtHasBeenSet() const { return m_deletedAtHasBeenSet; }
178 inline void SetDeletedAt(const Aws::Utils::DateTime& value) { m_deletedAtHasBeenSet = true; m_deletedAt = value; }
179 inline void SetDeletedAt(Aws::Utils::DateTime&& value) { m_deletedAtHasBeenSet = true; m_deletedAt = std::move(value); }
180 inline AutoScalingConfiguration& WithDeletedAt(const Aws::Utils::DateTime& value) { SetDeletedAt(value); return *this;}
181 inline AutoScalingConfiguration& WithDeletedAt(Aws::Utils::DateTime&& value) { SetDeletedAt(std::move(value)); return *this;}
183
185
191 inline bool GetHasAssociatedService() const{ return m_hasAssociatedService; }
192 inline bool HasAssociatedServiceHasBeenSet() const { return m_hasAssociatedServiceHasBeenSet; }
193 inline void SetHasAssociatedService(bool value) { m_hasAssociatedServiceHasBeenSet = true; m_hasAssociatedService = value; }
196
198
206 inline bool GetIsDefault() const{ return m_isDefault; }
207 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
208 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
209 inline AutoScalingConfiguration& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
211 private:
212
213 Aws::String m_autoScalingConfigurationArn;
214 bool m_autoScalingConfigurationArnHasBeenSet = false;
215
216 Aws::String m_autoScalingConfigurationName;
217 bool m_autoScalingConfigurationNameHasBeenSet = false;
218
219 int m_autoScalingConfigurationRevision;
220 bool m_autoScalingConfigurationRevisionHasBeenSet = false;
221
222 bool m_latest;
223 bool m_latestHasBeenSet = false;
224
226 bool m_statusHasBeenSet = false;
227
228 int m_maxConcurrency;
229 bool m_maxConcurrencyHasBeenSet = false;
230
231 int m_minSize;
232 bool m_minSizeHasBeenSet = false;
233
234 int m_maxSize;
235 bool m_maxSizeHasBeenSet = false;
236
237 Aws::Utils::DateTime m_createdAt;
238 bool m_createdAtHasBeenSet = false;
239
240 Aws::Utils::DateTime m_deletedAt;
241 bool m_deletedAtHasBeenSet = false;
242
243 bool m_hasAssociatedService;
244 bool m_hasAssociatedServiceHasBeenSet = false;
245
246 bool m_isDefault;
247 bool m_isDefaultHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace AppRunner
252} // namespace Aws
AutoScalingConfiguration & WithAutoScalingConfigurationArn(Aws::String &&value)
AutoScalingConfiguration & WithAutoScalingConfigurationArn(const char *value)
AutoScalingConfiguration & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetStatus(const AutoScalingConfigurationStatus &value)
void SetDeletedAt(const Aws::Utils::DateTime &value)
void SetAutoScalingConfigurationArn(const Aws::String &value)
const AutoScalingConfigurationStatus & GetStatus() const
AutoScalingConfiguration & WithCreatedAt(const Aws::Utils::DateTime &value)
AutoScalingConfiguration & WithAutoScalingConfigurationName(const char *value)
AutoScalingConfiguration & WithMinSize(int value)
AutoScalingConfiguration & WithMaxConcurrency(int value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AutoScalingConfiguration & WithAutoScalingConfigurationName(const Aws::String &value)
AutoScalingConfiguration & WithLatest(bool value)
void SetStatus(AutoScalingConfigurationStatus &&value)
AutoScalingConfiguration & WithHasAssociatedService(bool value)
AutoScalingConfiguration & WithAutoScalingConfigurationArn(const Aws::String &value)
AutoScalingConfiguration & WithMaxSize(int value)
AutoScalingConfiguration & WithStatus(AutoScalingConfigurationStatus &&value)
AutoScalingConfiguration & WithDeletedAt(Aws::Utils::DateTime &&value)
AutoScalingConfiguration & WithAutoScalingConfigurationRevision(int value)
AutoScalingConfiguration & WithStatus(const AutoScalingConfigurationStatus &value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPRUNNER_API AutoScalingConfiguration(Aws::Utils::Json::JsonView jsonValue)
AutoScalingConfiguration & WithDeletedAt(const Aws::Utils::DateTime &value)
void SetAutoScalingConfigurationName(const Aws::String &value)
AWS_APPRUNNER_API AutoScalingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingConfiguration & WithIsDefault(bool value)
AutoScalingConfiguration & WithAutoScalingConfigurationName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue