AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
EventBusV2Parameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
11#include <aws/eventbridgev2/model/DeduplicationConfiguration.h>
12#include <aws/eventbridgev2/model/EventBusV2SystemMetadata.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace EventBridgeV2 {
23namespace Model {
24
32 public:
33 AWS_EVENTBRIDGEV2_API EventBusV2Parameters() = default;
34 AWS_EVENTBRIDGEV2_API EventBusV2Parameters(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_EVENTBRIDGEV2_API EventBusV2Parameters& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
43 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
44 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
45 void SetMetadata(MetadataT&& value) {
46 m_metadataHasBeenSet = true;
47 m_metadata = std::forward<MetadataT>(value);
48 }
49 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
50 EventBusV2Parameters& WithMetadata(MetadataT&& value) {
51 SetMetadata(std::forward<MetadataT>(value));
52 return *this;
53 }
54 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
55 EventBusV2Parameters& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
56 m_metadataHasBeenSet = true;
57 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
58 return *this;
59 }
61
63
66 inline const EventBusV2SystemMetadata& GetSystemMetadata() const { return m_systemMetadata; }
67 inline bool SystemMetadataHasBeenSet() const { return m_systemMetadataHasBeenSet; }
68 template <typename SystemMetadataT = EventBusV2SystemMetadata>
69 void SetSystemMetadata(SystemMetadataT&& value) {
70 m_systemMetadataHasBeenSet = true;
71 m_systemMetadata = std::forward<SystemMetadataT>(value);
72 }
73 template <typename SystemMetadataT = EventBusV2SystemMetadata>
74 EventBusV2Parameters& WithSystemMetadata(SystemMetadataT&& value) {
75 SetSystemMetadata(std::forward<SystemMetadataT>(value));
76 return *this;
77 }
79
81
85 inline const DeduplicationConfiguration& GetDeduplicationConfiguration() const { return m_deduplicationConfiguration; }
86 inline bool DeduplicationConfigurationHasBeenSet() const { return m_deduplicationConfigurationHasBeenSet; }
87 template <typename DeduplicationConfigurationT = DeduplicationConfiguration>
88 void SetDeduplicationConfiguration(DeduplicationConfigurationT&& value) {
89 m_deduplicationConfigurationHasBeenSet = true;
90 m_deduplicationConfiguration = std::forward<DeduplicationConfigurationT>(value);
91 }
92 template <typename DeduplicationConfigurationT = DeduplicationConfiguration>
93 EventBusV2Parameters& WithDeduplicationConfiguration(DeduplicationConfigurationT&& value) {
94 SetDeduplicationConfiguration(std::forward<DeduplicationConfigurationT>(value));
95 return *this;
96 }
98 private:
100
101 EventBusV2SystemMetadata m_systemMetadata;
102
103 DeduplicationConfiguration m_deduplicationConfiguration;
104 bool m_metadataHasBeenSet = false;
105 bool m_systemMetadataHasBeenSet = false;
106 bool m_deduplicationConfigurationHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace EventBridgeV2
111} // namespace Aws
void SetDeduplicationConfiguration(DeduplicationConfigurationT &&value)
EventBusV2Parameters & WithDeduplicationConfiguration(DeduplicationConfigurationT &&value)
EventBusV2Parameters & WithSystemMetadata(SystemMetadataT &&value)
EventBusV2Parameters & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
AWS_EVENTBRIDGEV2_API EventBusV2Parameters & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const DeduplicationConfiguration & GetDeduplicationConfiguration() const
AWS_EVENTBRIDGEV2_API EventBusV2Parameters(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EventBusV2Parameters & WithMetadata(MetadataT &&value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const EventBusV2SystemMetadata & GetSystemMetadata() const
AWS_EVENTBRIDGEV2_API EventBusV2Parameters()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map