AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingPlan.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/autoscaling-plans/model/ApplicationSource.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/autoscaling-plans/model/ScalingPlanStatusCode.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/autoscaling-plans/model/ScalingInstruction.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AutoScalingPlans
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_AUTOSCALINGPLANS_API ScalingPlan();
40 AWS_AUTOSCALINGPLANS_API ScalingPlan(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AUTOSCALINGPLANS_API ScalingPlan& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetScalingPlanName() const{ return m_scalingPlanName; }
50 inline bool ScalingPlanNameHasBeenSet() const { return m_scalingPlanNameHasBeenSet; }
51 inline void SetScalingPlanName(const Aws::String& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = value; }
52 inline void SetScalingPlanName(Aws::String&& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = std::move(value); }
53 inline void SetScalingPlanName(const char* value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName.assign(value); }
54 inline ScalingPlan& WithScalingPlanName(const Aws::String& value) { SetScalingPlanName(value); return *this;}
55 inline ScalingPlan& WithScalingPlanName(Aws::String&& value) { SetScalingPlanName(std::move(value)); return *this;}
56 inline ScalingPlan& WithScalingPlanName(const char* value) { SetScalingPlanName(value); return *this;}
58
60
63 inline long long GetScalingPlanVersion() const{ return m_scalingPlanVersion; }
64 inline bool ScalingPlanVersionHasBeenSet() const { return m_scalingPlanVersionHasBeenSet; }
65 inline void SetScalingPlanVersion(long long value) { m_scalingPlanVersionHasBeenSet = true; m_scalingPlanVersion = value; }
66 inline ScalingPlan& WithScalingPlanVersion(long long value) { SetScalingPlanVersion(value); return *this;}
68
70
74 inline const ApplicationSource& GetApplicationSource() const{ return m_applicationSource; }
75 inline bool ApplicationSourceHasBeenSet() const { return m_applicationSourceHasBeenSet; }
76 inline void SetApplicationSource(const ApplicationSource& value) { m_applicationSourceHasBeenSet = true; m_applicationSource = value; }
77 inline void SetApplicationSource(ApplicationSource&& value) { m_applicationSourceHasBeenSet = true; m_applicationSource = std::move(value); }
78 inline ScalingPlan& WithApplicationSource(const ApplicationSource& value) { SetApplicationSource(value); return *this;}
79 inline ScalingPlan& WithApplicationSource(ApplicationSource&& value) { SetApplicationSource(std::move(value)); return *this;}
81
83
86 inline const Aws::Vector<ScalingInstruction>& GetScalingInstructions() const{ return m_scalingInstructions; }
87 inline bool ScalingInstructionsHasBeenSet() const { return m_scalingInstructionsHasBeenSet; }
88 inline void SetScalingInstructions(const Aws::Vector<ScalingInstruction>& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions = value; }
89 inline void SetScalingInstructions(Aws::Vector<ScalingInstruction>&& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions = std::move(value); }
92 inline ScalingPlan& AddScalingInstructions(const ScalingInstruction& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions.push_back(value); return *this; }
93 inline ScalingPlan& AddScalingInstructions(ScalingInstruction&& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions.push_back(std::move(value)); return *this; }
95
97
110 inline const ScalingPlanStatusCode& GetStatusCode() const{ return m_statusCode; }
111 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
112 inline void SetStatusCode(const ScalingPlanStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
113 inline void SetStatusCode(ScalingPlanStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
114 inline ScalingPlan& WithStatusCode(const ScalingPlanStatusCode& value) { SetStatusCode(value); return *this;}
115 inline ScalingPlan& WithStatusCode(ScalingPlanStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
117
119
122 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
123 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
124 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
125 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
126 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
127 inline ScalingPlan& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
128 inline ScalingPlan& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
129 inline ScalingPlan& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetStatusStartTime() const{ return m_statusStartTime; }
137 inline bool StatusStartTimeHasBeenSet() const { return m_statusStartTimeHasBeenSet; }
138 inline void SetStatusStartTime(const Aws::Utils::DateTime& value) { m_statusStartTimeHasBeenSet = true; m_statusStartTime = value; }
139 inline void SetStatusStartTime(Aws::Utils::DateTime&& value) { m_statusStartTimeHasBeenSet = true; m_statusStartTime = std::move(value); }
140 inline ScalingPlan& WithStatusStartTime(const Aws::Utils::DateTime& value) { SetStatusStartTime(value); return *this;}
141 inline ScalingPlan& WithStatusStartTime(Aws::Utils::DateTime&& value) { SetStatusStartTime(std::move(value)); return *this;}
143
145
148 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
149 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
150 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
151 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
152 inline ScalingPlan& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
153 inline ScalingPlan& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
155 private:
156
157 Aws::String m_scalingPlanName;
158 bool m_scalingPlanNameHasBeenSet = false;
159
160 long long m_scalingPlanVersion;
161 bool m_scalingPlanVersionHasBeenSet = false;
162
163 ApplicationSource m_applicationSource;
164 bool m_applicationSourceHasBeenSet = false;
165
166 Aws::Vector<ScalingInstruction> m_scalingInstructions;
167 bool m_scalingInstructionsHasBeenSet = false;
168
169 ScalingPlanStatusCode m_statusCode;
170 bool m_statusCodeHasBeenSet = false;
171
172 Aws::String m_statusMessage;
173 bool m_statusMessageHasBeenSet = false;
174
175 Aws::Utils::DateTime m_statusStartTime;
176 bool m_statusStartTimeHasBeenSet = false;
177
178 Aws::Utils::DateTime m_creationTime;
179 bool m_creationTimeHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace AutoScalingPlans
184} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
void SetApplicationSource(ApplicationSource &&value)
Definition ScalingPlan.h:77
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
ScalingPlan & AddScalingInstructions(ScalingInstruction &&value)
Definition ScalingPlan.h:93
void SetScalingPlanName(Aws::String &&value)
Definition ScalingPlan.h:52
const Aws::String & GetStatusMessage() const
ScalingPlan & WithScalingInstructions(Aws::Vector< ScalingInstruction > &&value)
Definition ScalingPlan.h:91
ScalingPlan & WithStatusMessage(const Aws::String &value)
ScalingPlan & WithScalingInstructions(const Aws::Vector< ScalingInstruction > &value)
Definition ScalingPlan.h:90
ScalingPlan & WithStatusCode(ScalingPlanStatusCode &&value)
AWS_AUTOSCALINGPLANS_API ScalingPlan & operator=(Aws::Utils::Json::JsonView jsonValue)
const ApplicationSource & GetApplicationSource() const
Definition ScalingPlan.h:74
ScalingPlan & WithScalingPlanName(const char *value)
Definition ScalingPlan.h:56
ScalingPlan & WithStatusMessage(Aws::String &&value)
ScalingPlan & WithStatusMessage(const char *value)
void SetStatusMessage(const Aws::String &value)
void SetScalingPlanVersion(long long value)
Definition ScalingPlan.h:65
ScalingPlan & WithScalingPlanName(Aws::String &&value)
Definition ScalingPlan.h:55
const Aws::Utils::DateTime & GetStatusStartTime() const
ScalingPlan & WithStatusStartTime(const Aws::Utils::DateTime &value)
AWS_AUTOSCALINGPLANS_API ScalingPlan()
void SetStatusStartTime(Aws::Utils::DateTime &&value)
void SetStatusMessage(Aws::String &&value)
void SetStatusCode(ScalingPlanStatusCode &&value)
AWS_AUTOSCALINGPLANS_API ScalingPlan(Aws::Utils::Json::JsonView jsonValue)
void SetScalingPlanName(const Aws::String &value)
Definition ScalingPlan.h:51
ScalingPlan & WithApplicationSource(ApplicationSource &&value)
Definition ScalingPlan.h:79
const Aws::Vector< ScalingInstruction > & GetScalingInstructions() const
Definition ScalingPlan.h:86
void SetScalingPlanName(const char *value)
Definition ScalingPlan.h:53
const Aws::String & GetScalingPlanName() const
Definition ScalingPlan.h:49
ScalingPlan & WithScalingPlanVersion(long long value)
Definition ScalingPlan.h:66
void SetScalingInstructions(const Aws::Vector< ScalingInstruction > &value)
Definition ScalingPlan.h:88
ScalingPlan & WithStatusStartTime(Aws::Utils::DateTime &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetApplicationSource(const ApplicationSource &value)
Definition ScalingPlan.h:76
ScalingPlan & AddScalingInstructions(const ScalingInstruction &value)
Definition ScalingPlan.h:92
ScalingPlan & WithScalingPlanName(const Aws::String &value)
Definition ScalingPlan.h:54
void SetStatusCode(const ScalingPlanStatusCode &value)
ScalingPlan & WithStatusCode(const ScalingPlanStatusCode &value)
void SetStatusStartTime(const Aws::Utils::DateTime &value)
ScalingPlan & WithCreationTime(Aws::Utils::DateTime &&value)
void SetScalingInstructions(Aws::Vector< ScalingInstruction > &&value)
Definition ScalingPlan.h:89
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetStatusMessage(const char *value)
ScalingPlan & WithCreationTime(const Aws::Utils::DateTime &value)
const ScalingPlanStatusCode & GetStatusCode() const
ScalingPlan & WithApplicationSource(const ApplicationSource &value)
Definition ScalingPlan.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue