AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Range.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/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudWatch
22{
23namespace Model
24{
25
32 class Range
33 {
34 public:
35 AWS_CLOUDWATCH_API Range();
36 AWS_CLOUDWATCH_API Range(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDWATCH_API Range& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
49 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
50 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
51 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
52 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
53 inline Range& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
54 inline Range& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
56
58
63 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
64 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
65 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
66 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
67 inline Range& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
68 inline Range& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
70 private:
71
72 Aws::Utils::DateTime m_startTime;
73 bool m_startTimeHasBeenSet = false;
74
75 Aws::Utils::DateTime m_endTime;
76 bool m_endTimeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CloudWatch
81} // namespace Aws
AWS_CLOUDWATCH_API Range()
const Aws::Utils::DateTime & GetStartTime() const
Definition Range.h:49
const Aws::Utils::DateTime & GetEndTime() const
Definition Range.h:63
bool StartTimeHasBeenSet() const
Definition Range.h:50
Range & WithEndTime(Aws::Utils::DateTime &&value)
Definition Range.h:68
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Range.h:66
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Range.h:52
Range & WithStartTime(Aws::Utils::DateTime &&value)
Definition Range.h:54
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Range & WithStartTime(const Aws::Utils::DateTime &value)
Definition Range.h:53
AWS_CLOUDWATCH_API Range & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Range.h:51
bool EndTimeHasBeenSet() const
Definition Range.h:64
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Range.h:65
AWS_CLOUDWATCH_API Range(const Aws::Utils::Xml::XmlNode &xmlNode)
Range & WithEndTime(const Aws::Utils::DateTime &value)
Definition Range.h:67
std::basic_ostream< char, std::char_traits< char > > OStream