AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetExcludedTimeRanges(const Aws::Vector<Range>& value) { m_excludedTimeRangesHasBeenSet = true; m_excludedTimeRanges = value; }
56 inline void SetExcludedTimeRanges(Aws::Vector<Range>&& value) { m_excludedTimeRangesHasBeenSet = true; m_excludedTimeRanges = std::move(value); }
59 inline AnomalyDetectorConfiguration& AddExcludedTimeRanges(const Range& value) { m_excludedTimeRangesHasBeenSet = true; m_excludedTimeRanges.push_back(value); return *this; }
60 inline AnomalyDetectorConfiguration& AddExcludedTimeRanges(Range&& value) { m_excludedTimeRangesHasBeenSet = true; m_excludedTimeRanges.push_back(std::move(value)); return *this; }
62
64
71 inline const Aws::String& GetMetricTimezone() const{ return m_metricTimezone; }
72 inline bool MetricTimezoneHasBeenSet() const { return m_metricTimezoneHasBeenSet; }
73 inline void SetMetricTimezone(const Aws::String& value) { m_metricTimezoneHasBeenSet = true; m_metricTimezone = value; }
74 inline void SetMetricTimezone(Aws::String&& value) { m_metricTimezoneHasBeenSet = true; m_metricTimezone = std::move(value); }
75 inline void SetMetricTimezone(const char* value) { m_metricTimezoneHasBeenSet = true; m_metricTimezone.assign(value); }
77 inline AnomalyDetectorConfiguration& WithMetricTimezone(Aws::String&& value) { SetMetricTimezone(std::move(value)); return *this;}
78 inline AnomalyDetectorConfiguration& WithMetricTimezone(const char* value) { SetMetricTimezone(value); return *this;}
80 private:
81
82 Aws::Vector<Range> m_excludedTimeRanges;
83 bool m_excludedTimeRangesHasBeenSet = false;
84
85 Aws::String m_metricTimezone;
86 bool m_metricTimezoneHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudWatch
91} // namespace Aws
AWS_CLOUDWATCH_API AnomalyDetectorConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnomalyDetectorConfiguration & WithMetricTimezone(Aws::String &&value)
AWS_CLOUDWATCH_API AnomalyDetectorConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AnomalyDetectorConfiguration & AddExcludedTimeRanges(Range &&value)
AnomalyDetectorConfiguration & AddExcludedTimeRanges(const Range &value)
void SetExcludedTimeRanges(const Aws::Vector< Range > &value)
AnomalyDetectorConfiguration & WithExcludedTimeRanges(const Aws::Vector< Range > &value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AnomalyDetectorConfiguration & WithExcludedTimeRanges(Aws::Vector< Range > &&value)
AnomalyDetectorConfiguration & WithMetricTimezone(const char *value)
AnomalyDetectorConfiguration & WithMetricTimezone(const Aws::String &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