AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EventSourceMappingMetricsConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9#include <aws/lambda/model/EventSourceMappingMetric.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
31 public:
32 AWS_LAMBDA_API EventSourceMappingMetricsConfig() = default;
35 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
52 inline const Aws::Vector<EventSourceMappingMetric>& GetMetrics() const { return m_metrics; }
53 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
54 template <typename MetricsT = Aws::Vector<EventSourceMappingMetric>>
55 void SetMetrics(MetricsT&& value) {
56 m_metricsHasBeenSet = true;
57 m_metrics = std::forward<MetricsT>(value);
58 }
59 template <typename MetricsT = Aws::Vector<EventSourceMappingMetric>>
61 SetMetrics(std::forward<MetricsT>(value));
62 return *this;
63 }
65 m_metricsHasBeenSet = true;
66 m_metrics.push_back(value);
67 return *this;
68 }
70 private:
72 bool m_metricsHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Lambda
77} // namespace Aws
EventSourceMappingMetricsConfig & AddMetrics(EventSourceMappingMetric value)
AWS_LAMBDA_API EventSourceMappingMetricsConfig()=default
AWS_LAMBDA_API EventSourceMappingMetricsConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API EventSourceMappingMetricsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EventSourceMappingMetric > & GetMetrics() const
EventSourceMappingMetricsConfig & WithMetrics(MetricsT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue