AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EventSourceMappingMetricsConfig.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lambda/model/EventSourceMappingMetric.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_LAMBDA_API EventSourceMappingMetricsConfig() = default;
40 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
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) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
56 template<typename MetricsT = Aws::Vector<EventSourceMappingMetric>>
57 EventSourceMappingMetricsConfig& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
58 inline EventSourceMappingMetricsConfig& AddMetrics(EventSourceMappingMetric value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
60 private:
61
63 bool m_metricsHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace Lambda
68} // 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