AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MetricStreamEntry.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/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/monitoring/model/MetricStreamOutputFormat.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
35 {
36 public:
37 AWS_CLOUDWATCH_API MetricStreamEntry() = default;
38 AWS_CLOUDWATCH_API MetricStreamEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDWATCH_API MetricStreamEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 MetricStreamEntry& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
62 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
63 template<typename CreationDateT = Aws::Utils::DateTime>
64 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
65 template<typename CreationDateT = Aws::Utils::DateTime>
66 MetricStreamEntry& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetLastUpdateDate() const { return m_lastUpdateDate; }
75 inline bool LastUpdateDateHasBeenSet() const { return m_lastUpdateDateHasBeenSet; }
76 template<typename LastUpdateDateT = Aws::Utils::DateTime>
77 void SetLastUpdateDate(LastUpdateDateT&& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = std::forward<LastUpdateDateT>(value); }
78 template<typename LastUpdateDateT = Aws::Utils::DateTime>
79 MetricStreamEntry& WithLastUpdateDate(LastUpdateDateT&& value) { SetLastUpdateDate(std::forward<LastUpdateDateT>(value)); return *this;}
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 MetricStreamEntry& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
99 inline const Aws::String& GetFirehoseArn() const { return m_firehoseArn; }
100 inline bool FirehoseArnHasBeenSet() const { return m_firehoseArnHasBeenSet; }
101 template<typename FirehoseArnT = Aws::String>
102 void SetFirehoseArn(FirehoseArnT&& value) { m_firehoseArnHasBeenSet = true; m_firehoseArn = std::forward<FirehoseArnT>(value); }
103 template<typename FirehoseArnT = Aws::String>
104 MetricStreamEntry& WithFirehoseArn(FirehoseArnT&& value) { SetFirehoseArn(std::forward<FirehoseArnT>(value)); return *this;}
106
108
112 inline const Aws::String& GetState() const { return m_state; }
113 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
114 template<typename StateT = Aws::String>
115 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
116 template<typename StateT = Aws::String>
117 MetricStreamEntry& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
119
121
125 inline MetricStreamOutputFormat GetOutputFormat() const { return m_outputFormat; }
126 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
127 inline void SetOutputFormat(MetricStreamOutputFormat value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
130 private:
131
132 Aws::String m_arn;
133 bool m_arnHasBeenSet = false;
134
135 Aws::Utils::DateTime m_creationDate{};
136 bool m_creationDateHasBeenSet = false;
137
138 Aws::Utils::DateTime m_lastUpdateDate{};
139 bool m_lastUpdateDateHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_firehoseArn;
145 bool m_firehoseArnHasBeenSet = false;
146
147 Aws::String m_state;
148 bool m_stateHasBeenSet = false;
149
151 bool m_outputFormatHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CloudWatch
156} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdateDate() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetFirehoseArn(FirehoseArnT &&value)
bool StateHasBeenSet() const
MetricStreamOutputFormat GetOutputFormat() const
const Aws::String & GetState() const
void SetArn(ArnT &&value)
void SetCreationDate(CreationDateT &&value)
MetricStreamEntry & WithOutputFormat(MetricStreamOutputFormat value)
void SetName(NameT &&value)
const Aws::String & GetFirehoseArn() const
bool NameHasBeenSet() const
bool OutputFormatHasBeenSet() const
MetricStreamEntry & WithLastUpdateDate(LastUpdateDateT &&value)
AWS_CLOUDWATCH_API MetricStreamEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricStreamEntry & WithFirehoseArn(FirehoseArnT &&value)
bool ArnHasBeenSet() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool LastUpdateDateHasBeenSet() const
const Aws::String & GetArn() const
void SetLastUpdateDate(LastUpdateDateT &&value)
bool CreationDateHasBeenSet() const
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::String & GetName() const
AWS_CLOUDWATCH_API MetricStreamEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricStreamEntry & WithArn(ArnT &&value)
bool FirehoseArnHasBeenSet() const
AWS_CLOUDWATCH_API MetricStreamEntry()=default
MetricStreamEntry & WithState(StateT &&value)
void SetState(StateT &&value)
void SetOutputFormat(MetricStreamOutputFormat value)
MetricStreamEntry & WithCreationDate(CreationDateT &&value)
MetricStreamEntry & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream