AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
MetricPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/mediastore/MediaStore_EXPORTS.h>
9#include <aws/mediastore/model/ContainerLevelMetrics.h>
10#include <aws/mediastore/model/MetricPolicyRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaStore {
22namespace Model {
23
37 public:
38 AWS_MEDIASTORE_API MetricPolicy() = default;
39 AWS_MEDIASTORE_API MetricPolicy(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIASTORE_API MetricPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MEDIASTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline ContainerLevelMetrics GetContainerLevelMetrics() const { return m_containerLevelMetrics; }
48 inline bool ContainerLevelMetricsHasBeenSet() const { return m_containerLevelMetricsHasBeenSet; }
50 m_containerLevelMetricsHasBeenSet = true;
51 m_containerLevelMetrics = value;
52 }
58
60
68 inline const Aws::Vector<MetricPolicyRule>& GetMetricPolicyRules() const { return m_metricPolicyRules; }
69 inline bool MetricPolicyRulesHasBeenSet() const { return m_metricPolicyRulesHasBeenSet; }
70 template <typename MetricPolicyRulesT = Aws::Vector<MetricPolicyRule>>
71 void SetMetricPolicyRules(MetricPolicyRulesT&& value) {
72 m_metricPolicyRulesHasBeenSet = true;
73 m_metricPolicyRules = std::forward<MetricPolicyRulesT>(value);
74 }
75 template <typename MetricPolicyRulesT = Aws::Vector<MetricPolicyRule>>
76 MetricPolicy& WithMetricPolicyRules(MetricPolicyRulesT&& value) {
77 SetMetricPolicyRules(std::forward<MetricPolicyRulesT>(value));
78 return *this;
79 }
80 template <typename MetricPolicyRulesT = MetricPolicyRule>
81 MetricPolicy& AddMetricPolicyRules(MetricPolicyRulesT&& value) {
82 m_metricPolicyRulesHasBeenSet = true;
83 m_metricPolicyRules.emplace_back(std::forward<MetricPolicyRulesT>(value));
84 return *this;
85 }
87 private:
89
90 Aws::Vector<MetricPolicyRule> m_metricPolicyRules;
91 bool m_containerLevelMetricsHasBeenSet = false;
92 bool m_metricPolicyRulesHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace MediaStore
97} // namespace Aws
AWS_MEDIASTORE_API MetricPolicy()=default
AWS_MEDIASTORE_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerLevelMetrics GetContainerLevelMetrics() const
void SetContainerLevelMetrics(ContainerLevelMetrics value)
AWS_MEDIASTORE_API MetricPolicy(Aws::Utils::Json::JsonView jsonValue)
MetricPolicy & WithMetricPolicyRules(MetricPolicyRulesT &&value)
void SetMetricPolicyRules(MetricPolicyRulesT &&value)
const Aws::Vector< MetricPolicyRule > & GetMetricPolicyRules() const
MetricPolicy & AddMetricPolicyRules(MetricPolicyRulesT &&value)
MetricPolicy & WithContainerLevelMetrics(ContainerLevelMetrics value)
AWS_MEDIASTORE_API MetricPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue