AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
ContainerMetricsConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/MetricsEndpoint.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
37 public:
38 AWS_SAGEMAKER_API ContainerMetricsConfig() = default;
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
50 inline const Aws::Vector<MetricsEndpoint>& GetMetricsEndpoints() const { return m_metricsEndpoints; }
51 inline bool MetricsEndpointsHasBeenSet() const { return m_metricsEndpointsHasBeenSet; }
52 template <typename MetricsEndpointsT = Aws::Vector<MetricsEndpoint>>
53 void SetMetricsEndpoints(MetricsEndpointsT&& value) {
54 m_metricsEndpointsHasBeenSet = true;
55 m_metricsEndpoints = std::forward<MetricsEndpointsT>(value);
56 }
57 template <typename MetricsEndpointsT = Aws::Vector<MetricsEndpoint>>
58 ContainerMetricsConfig& WithMetricsEndpoints(MetricsEndpointsT&& value) {
59 SetMetricsEndpoints(std::forward<MetricsEndpointsT>(value));
60 return *this;
61 }
62 template <typename MetricsEndpointsT = MetricsEndpoint>
63 ContainerMetricsConfig& AddMetricsEndpoints(MetricsEndpointsT&& value) {
64 m_metricsEndpointsHasBeenSet = true;
65 m_metricsEndpoints.emplace_back(std::forward<MetricsEndpointsT>(value));
66 return *this;
67 }
69 private:
70 Aws::Vector<MetricsEndpoint> m_metricsEndpoints;
71 bool m_metricsEndpointsHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace SageMaker
76} // namespace Aws
AWS_SAGEMAKER_API ContainerMetricsConfig()=default
const Aws::Vector< MetricsEndpoint > & GetMetricsEndpoints() const
AWS_SAGEMAKER_API ContainerMetricsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerMetricsConfig & WithMetricsEndpoints(MetricsEndpointsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerMetricsConfig & AddMetricsEndpoints(MetricsEndpointsT &&value)
void SetMetricsEndpoints(MetricsEndpointsT &&value)
AWS_SAGEMAKER_API ContainerMetricsConfig(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue