AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline MetricStreamEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline MetricStreamEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline MetricStreamEntry& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
64 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
65 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
66 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
67 inline MetricStreamEntry& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
68 inline MetricStreamEntry& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
70
72
76 inline const Aws::Utils::DateTime& GetLastUpdateDate() const{ return m_lastUpdateDate; }
77 inline bool LastUpdateDateHasBeenSet() const { return m_lastUpdateDateHasBeenSet; }
78 inline void SetLastUpdateDate(const Aws::Utils::DateTime& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = value; }
79 inline void SetLastUpdateDate(Aws::Utils::DateTime&& value) { m_lastUpdateDateHasBeenSet = true; m_lastUpdateDate = std::move(value); }
80 inline MetricStreamEntry& WithLastUpdateDate(const Aws::Utils::DateTime& value) { SetLastUpdateDate(value); return *this;}
81 inline MetricStreamEntry& WithLastUpdateDate(Aws::Utils::DateTime&& value) { SetLastUpdateDate(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline MetricStreamEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline MetricStreamEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline MetricStreamEntry& WithName(const char* value) { SetName(value); return *this;}
97
99
103 inline const Aws::String& GetFirehoseArn() const{ return m_firehoseArn; }
104 inline bool FirehoseArnHasBeenSet() const { return m_firehoseArnHasBeenSet; }
105 inline void SetFirehoseArn(const Aws::String& value) { m_firehoseArnHasBeenSet = true; m_firehoseArn = value; }
106 inline void SetFirehoseArn(Aws::String&& value) { m_firehoseArnHasBeenSet = true; m_firehoseArn = std::move(value); }
107 inline void SetFirehoseArn(const char* value) { m_firehoseArnHasBeenSet = true; m_firehoseArn.assign(value); }
108 inline MetricStreamEntry& WithFirehoseArn(const Aws::String& value) { SetFirehoseArn(value); return *this;}
109 inline MetricStreamEntry& WithFirehoseArn(Aws::String&& value) { SetFirehoseArn(std::move(value)); return *this;}
110 inline MetricStreamEntry& WithFirehoseArn(const char* value) { SetFirehoseArn(value); return *this;}
112
114
118 inline const Aws::String& GetState() const{ return m_state; }
119 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
120 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
121 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
122 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
123 inline MetricStreamEntry& WithState(const Aws::String& value) { SetState(value); return *this;}
124 inline MetricStreamEntry& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
125 inline MetricStreamEntry& WithState(const char* value) { SetState(value); return *this;}
127
129
133 inline const MetricStreamOutputFormat& GetOutputFormat() const{ return m_outputFormat; }
134 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
135 inline void SetOutputFormat(const MetricStreamOutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
136 inline void SetOutputFormat(MetricStreamOutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); }
137 inline MetricStreamEntry& WithOutputFormat(const MetricStreamOutputFormat& value) { SetOutputFormat(value); return *this;}
138 inline MetricStreamEntry& WithOutputFormat(MetricStreamOutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;}
140 private:
141
142 Aws::String m_arn;
143 bool m_arnHasBeenSet = false;
144
145 Aws::Utils::DateTime m_creationDate;
146 bool m_creationDateHasBeenSet = false;
147
148 Aws::Utils::DateTime m_lastUpdateDate;
149 bool m_lastUpdateDateHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_firehoseArn;
155 bool m_firehoseArnHasBeenSet = false;
156
157 Aws::String m_state;
158 bool m_stateHasBeenSet = false;
159
160 MetricStreamOutputFormat m_outputFormat;
161 bool m_outputFormatHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace CloudWatch
166} // namespace Aws
void SetFirehoseArn(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdateDate() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetFirehoseArn(Aws::String &&value)
MetricStreamEntry & WithState(const char *value)
MetricStreamEntry & WithName(Aws::String &&value)
bool StateHasBeenSet() const
const Aws::String & GetState() const
void SetName(const Aws::String &value)
MetricStreamEntry & WithOutputFormat(const MetricStreamOutputFormat &value)
MetricStreamEntry & WithCreationDate(Aws::Utils::DateTime &&value)
MetricStreamEntry & WithCreationDate(const Aws::Utils::DateTime &value)
void SetName(Aws::String &&value)
const Aws::String & GetFirehoseArn() const
void SetArn(const Aws::String &value)
void SetOutputFormat(const MetricStreamOutputFormat &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
bool NameHasBeenSet() const
bool OutputFormatHasBeenSet() const
AWS_CLOUDWATCH_API MetricStreamEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ArnHasBeenSet() const
void SetFirehoseArn(const char *value)
MetricStreamEntry & WithArn(const Aws::String &value)
void SetState(const char *value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetLastUpdateDate(Aws::Utils::DateTime &&value)
MetricStreamEntry & WithLastUpdateDate(const Aws::Utils::DateTime &value)
bool LastUpdateDateHasBeenSet() const
MetricStreamEntry & WithArn(Aws::String &&value)
const Aws::String & GetArn() const
MetricStreamEntry & WithLastUpdateDate(Aws::Utils::DateTime &&value)
void SetLastUpdateDate(const Aws::Utils::DateTime &value)
void SetArn(const char *value)
MetricStreamEntry & WithName(const Aws::String &value)
void SetState(Aws::String &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
bool CreationDateHasBeenSet() const
void SetArn(Aws::String &&value)
void SetName(const char *value)
const Aws::Utils::DateTime & GetCreationDate() const
MetricStreamEntry & WithState(const Aws::String &value)
const Aws::String & GetName() const
MetricStreamEntry & WithState(Aws::String &&value)
AWS_CLOUDWATCH_API MetricStreamEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
MetricStreamEntry & WithOutputFormat(MetricStreamOutputFormat &&value)
void SetState(const Aws::String &value)
MetricStreamEntry & WithArn(const char *value)
MetricStreamEntry & WithFirehoseArn(const Aws::String &value)
bool FirehoseArnHasBeenSet() const
MetricStreamEntry & WithFirehoseArn(Aws::String &&value)
MetricStreamEntry & WithFirehoseArn(const char *value)
const MetricStreamOutputFormat & GetOutputFormat() const
AWS_CLOUDWATCH_API MetricStreamEntry()
MetricStreamEntry & WithName(const char *value)
void SetOutputFormat(MetricStreamOutputFormat &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream