AWS SDK for C++  1.9.124
AWS SDK for C++
PublishMetricsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/mwaa/MWAARequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace MWAA
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "PublishMetrics"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
41 
45  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
46 
50  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
51 
55  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
56 
60  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
61 
65  inline PublishMetricsRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
66 
70  inline PublishMetricsRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
71 
75  inline PublishMetricsRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
76 
77 
82  inline const Aws::Vector<MetricDatum>& GetMetricData() const{ return m_metricData; }
83 
88  inline bool MetricDataHasBeenSet() const { return m_metricDataHasBeenSet; }
89 
94  inline void SetMetricData(const Aws::Vector<MetricDatum>& value) { m_metricDataHasBeenSet = true; m_metricData = value; }
95 
100  inline void SetMetricData(Aws::Vector<MetricDatum>&& value) { m_metricDataHasBeenSet = true; m_metricData = std::move(value); }
101 
106  inline PublishMetricsRequest& WithMetricData(const Aws::Vector<MetricDatum>& value) { SetMetricData(value); return *this;}
107 
112  inline PublishMetricsRequest& WithMetricData(Aws::Vector<MetricDatum>&& value) { SetMetricData(std::move(value)); return *this;}
113 
118  inline PublishMetricsRequest& AddMetricData(const MetricDatum& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(value); return *this; }
119 
124  inline PublishMetricsRequest& AddMetricData(MetricDatum&& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(std::move(value)); return *this; }
125 
126  private:
127 
128  Aws::String m_environmentName;
129  bool m_environmentNameHasBeenSet;
130 
131  Aws::Vector<MetricDatum> m_metricData;
132  bool m_metricDataHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace MWAA
137 } // namespace Aws
Aws::MWAA::Model::PublishMetricsRequest::SetMetricData
void SetMetricData(const Aws::Vector< MetricDatum > &value)
Definition: PublishMetricsRequest.h:94
Aws::MWAA::Model::PublishMetricsRequest::SetEnvironmentName
void SetEnvironmentName(const char *value)
Definition: PublishMetricsRequest.h:60
Aws::MWAA::Model::PublishMetricsRequest::WithEnvironmentName
PublishMetricsRequest & WithEnvironmentName(const Aws::String &value)
Definition: PublishMetricsRequest.h:65
Aws::MWAA::Model::PublishMetricsRequest::PublishMetricsRequest
PublishMetricsRequest()
MetricDatum.h
Aws::MWAA::Model::PublishMetricsRequest::GetMetricData
const Aws::Vector< MetricDatum > & GetMetricData() const
Definition: PublishMetricsRequest.h:82
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MWAA::Model::PublishMetricsRequest::MetricDataHasBeenSet
bool MetricDataHasBeenSet() const
Definition: PublishMetricsRequest.h:88
AWSVector.h
Aws::MWAA::Model::PublishMetricsRequest::SetEnvironmentName
void SetEnvironmentName(const Aws::String &value)
Definition: PublishMetricsRequest.h:50
Aws::MWAA::Model::PublishMetricsRequest::WithMetricData
PublishMetricsRequest & WithMetricData(Aws::Vector< MetricDatum > &&value)
Definition: PublishMetricsRequest.h:112
MWAARequest.h
Aws::MWAA::Model::PublishMetricsRequest::EnvironmentNameHasBeenSet
bool EnvironmentNameHasBeenSet() const
Definition: PublishMetricsRequest.h:45
Aws::MWAA::Model::MetricDatum
Definition: MetricDatum.h:37
Aws::MWAA::Model::PublishMetricsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MWAA::Model::PublishMetricsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PublishMetricsRequest.h:32
AWSString.h
Aws::MWAA::Model::PublishMetricsRequest::WithMetricData
PublishMetricsRequest & WithMetricData(const Aws::Vector< MetricDatum > &value)
Definition: PublishMetricsRequest.h:106
Aws::MWAA::Model::PublishMetricsRequest::SetEnvironmentName
void SetEnvironmentName(Aws::String &&value)
Definition: PublishMetricsRequest.h:55
Aws::MWAA::Model::PublishMetricsRequest::AddMetricData
PublishMetricsRequest & AddMetricData(const MetricDatum &value)
Definition: PublishMetricsRequest.h:118
Aws::MWAA::Model::PublishMetricsRequest::SetMetricData
void SetMetricData(Aws::Vector< MetricDatum > &&value)
Definition: PublishMetricsRequest.h:100
Aws::MWAA::Model::PublishMetricsRequest::WithEnvironmentName
PublishMetricsRequest & WithEnvironmentName(Aws::String &&value)
Definition: PublishMetricsRequest.h:70
Aws::MWAA::Model::PublishMetricsRequest
Definition: PublishMetricsRequest.h:24
AWS_MWAA_API
#define AWS_MWAA_API
Definition: MWAA_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::MWAA::Model::PublishMetricsRequest::WithEnvironmentName
PublishMetricsRequest & WithEnvironmentName(const char *value)
Definition: PublishMetricsRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MWAA::Model::PublishMetricsRequest::GetEnvironmentName
const Aws::String & GetEnvironmentName() const
Definition: PublishMetricsRequest.h:40
Aws::MWAA::MWAARequest
Definition: MWAARequest.h:17
Aws::MWAA::Model::PublishMetricsRequest::AddMetricData
PublishMetricsRequest & AddMetricData(MetricDatum &&value)
Definition: PublishMetricsRequest.h:124
MWAA_EXPORTS.h