AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
46 inline const Aws::Vector<EventSourceMappingMetric>& GetMetrics() const { return m_metrics; }
47 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
48 template <typename MetricsT = Aws::Vector<EventSourceMappingMetric>>
49 void SetMetrics(MetricsT&& value) {
50 m_metricsHasBeenSet = true;
51 m_metrics = std::forward<MetricsT>(value);
52 }
53 template <typename MetricsT = Aws::Vector<EventSourceMappingMetric>>
55 SetMetrics(std::forward<MetricsT>(value));
56 return *this;
57 }
59 m_metricsHasBeenSet = true;
60 m_metrics.push_back(value);
61 return *this;
62 }
64 private:
66 bool m_metricsHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace Lambda
71} // 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