AWS SDK for C++  1.9.106
AWS SDK for C++
DescribeMetricCollectionTypesResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace AutoScaling
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<MetricCollectionType>& GetMetrics() const{ return m_metrics; }
42 
46  inline void SetMetrics(const Aws::Vector<MetricCollectionType>& value) { m_metrics = value; }
47 
51  inline void SetMetrics(Aws::Vector<MetricCollectionType>&& value) { m_metrics = std::move(value); }
52 
56  inline DescribeMetricCollectionTypesResult& WithMetrics(const Aws::Vector<MetricCollectionType>& value) { SetMetrics(value); return *this;}
57 
61  inline DescribeMetricCollectionTypesResult& WithMetrics(Aws::Vector<MetricCollectionType>&& value) { SetMetrics(std::move(value)); return *this;}
62 
66  inline DescribeMetricCollectionTypesResult& AddMetrics(const MetricCollectionType& value) { m_metrics.push_back(value); return *this; }
67 
71  inline DescribeMetricCollectionTypesResult& AddMetrics(MetricCollectionType&& value) { m_metrics.push_back(std::move(value)); return *this; }
72 
73 
77  inline const Aws::Vector<MetricGranularityType>& GetGranularities() const{ return m_granularities; }
78 
82  inline void SetGranularities(const Aws::Vector<MetricGranularityType>& value) { m_granularities = value; }
83 
87  inline void SetGranularities(Aws::Vector<MetricGranularityType>&& value) { m_granularities = std::move(value); }
88 
92  inline DescribeMetricCollectionTypesResult& WithGranularities(const Aws::Vector<MetricGranularityType>& value) { SetGranularities(value); return *this;}
93 
97  inline DescribeMetricCollectionTypesResult& WithGranularities(Aws::Vector<MetricGranularityType>&& value) { SetGranularities(std::move(value)); return *this;}
98 
102  inline DescribeMetricCollectionTypesResult& AddGranularities(const MetricGranularityType& value) { m_granularities.push_back(value); return *this; }
103 
107  inline DescribeMetricCollectionTypesResult& AddGranularities(MetricGranularityType&& value) { m_granularities.push_back(std::move(value)); return *this; }
108 
109 
110 
111  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
112 
113 
114  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
115 
116 
117  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
118 
119 
120  inline DescribeMetricCollectionTypesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
121 
122 
123  inline DescribeMetricCollectionTypesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
124 
125  private:
126 
128 
129  Aws::Vector<MetricGranularityType> m_granularities;
130 
131  ResponseMetadata m_responseMetadata;
132  };
133 
134 } // namespace Model
135 } // namespace AutoScaling
136 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::WithMetrics
DescribeMetricCollectionTypesResult & WithMetrics(const Aws::Vector< MetricCollectionType > &value)
Definition: DescribeMetricCollectionTypesResult.h:56
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::GetMetrics
const Aws::Vector< MetricCollectionType > & GetMetrics() const
Definition: DescribeMetricCollectionTypesResult.h:41
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeMetricCollectionTypesResult.h:117
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::DescribeMetricCollectionTypesResult
DescribeMetricCollectionTypesResult()
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::WithResponseMetadata
DescribeMetricCollectionTypesResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeMetricCollectionTypesResult.h:120
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::AddMetrics
DescribeMetricCollectionTypesResult & AddMetrics(MetricCollectionType &&value)
Definition: DescribeMetricCollectionTypesResult.h:71
Aws::AutoScaling::Model::MetricCollectionType
Definition: MetricCollectionType.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::AddMetrics
DescribeMetricCollectionTypesResult & AddMetrics(const MetricCollectionType &value)
Definition: DescribeMetricCollectionTypesResult.h:66
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::SetGranularities
void SetGranularities(Aws::Vector< MetricGranularityType > &&value)
Definition: DescribeMetricCollectionTypesResult.h:87
AWSVector.h
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::AddGranularities
DescribeMetricCollectionTypesResult & AddGranularities(const MetricGranularityType &value)
Definition: DescribeMetricCollectionTypesResult.h:102
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::WithMetrics
DescribeMetricCollectionTypesResult & WithMetrics(Aws::Vector< MetricCollectionType > &&value)
Definition: DescribeMetricCollectionTypesResult.h:61
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeMetricCollectionTypesResult.h:114
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::DescribeMetricCollectionTypesResult
DescribeMetricCollectionTypesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::SetGranularities
void SetGranularities(const Aws::Vector< MetricGranularityType > &value)
Definition: DescribeMetricCollectionTypesResult.h:82
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::AddGranularities
DescribeMetricCollectionTypesResult & AddGranularities(MetricGranularityType &&value)
Definition: DescribeMetricCollectionTypesResult.h:107
Aws::AutoScaling::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
MetricGranularityType.h
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::WithGranularities
DescribeMetricCollectionTypesResult & WithGranularities(const Aws::Vector< MetricGranularityType > &value)
Definition: DescribeMetricCollectionTypesResult.h:92
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::MetricGranularityType
Definition: MetricGranularityType.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult
Definition: DescribeMetricCollectionTypesResult.h:31
ResponseMetadata.h
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::WithGranularities
DescribeMetricCollectionTypesResult & WithGranularities(Aws::Vector< MetricGranularityType > &&value)
Definition: DescribeMetricCollectionTypesResult.h:97
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::operator=
DescribeMetricCollectionTypesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
MetricCollectionType.h
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::SetMetrics
void SetMetrics(Aws::Vector< MetricCollectionType > &&value)
Definition: DescribeMetricCollectionTypesResult.h:51
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::SetMetrics
void SetMetrics(const Aws::Vector< MetricCollectionType > &value)
Definition: DescribeMetricCollectionTypesResult.h:46
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::GetGranularities
const Aws::Vector< MetricGranularityType > & GetGranularities() const
Definition: DescribeMetricCollectionTypesResult.h:77
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeMetricCollectionTypesResult.h:111
Aws::AutoScaling::Model::DescribeMetricCollectionTypesResult::WithResponseMetadata
DescribeMetricCollectionTypesResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeMetricCollectionTypesResult.h:123