AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReplayDestination.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/eventbridge/EventBridge_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EventBridge {
21namespace Model {
22
30 public:
31 AWS_EVENTBRIDGE_API ReplayDestination() = default;
32 AWS_EVENTBRIDGE_API ReplayDestination(Aws::Utils::Json::JsonView jsonValue);
34 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 ReplayDestination& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetFilterArns() const { return m_filterArns; }
60 inline bool FilterArnsHasBeenSet() const { return m_filterArnsHasBeenSet; }
61 template <typename FilterArnsT = Aws::Vector<Aws::String>>
62 void SetFilterArns(FilterArnsT&& value) {
63 m_filterArnsHasBeenSet = true;
64 m_filterArns = std::forward<FilterArnsT>(value);
65 }
66 template <typename FilterArnsT = Aws::Vector<Aws::String>>
67 ReplayDestination& WithFilterArns(FilterArnsT&& value) {
68 SetFilterArns(std::forward<FilterArnsT>(value));
69 return *this;
70 }
71 template <typename FilterArnsT = Aws::String>
72 ReplayDestination& AddFilterArns(FilterArnsT&& value) {
73 m_filterArnsHasBeenSet = true;
74 m_filterArns.emplace_back(std::forward<FilterArnsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_arn;
80
81 Aws::Vector<Aws::String> m_filterArns;
82 bool m_arnHasBeenSet = false;
83 bool m_filterArnsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace EventBridge
88} // namespace Aws
ReplayDestination & AddFilterArns(FilterArnsT &&value)
ReplayDestination & WithFilterArns(FilterArnsT &&value)
const Aws::Vector< Aws::String > & GetFilterArns() const
AWS_EVENTBRIDGE_API ReplayDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API ReplayDestination()=default
ReplayDestination & WithArn(ArnT &&value)
AWS_EVENTBRIDGE_API ReplayDestination(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue