AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
MetricConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
30 public:
31 AWS_ECS_API MetricConfiguration() = default;
35
37
41 inline const Aws::Vector<Aws::String>& GetMetricNames() const { return m_metricNames; }
42 inline bool MetricNamesHasBeenSet() const { return m_metricNamesHasBeenSet; }
43 template <typename MetricNamesT = Aws::Vector<Aws::String>>
44 void SetMetricNames(MetricNamesT&& value) {
45 m_metricNamesHasBeenSet = true;
46 m_metricNames = std::forward<MetricNamesT>(value);
47 }
48 template <typename MetricNamesT = Aws::Vector<Aws::String>>
49 MetricConfiguration& WithMetricNames(MetricNamesT&& value) {
50 SetMetricNames(std::forward<MetricNamesT>(value));
51 return *this;
52 }
53 template <typename MetricNamesT = Aws::String>
54 MetricConfiguration& AddMetricNames(MetricNamesT&& value) {
55 m_metricNamesHasBeenSet = true;
56 m_metricNames.emplace_back(std::forward<MetricNamesT>(value));
57 return *this;
58 }
60
62
66 inline int GetResolutionSeconds() const { return m_resolutionSeconds; }
67 inline bool ResolutionSecondsHasBeenSet() const { return m_resolutionSecondsHasBeenSet; }
68 inline void SetResolutionSeconds(int value) {
69 m_resolutionSecondsHasBeenSet = true;
70 m_resolutionSeconds = value;
71 }
74 return *this;
75 }
77 private:
78 Aws::Vector<Aws::String> m_metricNames;
79
80 int m_resolutionSeconds{0};
81 bool m_metricNamesHasBeenSet = false;
82 bool m_resolutionSecondsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ECS
87} // namespace Aws
AWS_ECS_API MetricConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetMetricNames() const
AWS_ECS_API MetricConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMetricNames(MetricNamesT &&value)
MetricConfiguration & WithMetricNames(MetricNamesT &&value)
AWS_ECS_API MetricConfiguration()=default
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
MetricConfiguration & WithResolutionSeconds(int value)
MetricConfiguration & AddMetricNames(MetricNamesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue