AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutMetricStreamRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/MetricStreamOutputFormat.h>
12#include <aws/monitoring/model/MetricStreamFilter.h>
13#include <aws/monitoring/model/Tag.h>
14#include <aws/monitoring/model/MetricStreamStatisticsConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CloudWatch
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CLOUDWATCH_API PutMetricStreamRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutMetricStream"; }
36
37 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline PutMetricStreamRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline PutMetricStreamRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline PutMetricStreamRequest& WithName(const char* value) { SetName(value); return *this;}
60
62
68 inline const Aws::Vector<MetricStreamFilter>& GetIncludeFilters() const{ return m_includeFilters; }
69 inline bool IncludeFiltersHasBeenSet() const { return m_includeFiltersHasBeenSet; }
70 inline void SetIncludeFilters(const Aws::Vector<MetricStreamFilter>& value) { m_includeFiltersHasBeenSet = true; m_includeFilters = value; }
71 inline void SetIncludeFilters(Aws::Vector<MetricStreamFilter>&& value) { m_includeFiltersHasBeenSet = true; m_includeFilters = std::move(value); }
74 inline PutMetricStreamRequest& AddIncludeFilters(const MetricStreamFilter& value) { m_includeFiltersHasBeenSet = true; m_includeFilters.push_back(value); return *this; }
75 inline PutMetricStreamRequest& AddIncludeFilters(MetricStreamFilter&& value) { m_includeFiltersHasBeenSet = true; m_includeFilters.push_back(std::move(value)); return *this; }
77
79
85 inline const Aws::Vector<MetricStreamFilter>& GetExcludeFilters() const{ return m_excludeFilters; }
86 inline bool ExcludeFiltersHasBeenSet() const { return m_excludeFiltersHasBeenSet; }
87 inline void SetExcludeFilters(const Aws::Vector<MetricStreamFilter>& value) { m_excludeFiltersHasBeenSet = true; m_excludeFilters = value; }
88 inline void SetExcludeFilters(Aws::Vector<MetricStreamFilter>&& value) { m_excludeFiltersHasBeenSet = true; m_excludeFilters = std::move(value); }
91 inline PutMetricStreamRequest& AddExcludeFilters(const MetricStreamFilter& value) { m_excludeFiltersHasBeenSet = true; m_excludeFilters.push_back(value); return *this; }
92 inline PutMetricStreamRequest& AddExcludeFilters(MetricStreamFilter&& value) { m_excludeFiltersHasBeenSet = true; m_excludeFilters.push_back(std::move(value)); return *this; }
94
96
101 inline const Aws::String& GetFirehoseArn() const{ return m_firehoseArn; }
102 inline bool FirehoseArnHasBeenSet() const { return m_firehoseArnHasBeenSet; }
103 inline void SetFirehoseArn(const Aws::String& value) { m_firehoseArnHasBeenSet = true; m_firehoseArn = value; }
104 inline void SetFirehoseArn(Aws::String&& value) { m_firehoseArnHasBeenSet = true; m_firehoseArn = std::move(value); }
105 inline void SetFirehoseArn(const char* value) { m_firehoseArnHasBeenSet = true; m_firehoseArn.assign(value); }
106 inline PutMetricStreamRequest& WithFirehoseArn(const Aws::String& value) { SetFirehoseArn(value); return *this;}
107 inline PutMetricStreamRequest& WithFirehoseArn(Aws::String&& value) { SetFirehoseArn(std::move(value)); return *this;}
108 inline PutMetricStreamRequest& WithFirehoseArn(const char* value) { SetFirehoseArn(value); return *this;}
110
112
119 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
120 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
121 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
122 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
123 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
124 inline PutMetricStreamRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
125 inline PutMetricStreamRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
126 inline PutMetricStreamRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
128
130
137 inline const MetricStreamOutputFormat& GetOutputFormat() const{ return m_outputFormat; }
138 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
139 inline void SetOutputFormat(const MetricStreamOutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; }
140 inline void SetOutputFormat(MetricStreamOutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); }
142 inline PutMetricStreamRequest& WithOutputFormat(MetricStreamOutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;}
144
146
159 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
162 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
163 inline PutMetricStreamRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
164 inline PutMetricStreamRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
165 inline PutMetricStreamRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
166 inline PutMetricStreamRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
168
170
186 inline const Aws::Vector<MetricStreamStatisticsConfiguration>& GetStatisticsConfigurations() const{ return m_statisticsConfigurations; }
187 inline bool StatisticsConfigurationsHasBeenSet() const { return m_statisticsConfigurationsHasBeenSet; }
188 inline void SetStatisticsConfigurations(const Aws::Vector<MetricStreamStatisticsConfiguration>& value) { m_statisticsConfigurationsHasBeenSet = true; m_statisticsConfigurations = value; }
189 inline void SetStatisticsConfigurations(Aws::Vector<MetricStreamStatisticsConfiguration>&& value) { m_statisticsConfigurationsHasBeenSet = true; m_statisticsConfigurations = std::move(value); }
192 inline PutMetricStreamRequest& AddStatisticsConfigurations(const MetricStreamStatisticsConfiguration& value) { m_statisticsConfigurationsHasBeenSet = true; m_statisticsConfigurations.push_back(value); return *this; }
193 inline PutMetricStreamRequest& AddStatisticsConfigurations(MetricStreamStatisticsConfiguration&& value) { m_statisticsConfigurationsHasBeenSet = true; m_statisticsConfigurations.push_back(std::move(value)); return *this; }
195
197
202 inline bool GetIncludeLinkedAccountsMetrics() const{ return m_includeLinkedAccountsMetrics; }
203 inline bool IncludeLinkedAccountsMetricsHasBeenSet() const { return m_includeLinkedAccountsMetricsHasBeenSet; }
204 inline void SetIncludeLinkedAccountsMetrics(bool value) { m_includeLinkedAccountsMetricsHasBeenSet = true; m_includeLinkedAccountsMetrics = value; }
207 private:
208
209 Aws::String m_name;
210 bool m_nameHasBeenSet = false;
211
212 Aws::Vector<MetricStreamFilter> m_includeFilters;
213 bool m_includeFiltersHasBeenSet = false;
214
215 Aws::Vector<MetricStreamFilter> m_excludeFilters;
216 bool m_excludeFiltersHasBeenSet = false;
217
218 Aws::String m_firehoseArn;
219 bool m_firehoseArnHasBeenSet = false;
220
221 Aws::String m_roleArn;
222 bool m_roleArnHasBeenSet = false;
223
224 MetricStreamOutputFormat m_outputFormat;
225 bool m_outputFormatHasBeenSet = false;
226
227 Aws::Vector<Tag> m_tags;
228 bool m_tagsHasBeenSet = false;
229
230 Aws::Vector<MetricStreamStatisticsConfiguration> m_statisticsConfigurations;
231 bool m_statisticsConfigurationsHasBeenSet = false;
232
233 bool m_includeLinkedAccountsMetrics;
234 bool m_includeLinkedAccountsMetricsHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace CloudWatch
239} // namespace Aws
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
PutMetricStreamRequest & AddTags(const Tag &value)
PutMetricStreamRequest & AddTags(Tag &&value)
PutMetricStreamRequest & AddExcludeFilters(const MetricStreamFilter &value)
PutMetricStreamRequest & WithStatisticsConfigurations(Aws::Vector< MetricStreamStatisticsConfiguration > &&value)
void SetIncludeFilters(const Aws::Vector< MetricStreamFilter > &value)
PutMetricStreamRequest & WithName(const Aws::String &value)
PutMetricStreamRequest & WithRoleArn(const Aws::String &value)
PutMetricStreamRequest & WithFirehoseArn(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
PutMetricStreamRequest & WithIncludeFilters(const Aws::Vector< MetricStreamFilter > &value)
PutMetricStreamRequest & AddStatisticsConfigurations(MetricStreamStatisticsConfiguration &&value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutMetricStreamRequest & WithIncludeFilters(Aws::Vector< MetricStreamFilter > &&value)
PutMetricStreamRequest & AddIncludeFilters(const MetricStreamFilter &value)
void SetExcludeFilters(Aws::Vector< MetricStreamFilter > &&value)
PutMetricStreamRequest & WithOutputFormat(MetricStreamOutputFormat &&value)
const Aws::Vector< MetricStreamFilter > & GetExcludeFilters() const
PutMetricStreamRequest & WithStatisticsConfigurations(const Aws::Vector< MetricStreamStatisticsConfiguration > &value)
PutMetricStreamRequest & WithRoleArn(Aws::String &&value)
void SetIncludeFilters(Aws::Vector< MetricStreamFilter > &&value)
PutMetricStreamRequest & WithName(Aws::String &&value)
void SetStatisticsConfigurations(const Aws::Vector< MetricStreamStatisticsConfiguration > &value)
PutMetricStreamRequest & WithIncludeLinkedAccountsMetrics(bool value)
void SetOutputFormat(const MetricStreamOutputFormat &value)
PutMetricStreamRequest & WithName(const char *value)
PutMetricStreamRequest & WithTags(Aws::Vector< Tag > &&value)
PutMetricStreamRequest & WithOutputFormat(const MetricStreamOutputFormat &value)
PutMetricStreamRequest & WithExcludeFilters(const Aws::Vector< MetricStreamFilter > &value)
const MetricStreamOutputFormat & GetOutputFormat() const
void SetOutputFormat(MetricStreamOutputFormat &&value)
virtual const char * GetServiceRequestName() const override
PutMetricStreamRequest & AddExcludeFilters(MetricStreamFilter &&value)
PutMetricStreamRequest & WithRoleArn(const char *value)
PutMetricStreamRequest & WithTags(const Aws::Vector< Tag > &value)
PutMetricStreamRequest & WithExcludeFilters(Aws::Vector< MetricStreamFilter > &&value)
PutMetricStreamRequest & WithFirehoseArn(const Aws::String &value)
PutMetricStreamRequest & WithFirehoseArn(Aws::String &&value)
PutMetricStreamRequest & AddStatisticsConfigurations(const MetricStreamStatisticsConfiguration &value)
const Aws::Vector< MetricStreamStatisticsConfiguration > & GetStatisticsConfigurations() const
void SetExcludeFilters(const Aws::Vector< MetricStreamFilter > &value)
PutMetricStreamRequest & AddIncludeFilters(MetricStreamFilter &&value)
const Aws::Vector< MetricStreamFilter > & GetIncludeFilters() const
void SetStatisticsConfigurations(Aws::Vector< MetricStreamStatisticsConfiguration > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector