AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutMetricDataRequest.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/MetricDatum.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatch
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCH_API PutMetricDataRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutMetricData"; }
33
34 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
35
36#ifdef ENABLED_ZLIB_REQUEST_COMPRESSION
39#endif
40
41 protected:
42 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
53 inline const Aws::String& GetNamespace() const{ return m_namespace; }
54 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
55 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
56 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
57 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
58 inline PutMetricDataRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
59 inline PutMetricDataRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
60 inline PutMetricDataRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
62
64
68 inline const Aws::Vector<MetricDatum>& GetMetricData() const{ return m_metricData; }
69 inline bool MetricDataHasBeenSet() const { return m_metricDataHasBeenSet; }
70 inline void SetMetricData(const Aws::Vector<MetricDatum>& value) { m_metricDataHasBeenSet = true; m_metricData = value; }
71 inline void SetMetricData(Aws::Vector<MetricDatum>&& value) { m_metricDataHasBeenSet = true; m_metricData = std::move(value); }
72 inline PutMetricDataRequest& WithMetricData(const Aws::Vector<MetricDatum>& value) { SetMetricData(value); return *this;}
73 inline PutMetricDataRequest& WithMetricData(Aws::Vector<MetricDatum>&& value) { SetMetricData(std::move(value)); return *this;}
74 inline PutMetricDataRequest& AddMetricData(const MetricDatum& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(value); return *this; }
75 inline PutMetricDataRequest& AddMetricData(MetricDatum&& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(std::move(value)); return *this; }
77 private:
78
79 Aws::String m_namespace;
80 bool m_namespaceHasBeenSet = false;
81
82 Aws::Vector<MetricDatum> m_metricData;
83 bool m_metricDataHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CloudWatch
88} // namespace Aws
virtual Aws::Client::CompressionAlgorithm GetSelectedCompressionAlgorithm(Aws::Client::RequestCompressionConfig) const
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
PutMetricDataRequest & WithNamespace(Aws::String &&value)
PutMetricDataRequest & WithMetricData(Aws::Vector< MetricDatum > &&value)
PutMetricDataRequest & WithMetricData(const Aws::Vector< MetricDatum > &value)
void SetMetricData(const Aws::Vector< MetricDatum > &value)
virtual const char * GetServiceRequestName() const override
PutMetricDataRequest & AddMetricData(const MetricDatum &value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutMetricDataRequest & WithNamespace(const Aws::String &value)
const Aws::Vector< MetricDatum > & GetMetricData() const
void SetMetricData(Aws::Vector< MetricDatum > &&value)
PutMetricDataRequest & WithNamespace(const char *value)
PutMetricDataRequest & AddMetricData(MetricDatum &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector