AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AnomalyDetectorConfiguration.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/monitoring/model/Range.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudWatch
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CLOUDWATCH_API AnomalyDetectorConfiguration() = default;
39 AWS_CLOUDWATCH_API AnomalyDetectorConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
53 inline const Aws::Vector<Range>& GetExcludedTimeRanges() const { return m_excludedTimeRanges; }
54 inline bool ExcludedTimeRangesHasBeenSet() const { return m_excludedTimeRangesHasBeenSet; }
55 template<typename ExcludedTimeRangesT = Aws::Vector<Range>>
56 void SetExcludedTimeRanges(ExcludedTimeRangesT&& value) { m_excludedTimeRangesHasBeenSet = true; m_excludedTimeRanges = std::forward<ExcludedTimeRangesT>(value); }
57 template<typename ExcludedTimeRangesT = Aws::Vector<Range>>
58 AnomalyDetectorConfiguration& WithExcludedTimeRanges(ExcludedTimeRangesT&& value) { SetExcludedTimeRanges(std::forward<ExcludedTimeRangesT>(value)); return *this;}
59 template<typename ExcludedTimeRangesT = Range>
60 AnomalyDetectorConfiguration& AddExcludedTimeRanges(ExcludedTimeRangesT&& value) { m_excludedTimeRangesHasBeenSet = true; m_excludedTimeRanges.emplace_back(std::forward<ExcludedTimeRangesT>(value)); return *this; }
62
64
71 inline const Aws::String& GetMetricTimezone() const { return m_metricTimezone; }
72 inline bool MetricTimezoneHasBeenSet() const { return m_metricTimezoneHasBeenSet; }
73 template<typename MetricTimezoneT = Aws::String>
74 void SetMetricTimezone(MetricTimezoneT&& value) { m_metricTimezoneHasBeenSet = true; m_metricTimezone = std::forward<MetricTimezoneT>(value); }
75 template<typename MetricTimezoneT = Aws::String>
76 AnomalyDetectorConfiguration& WithMetricTimezone(MetricTimezoneT&& value) { SetMetricTimezone(std::forward<MetricTimezoneT>(value)); return *this;}
78 private:
79
80 Aws::Vector<Range> m_excludedTimeRanges;
81 bool m_excludedTimeRangesHasBeenSet = false;
82
83 Aws::String m_metricTimezone;
84 bool m_metricTimezoneHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CloudWatch
89} // namespace Aws
AWS_CLOUDWATCH_API AnomalyDetectorConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnomalyDetectorConfiguration & WithExcludedTimeRanges(ExcludedTimeRangesT &&value)
AWS_CLOUDWATCH_API AnomalyDetectorConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AnomalyDetectorConfiguration & AddExcludedTimeRanges(ExcludedTimeRangesT &&value)
AWS_CLOUDWATCH_API AnomalyDetectorConfiguration()=default
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AnomalyDetectorConfiguration & WithMetricTimezone(MetricTimezoneT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream