AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchPutMetricsRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker-metrics/model/RawMetricData.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SageMakerMetrics
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SAGEMAKERMETRICS_API BatchPutMetricsRequest();
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 "BatchPutMetrics"; }
33
34 AWS_SAGEMAKERMETRICS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetTrialComponentName() const{ return m_trialComponentName; }
43 inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; }
44 inline void SetTrialComponentName(const Aws::String& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = value; }
45 inline void SetTrialComponentName(Aws::String&& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = std::move(value); }
46 inline void SetTrialComponentName(const char* value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName.assign(value); }
48 inline BatchPutMetricsRequest& WithTrialComponentName(Aws::String&& value) { SetTrialComponentName(std::move(value)); return *this;}
49 inline BatchPutMetricsRequest& WithTrialComponentName(const char* value) { SetTrialComponentName(value); return *this;}
51
53
56 inline const Aws::Vector<RawMetricData>& GetMetricData() const{ return m_metricData; }
57 inline bool MetricDataHasBeenSet() const { return m_metricDataHasBeenSet; }
58 inline void SetMetricData(const Aws::Vector<RawMetricData>& value) { m_metricDataHasBeenSet = true; m_metricData = value; }
59 inline void SetMetricData(Aws::Vector<RawMetricData>&& value) { m_metricDataHasBeenSet = true; m_metricData = std::move(value); }
61 inline BatchPutMetricsRequest& WithMetricData(Aws::Vector<RawMetricData>&& value) { SetMetricData(std::move(value)); return *this;}
62 inline BatchPutMetricsRequest& AddMetricData(const RawMetricData& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(value); return *this; }
63 inline BatchPutMetricsRequest& AddMetricData(RawMetricData&& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(std::move(value)); return *this; }
65 private:
66
67 Aws::String m_trialComponentName;
68 bool m_trialComponentNameHasBeenSet = false;
69
70 Aws::Vector<RawMetricData> m_metricData;
71 bool m_metricDataHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace SageMakerMetrics
76} // namespace Aws
AWS_SAGEMAKERMETRICS_API Aws::String SerializePayload() const override
BatchPutMetricsRequest & AddMetricData(RawMetricData &&value)
BatchPutMetricsRequest & WithMetricData(Aws::Vector< RawMetricData > &&value)
void SetMetricData(Aws::Vector< RawMetricData > &&value)
BatchPutMetricsRequest & WithTrialComponentName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
BatchPutMetricsRequest & WithTrialComponentName(const Aws::String &value)
void SetMetricData(const Aws::Vector< RawMetricData > &value)
const Aws::Vector< RawMetricData > & GetMetricData() const
BatchPutMetricsRequest & WithMetricData(const Aws::Vector< RawMetricData > &value)
BatchPutMetricsRequest & AddMetricData(const RawMetricData &value)
BatchPutMetricsRequest & WithTrialComponentName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector