/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SageMakerMetrics { namespace Model { /** */ class BatchPutMetricsRequest : public SageMakerMetricsRequest { public: AWS_SAGEMAKERMETRICS_API BatchPutMetricsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "BatchPutMetrics"; } AWS_SAGEMAKERMETRICS_API Aws::String SerializePayload() const override; /** *

The name of the Trial Component to associate with the metrics.

*/ inline const Aws::String& GetTrialComponentName() const{ return m_trialComponentName; } /** *

The name of the Trial Component to associate with the metrics.

*/ inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; } /** *

The name of the Trial Component to associate with the metrics.

*/ inline void SetTrialComponentName(const Aws::String& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = value; } /** *

The name of the Trial Component to associate with the metrics.

*/ inline void SetTrialComponentName(Aws::String&& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = std::move(value); } /** *

The name of the Trial Component to associate with the metrics.

*/ inline void SetTrialComponentName(const char* value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName.assign(value); } /** *

The name of the Trial Component to associate with the metrics.

*/ inline BatchPutMetricsRequest& WithTrialComponentName(const Aws::String& value) { SetTrialComponentName(value); return *this;} /** *

The name of the Trial Component to associate with the metrics.

*/ inline BatchPutMetricsRequest& WithTrialComponentName(Aws::String&& value) { SetTrialComponentName(std::move(value)); return *this;} /** *

The name of the Trial Component to associate with the metrics.

*/ inline BatchPutMetricsRequest& WithTrialComponentName(const char* value) { SetTrialComponentName(value); return *this;} /** *

A list of raw metric values to put.

*/ inline const Aws::Vector& GetMetricData() const{ return m_metricData; } /** *

A list of raw metric values to put.

*/ inline bool MetricDataHasBeenSet() const { return m_metricDataHasBeenSet; } /** *

A list of raw metric values to put.

*/ inline void SetMetricData(const Aws::Vector& value) { m_metricDataHasBeenSet = true; m_metricData = value; } /** *

A list of raw metric values to put.

*/ inline void SetMetricData(Aws::Vector&& value) { m_metricDataHasBeenSet = true; m_metricData = std::move(value); } /** *

A list of raw metric values to put.

*/ inline BatchPutMetricsRequest& WithMetricData(const Aws::Vector& value) { SetMetricData(value); return *this;} /** *

A list of raw metric values to put.

*/ inline BatchPutMetricsRequest& WithMetricData(Aws::Vector&& value) { SetMetricData(std::move(value)); return *this;} /** *

A list of raw metric values to put.

*/ inline BatchPutMetricsRequest& AddMetricData(const RawMetricData& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(value); return *this; } /** *

A list of raw metric values to put.

*/ inline BatchPutMetricsRequest& AddMetricData(RawMetricData&& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(std::move(value)); return *this; } private: Aws::String m_trialComponentName; bool m_trialComponentNameHasBeenSet = false; Aws::Vector m_metricData; bool m_metricDataHasBeenSet = false; }; } // namespace Model } // namespace SageMakerMetrics } // namespace Aws