AWS SDK for C++  1.9.109
AWS SDK for C++
PredefinedMetricSpecification.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 
54  inline const MetricType& GetPredefinedMetricType() const{ return m_predefinedMetricType; }
55 
66  inline bool PredefinedMetricTypeHasBeenSet() const { return m_predefinedMetricTypeHasBeenSet; }
67 
78  inline void SetPredefinedMetricType(const MetricType& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = value; }
79 
90  inline void SetPredefinedMetricType(MetricType&& value) { m_predefinedMetricTypeHasBeenSet = true; m_predefinedMetricType = std::move(value); }
91 
102  inline PredefinedMetricSpecification& WithPredefinedMetricType(const MetricType& value) { SetPredefinedMetricType(value); return *this;}
103 
114  inline PredefinedMetricSpecification& WithPredefinedMetricType(MetricType&& value) { SetPredefinedMetricType(std::move(value)); return *this;}
115 
116 
137  inline const Aws::String& GetResourceLabel() const{ return m_resourceLabel; }
138 
159  inline bool ResourceLabelHasBeenSet() const { return m_resourceLabelHasBeenSet; }
160 
181  inline void SetResourceLabel(const Aws::String& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = value; }
182 
203  inline void SetResourceLabel(Aws::String&& value) { m_resourceLabelHasBeenSet = true; m_resourceLabel = std::move(value); }
204 
225  inline void SetResourceLabel(const char* value) { m_resourceLabelHasBeenSet = true; m_resourceLabel.assign(value); }
226 
247  inline PredefinedMetricSpecification& WithResourceLabel(const Aws::String& value) { SetResourceLabel(value); return *this;}
248 
269  inline PredefinedMetricSpecification& WithResourceLabel(Aws::String&& value) { SetResourceLabel(std::move(value)); return *this;}
270 
291  inline PredefinedMetricSpecification& WithResourceLabel(const char* value) { SetResourceLabel(value); return *this;}
292 
293  private:
294 
295  MetricType m_predefinedMetricType;
296  bool m_predefinedMetricTypeHasBeenSet;
297 
298  Aws::String m_resourceLabel;
299  bool m_resourceLabelHasBeenSet;
300  };
301 
302 } // namespace Model
303 } // namespace AutoScaling
304 } // namespace Aws
Aws::AutoScaling::Model::PredefinedMetricSpecification::SetPredefinedMetricType
void SetPredefinedMetricType(MetricType &&value)
Definition: PredefinedMetricSpecification.h:90
Aws::AutoScaling::Model::PredefinedMetricSpecification::PredefinedMetricSpecification
PredefinedMetricSpecification()
Aws::AutoScaling::Model::PredefinedMetricSpecification::PredefinedMetricTypeHasBeenSet
bool PredefinedMetricTypeHasBeenSet() const
Definition: PredefinedMetricSpecification.h:66
Aws::AutoScaling::Model::PredefinedMetricSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::PredefinedMetricSpecification::WithPredefinedMetricType
PredefinedMetricSpecification & WithPredefinedMetricType(const MetricType &value)
Definition: PredefinedMetricSpecification.h:102
Aws::AutoScaling::Model::PredefinedMetricSpecification::SetResourceLabel
void SetResourceLabel(const char *value)
Definition: PredefinedMetricSpecification.h:225
Aws::AutoScaling::Model::PredefinedMetricSpecification::SetResourceLabel
void SetResourceLabel(Aws::String &&value)
Definition: PredefinedMetricSpecification.h:203
Aws::AutoScaling::Model::PredefinedMetricSpecification::WithResourceLabel
PredefinedMetricSpecification & WithResourceLabel(const Aws::String &value)
Definition: PredefinedMetricSpecification.h:247
AWSStreamFwd.h
Aws::AutoScaling::Model::PredefinedMetricSpecification::WithPredefinedMetricType
PredefinedMetricSpecification & WithPredefinedMetricType(MetricType &&value)
Definition: PredefinedMetricSpecification.h:114
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::PredefinedMetricSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::PredefinedMetricSpecification::ResourceLabelHasBeenSet
bool ResourceLabelHasBeenSet() const
Definition: PredefinedMetricSpecification.h:159
MetricType.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::PredefinedMetricSpecification::GetResourceLabel
const Aws::String & GetResourceLabel() const
Definition: PredefinedMetricSpecification.h:137
Aws::AutoScaling::Model::PredefinedMetricSpecification
Definition: PredefinedMetricSpecification.h:34
Aws::AutoScaling::Model::PredefinedMetricSpecification::PredefinedMetricSpecification
PredefinedMetricSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::AutoScaling::Model::PredefinedMetricSpecification::GetPredefinedMetricType
const MetricType & GetPredefinedMetricType() const
Definition: PredefinedMetricSpecification.h:54
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::MetricType
MetricType
Definition: MetricType.h:17
Aws::AutoScaling::Model::PredefinedMetricSpecification::SetResourceLabel
void SetResourceLabel(const Aws::String &value)
Definition: PredefinedMetricSpecification.h:181
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::PredefinedMetricSpecification::SetPredefinedMetricType
void SetPredefinedMetricType(const MetricType &value)
Definition: PredefinedMetricSpecification.h:78
Aws::AutoScaling::Model::PredefinedMetricSpecification::operator=
PredefinedMetricSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::PredefinedMetricSpecification::WithResourceLabel
PredefinedMetricSpecification & WithResourceLabel(const char *value)
Definition: PredefinedMetricSpecification.h:291
Aws::AutoScaling::Model::PredefinedMetricSpecification::WithResourceLabel
PredefinedMetricSpecification & WithResourceLabel(Aws::String &&value)
Definition: PredefinedMetricSpecification.h:269