AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
ResourceMetricsConfiguration.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/monitoring/CloudWatch_EXPORTS.h>
12#include <aws/monitoring/model/ResourceMetricSelection.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace CloudWatch {
23namespace Model {
24
41 public:
42 AWS_CLOUDWATCH_API ResourceMetricsConfiguration() = default;
43 AWS_CLOUDWATCH_API ResourceMetricsConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
44 AWS_CLOUDWATCH_API ResourceMetricsConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
45 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
46
48
52 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
53 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
54 template <typename ResourceArnT = Aws::String>
55 void SetResourceArn(ResourceArnT&& value) {
56 m_resourceArnHasBeenSet = true;
57 m_resourceArn = std::forward<ResourceArnT>(value);
58 }
59 template <typename ResourceArnT = Aws::String>
61 SetResourceArn(std::forward<ResourceArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
71 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
72 template <typename CreatedAtT = Aws::Utils::DateTime>
73 void SetCreatedAt(CreatedAtT&& value) {
74 m_createdAtHasBeenSet = true;
75 m_createdAt = std::forward<CreatedAtT>(value);
76 }
77 template <typename CreatedAtT = Aws::Utils::DateTime>
79 SetCreatedAt(std::forward<CreatedAtT>(value));
80 return *this;
81 }
83
85
90 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
91 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
92 template <typename UpdatedAtT = Aws::Utils::DateTime>
93 void SetUpdatedAt(UpdatedAtT&& value) {
94 m_updatedAtHasBeenSet = true;
95 m_updatedAt = std::forward<UpdatedAtT>(value);
96 }
97 template <typename UpdatedAtT = Aws::Utils::DateTime>
99 SetUpdatedAt(std::forward<UpdatedAtT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::Vector<ResourceMetricSelection>& GetMetricSelections() const { return m_metricSelections; }
111 inline bool MetricSelectionsHasBeenSet() const { return m_metricSelectionsHasBeenSet; }
112 template <typename MetricSelectionsT = Aws::Vector<ResourceMetricSelection>>
113 void SetMetricSelections(MetricSelectionsT&& value) {
114 m_metricSelectionsHasBeenSet = true;
115 m_metricSelections = std::forward<MetricSelectionsT>(value);
116 }
117 template <typename MetricSelectionsT = Aws::Vector<ResourceMetricSelection>>
119 SetMetricSelections(std::forward<MetricSelectionsT>(value));
120 return *this;
121 }
122 template <typename MetricSelectionsT = ResourceMetricSelection>
124 m_metricSelectionsHasBeenSet = true;
125 m_metricSelections.emplace_back(std::forward<MetricSelectionsT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_resourceArn;
131
132 Aws::Utils::DateTime m_createdAt{};
133
134 Aws::Utils::DateTime m_updatedAt{};
135
136 Aws::Vector<ResourceMetricSelection> m_metricSelections;
137 bool m_resourceArnHasBeenSet = false;
138 bool m_createdAtHasBeenSet = false;
139 bool m_updatedAtHasBeenSet = false;
140 bool m_metricSelectionsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace CloudWatch
145} // namespace Aws
AWS_CLOUDWATCH_API ResourceMetricsConfiguration()=default
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API ResourceMetricsConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ResourceMetricsConfiguration & WithUpdatedAt(UpdatedAtT &&value)
ResourceMetricsConfiguration & WithCreatedAt(CreatedAtT &&value)
ResourceMetricsConfiguration & WithMetricSelections(MetricSelectionsT &&value)
const Aws::Vector< ResourceMetricSelection > & GetMetricSelections() const
ResourceMetricsConfiguration & AddMetricSelections(MetricSelectionsT &&value)
ResourceMetricsConfiguration & WithResourceArn(ResourceArnT &&value)
AWS_CLOUDWATCH_API ResourceMetricsConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector