AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingPlanResource.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/ServiceNamespace.h>
10#include <aws/autoscaling-plans/model/ScalableDimension.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/autoscaling-plans/model/ScalingStatusCode.h>
13#include <aws/autoscaling-plans/model/ScalingPolicy.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 ScalingPlanResource();
40 AWS_AUTOSCALINGPLANS_API ScalingPlanResource(Aws::Utils::Json::JsonView jsonValue);
41 AWS_AUTOSCALINGPLANS_API ScalingPlanResource& 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 ScalingPlanResource& WithScalingPlanName(const Aws::String& value) { SetScalingPlanName(value); return *this;}
55 inline ScalingPlanResource& WithScalingPlanName(Aws::String&& value) { SetScalingPlanName(std::move(value)); return *this;}
56 inline ScalingPlanResource& 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 ScalingPlanResource& WithScalingPlanVersion(long long value) { SetScalingPlanVersion(value); return *this;}
68
70
73 inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
74 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
75 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
76 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
78 inline ScalingPlanResource& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(std::move(value)); return *this;}
80
82
101 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
102 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
103 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
104 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
105 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
106 inline ScalingPlanResource& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
107 inline ScalingPlanResource& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
108 inline ScalingPlanResource& WithResourceId(const char* value) { SetResourceId(value); return *this;}
110
112
131 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
132 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
133 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
134 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
136 inline ScalingPlanResource& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<ScalingPolicy>& GetScalingPolicies() const{ return m_scalingPolicies; }
144 inline bool ScalingPoliciesHasBeenSet() const { return m_scalingPoliciesHasBeenSet; }
145 inline void SetScalingPolicies(const Aws::Vector<ScalingPolicy>& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies = value; }
146 inline void SetScalingPolicies(Aws::Vector<ScalingPolicy>&& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies = std::move(value); }
149 inline ScalingPlanResource& AddScalingPolicies(const ScalingPolicy& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies.push_back(value); return *this; }
150 inline ScalingPlanResource& AddScalingPolicies(ScalingPolicy&& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies.push_back(std::move(value)); return *this; }
152
154
164 inline const ScalingStatusCode& GetScalingStatusCode() const{ return m_scalingStatusCode; }
165 inline bool ScalingStatusCodeHasBeenSet() const { return m_scalingStatusCodeHasBeenSet; }
166 inline void SetScalingStatusCode(const ScalingStatusCode& value) { m_scalingStatusCodeHasBeenSet = true; m_scalingStatusCode = value; }
167 inline void SetScalingStatusCode(ScalingStatusCode&& value) { m_scalingStatusCodeHasBeenSet = true; m_scalingStatusCode = std::move(value); }
169 inline ScalingPlanResource& WithScalingStatusCode(ScalingStatusCode&& value) { SetScalingStatusCode(std::move(value)); return *this;}
171
173
176 inline const Aws::String& GetScalingStatusMessage() const{ return m_scalingStatusMessage; }
177 inline bool ScalingStatusMessageHasBeenSet() const { return m_scalingStatusMessageHasBeenSet; }
178 inline void SetScalingStatusMessage(const Aws::String& value) { m_scalingStatusMessageHasBeenSet = true; m_scalingStatusMessage = value; }
179 inline void SetScalingStatusMessage(Aws::String&& value) { m_scalingStatusMessageHasBeenSet = true; m_scalingStatusMessage = std::move(value); }
180 inline void SetScalingStatusMessage(const char* value) { m_scalingStatusMessageHasBeenSet = true; m_scalingStatusMessage.assign(value); }
182 inline ScalingPlanResource& WithScalingStatusMessage(Aws::String&& value) { SetScalingStatusMessage(std::move(value)); return *this;}
183 inline ScalingPlanResource& WithScalingStatusMessage(const char* value) { SetScalingStatusMessage(value); return *this;}
185 private:
186
187 Aws::String m_scalingPlanName;
188 bool m_scalingPlanNameHasBeenSet = false;
189
190 long long m_scalingPlanVersion;
191 bool m_scalingPlanVersionHasBeenSet = false;
192
193 ServiceNamespace m_serviceNamespace;
194 bool m_serviceNamespaceHasBeenSet = false;
195
196 Aws::String m_resourceId;
197 bool m_resourceIdHasBeenSet = false;
198
199 ScalableDimension m_scalableDimension;
200 bool m_scalableDimensionHasBeenSet = false;
201
202 Aws::Vector<ScalingPolicy> m_scalingPolicies;
203 bool m_scalingPoliciesHasBeenSet = false;
204
205 ScalingStatusCode m_scalingStatusCode;
206 bool m_scalingStatusCodeHasBeenSet = false;
207
208 Aws::String m_scalingStatusMessage;
209 bool m_scalingStatusMessageHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace AutoScalingPlans
214} // namespace Aws
const ScalingStatusCode & GetScalingStatusCode() const
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
ScalingPlanResource & WithScalingPlanName(Aws::String &&value)
ScalingPlanResource & WithResourceId(const char *value)
ScalingPlanResource & WithScalingPlanVersion(long long value)
ScalingPlanResource & WithServiceNamespace(ServiceNamespace &&value)
ScalingPlanResource & WithScalingStatusCode(ScalingStatusCode &&value)
ScalingPlanResource & WithScalingStatusMessage(const char *value)
ScalingPlanResource & WithScalableDimension(ScalableDimension &&value)
void SetScalingStatusCode(const ScalingStatusCode &value)
ScalingPlanResource & WithResourceId(const Aws::String &value)
ScalingPlanResource & WithResourceId(Aws::String &&value)
AWS_AUTOSCALINGPLANS_API ScalingPlanResource & operator=(Aws::Utils::Json::JsonView jsonValue)
ScalingPlanResource & WithScalingStatusMessage(Aws::String &&value)
void SetServiceNamespace(const ServiceNamespace &value)
ScalingPlanResource & AddScalingPolicies(ScalingPolicy &&value)
const ScalableDimension & GetScalableDimension() const
ScalingPlanResource & WithScalingPolicies(const Aws::Vector< ScalingPolicy > &value)
ScalingPlanResource & WithScalingPlanName(const char *value)
ScalingPlanResource & WithScalingStatusMessage(const Aws::String &value)
ScalingPlanResource & AddScalingPolicies(const ScalingPolicy &value)
const ServiceNamespace & GetServiceNamespace() const
ScalingPlanResource & WithScalableDimension(const ScalableDimension &value)
void SetScalingPolicies(Aws::Vector< ScalingPolicy > &&value)
void SetScalingPolicies(const Aws::Vector< ScalingPolicy > &value)
ScalingPlanResource & WithScalingPlanName(const Aws::String &value)
ScalingPlanResource & WithServiceNamespace(const ServiceNamespace &value)
const Aws::Vector< ScalingPolicy > & GetScalingPolicies() const
void SetScalableDimension(const ScalableDimension &value)
AWS_AUTOSCALINGPLANS_API ScalingPlanResource(Aws::Utils::Json::JsonView jsonValue)
ScalingPlanResource & WithScalingPolicies(Aws::Vector< ScalingPolicy > &&value)
ScalingPlanResource & WithScalingStatusCode(const ScalingStatusCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue