AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetMetricsRequest.h
1
6#pragma once
7#include <aws/sagemaker-metrics/SageMakerMetrics_EXPORTS.h>
8#include <aws/sagemaker-metrics/SageMakerMetricsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker-metrics/model/MetricQuery.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SageMakerMetrics
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SAGEMAKERMETRICS_API BatchGetMetricsRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchGetMetrics"; }
32
33 AWS_SAGEMAKERMETRICS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::Vector<MetricQuery>& GetMetricQueries() const{ return m_metricQueries; }
41 inline bool MetricQueriesHasBeenSet() const { return m_metricQueriesHasBeenSet; }
42 inline void SetMetricQueries(const Aws::Vector<MetricQuery>& value) { m_metricQueriesHasBeenSet = true; m_metricQueries = value; }
43 inline void SetMetricQueries(Aws::Vector<MetricQuery>&& value) { m_metricQueriesHasBeenSet = true; m_metricQueries = std::move(value); }
45 inline BatchGetMetricsRequest& WithMetricQueries(Aws::Vector<MetricQuery>&& value) { SetMetricQueries(std::move(value)); return *this;}
46 inline BatchGetMetricsRequest& AddMetricQueries(const MetricQuery& value) { m_metricQueriesHasBeenSet = true; m_metricQueries.push_back(value); return *this; }
47 inline BatchGetMetricsRequest& AddMetricQueries(MetricQuery&& value) { m_metricQueriesHasBeenSet = true; m_metricQueries.push_back(std::move(value)); return *this; }
49 private:
50
51 Aws::Vector<MetricQuery> m_metricQueries;
52 bool m_metricQueriesHasBeenSet = false;
53 };
54
55} // namespace Model
56} // namespace SageMakerMetrics
57} // namespace Aws
BatchGetMetricsRequest & AddMetricQueries(MetricQuery &&value)
BatchGetMetricsRequest & WithMetricQueries(const Aws::Vector< MetricQuery > &value)
const Aws::Vector< MetricQuery > & GetMetricQueries() const
void SetMetricQueries(const Aws::Vector< MetricQuery > &value)
AWS_SAGEMAKERMETRICS_API Aws::String SerializePayload() const override
void SetMetricQueries(Aws::Vector< MetricQuery > &&value)
virtual const char * GetServiceRequestName() const override
BatchGetMetricsRequest & AddMetricQueries(const MetricQuery &value)
BatchGetMetricsRequest & WithMetricQueries(Aws::Vector< MetricQuery > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector