AWS SDK for C++  1.9.160
AWS SDK for C++
PredictiveScalingPredefinedMetricPair.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace AutoScaling
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
51  inline const PredefinedMetricPairType& GetPredefinedMetricType() const{ return m_predefinedMetricType; }
52 
60  inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
61 
69  inline void SetPredefinedMetricType(const PredefinedMetricPairType& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
70 
78  inline void SetPredefinedMetricType(PredefinedMetricPairType&& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = std::move(value); }
79 
87  inline PredictiveScalingPredefinedMetricPair& WithPredefinedMetricType(const PredefinedMetricPairType& value) { SetPredefinedMetricType(value); return *this;}
88 
96  inline PredictiveScalingPredefinedMetricPair& WithPredefinedMetricType(PredefinedMetricPairType&& value) { SetPredefinedMetricType(std::move(value)); return *this;}
97 
98 
119  inline const Aws::String& GetResourceLabel() const{ return m_resourceLabel; }
120 
141  inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
142 
163  inline void SetResourceLabel(const Aws::String& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = value; }
164 
185  inline void SetResourceLabel(Aws::String&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::move(value); }
186 
207  inline void SetResourceLabel(const char* value) { m_resourceLabelHasBeenSet = true; m_resourceLabel.assign(value); }
208 
229  inline PredictiveScalingPredefinedMetricPair& WithResourceLabel(const Aws::String& value) { SetResourceLabel(value); return *this;}
230 
251  inline PredictiveScalingPredefinedMetricPair& WithResourceLabel(Aws::String&& value) { SetResourceLabel(std::move(value)); return *this;}
252 
273  inline PredictiveScalingPredefinedMetricPair& WithResourceLabel(const char* value) { SetResourceLabel(value); return *this;}
274 
275  private:
276 
277  PredefinedMetricPairType m_predefinedMetricType;
278  bool m_predefinedMetricTypeHasBeenSet;
279 
280  Aws::String m_resourceLabel;
281  bool m_resourceLabelHasBeenSet;
282  };
283 
284 } // namespace Model
285 } // namespace AutoScaling
286 } // namespace Aws
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::SetPredefinedMetricType
void SetPredefinedMetricType(const PredefinedMetricPairType &value)
Definition: PredictiveScalingPredefinedMetricPair.h:69
Aws::AutoScaling::Model::PredefinedMetricPairType
PredefinedMetricPairType
Definition: PredefinedMetricPairType.h:17
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::SetResourceLabel
void SetResourceLabel(Aws::String &&value)
Definition: PredictiveScalingPredefinedMetricPair.h:185
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::ResourceLabelHasBeenSet
bool ResourceLabelHasBeenSet() const
Definition: PredictiveScalingPredefinedMetricPair.h:141
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::operator=
PredictiveScalingPredefinedMetricPair & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::SetPredefinedMetricType
void SetPredefinedMetricType(PredefinedMetricPairType &&value)
Definition: PredictiveScalingPredefinedMetricPair.h:78
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::PredictiveScalingPredefinedMetricPair
PredictiveScalingPredefinedMetricPair(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::WithPredefinedMetricType
PredictiveScalingPredefinedMetricPair & WithPredefinedMetricType(const PredefinedMetricPairType &value)
Definition: PredictiveScalingPredefinedMetricPair.h:87
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::PredictiveScalingPredefinedMetricPair
PredictiveScalingPredefinedMetricPair()
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::WithResourceLabel
PredictiveScalingPredefinedMetricPair & WithResourceLabel(const Aws::String &value)
Definition: PredictiveScalingPredefinedMetricPair.h:229
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::SetResourceLabel
void SetResourceLabel(const char *value)
Definition: PredictiveScalingPredefinedMetricPair.h:207
AWSString.h
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::PredefinedMetricTypeHasBeenSet
bool PredefinedMetricTypeHasBeenSet() const
Definition: PredictiveScalingPredefinedMetricPair.h:60
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::SetResourceLabel
void SetResourceLabel(const Aws::String &value)
Definition: PredictiveScalingPredefinedMetricPair.h:163
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::WithPredefinedMetricType
PredictiveScalingPredefinedMetricPair & WithPredefinedMetricType(PredefinedMetricPairType &&value)
Definition: PredictiveScalingPredefinedMetricPair.h:96
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::WithResourceLabel
PredictiveScalingPredefinedMetricPair & WithResourceLabel(const char *value)
Definition: PredictiveScalingPredefinedMetricPair.h:273
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair
Definition: PredictiveScalingPredefinedMetricPair.h:34
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::GetResourceLabel
const Aws::String & GetResourceLabel() const
Definition: PredictiveScalingPredefinedMetricPair.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
PredefinedMetricPairType.h
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::WithResourceLabel
PredictiveScalingPredefinedMetricPair & WithResourceLabel(Aws::String &&value)
Definition: PredictiveScalingPredefinedMetricPair.h:251
Aws::AutoScaling::Model::PredictiveScalingPredefinedMetricPair::GetPredefinedMetricType
const PredefinedMetricPairType & GetPredefinedMetricType() const
Definition: PredictiveScalingPredefinedMetricPair.h:51