AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AnomalyDetectorConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/monitoring/CloudWatch_EXPORTS.h>
11#include <aws/monitoring/model/Range.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace CloudWatch {
22namespace Model {
23
32 public:
33 AWS_CLOUDWATCH_API AnomalyDetectorConfiguration() = default;
34 AWS_CLOUDWATCH_API AnomalyDetectorConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCH_API AnomalyDetectorConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
45 inline const Aws::Vector<Range>& GetExcludedTimeRanges() const { return m_excludedTimeRanges; }
46 inline bool ExcludedTimeRangesHasBeenSet() const { return m_excludedTimeRangesHasBeenSet; }
47 template <typename ExcludedTimeRangesT = Aws::Vector<Range>>
48 void SetExcludedTimeRanges(ExcludedTimeRangesT&& value) {
49 m_excludedTimeRangesHasBeenSet = true;
50 m_excludedTimeRanges = std::forward<ExcludedTimeRangesT>(value);
51 }
52 template <typename ExcludedTimeRangesT = Aws::Vector<Range>>
54 SetExcludedTimeRanges(std::forward<ExcludedTimeRangesT>(value));
55 return *this;
56 }
57 template <typename ExcludedTimeRangesT = Range>
59 m_excludedTimeRangesHasBeenSet = true;
60 m_excludedTimeRanges.emplace_back(std::forward<ExcludedTimeRangesT>(value));
61 return *this;
62 }
64
66
73 inline const Aws::String& GetMetricTimezone() const { return m_metricTimezone; }
74 inline bool MetricTimezoneHasBeenSet() const { return m_metricTimezoneHasBeenSet; }
75 template <typename MetricTimezoneT = Aws::String>
76 void SetMetricTimezone(MetricTimezoneT&& value) {
77 m_metricTimezoneHasBeenSet = true;
78 m_metricTimezone = std::forward<MetricTimezoneT>(value);
79 }
80 template <typename MetricTimezoneT = Aws::String>
82 SetMetricTimezone(std::forward<MetricTimezoneT>(value));
83 return *this;
84 }
86 private:
87 Aws::Vector<Range> m_excludedTimeRanges;
88
89 Aws::String m_metricTimezone;
90 bool m_excludedTimeRangesHasBeenSet = false;
91 bool m_metricTimezoneHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace CloudWatch
96} // namespace Aws
AnomalyDetectorConfiguration & WithExcludedTimeRanges(ExcludedTimeRangesT &&value)
AnomalyDetectorConfiguration & AddExcludedTimeRanges(ExcludedTimeRangesT &&value)
AWS_CLOUDWATCH_API AnomalyDetectorConfiguration()=default
AWS_CLOUDWATCH_API AnomalyDetectorConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCH_API AnomalyDetectorConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AnomalyDetectorConfiguration & WithMetricTimezone(MetricTimezoneT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector