AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
EventSourceConfiguration.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
9#include <aws/eventbridgev2/model/AwsServiceEventsSourceConfiguration.h>
10#include <aws/eventbridgev2/model/PartnerEventsSourceConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace EventBridgeV2 {
21namespace Model {
22
30 public:
31 AWS_EVENTBRIDGEV2_API EventSourceConfiguration() = default;
32 AWS_EVENTBRIDGEV2_API EventSourceConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_EVENTBRIDGEV2_API EventSourceConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
38 inline const AwsServiceEventsSourceConfiguration& GetAwsServiceEventsConfiguration() const { return m_awsServiceEventsConfiguration; }
39 inline bool AwsServiceEventsConfigurationHasBeenSet() const { return m_awsServiceEventsConfigurationHasBeenSet; }
40 template <typename AwsServiceEventsConfigurationT = AwsServiceEventsSourceConfiguration>
41 void SetAwsServiceEventsConfiguration(AwsServiceEventsConfigurationT&& value) {
42 m_awsServiceEventsConfigurationHasBeenSet = true;
43 m_awsServiceEventsConfiguration = std::forward<AwsServiceEventsConfigurationT>(value);
44 }
45 template <typename AwsServiceEventsConfigurationT = AwsServiceEventsSourceConfiguration>
46 EventSourceConfiguration& WithAwsServiceEventsConfiguration(AwsServiceEventsConfigurationT&& value) {
47 SetAwsServiceEventsConfiguration(std::forward<AwsServiceEventsConfigurationT>(value));
48 return *this;
49 }
51
53
54 inline const PartnerEventsSourceConfiguration& GetPartnerEventsConfiguration() const { return m_partnerEventsConfiguration; }
55 inline bool PartnerEventsConfigurationHasBeenSet() const { return m_partnerEventsConfigurationHasBeenSet; }
56 template <typename PartnerEventsConfigurationT = PartnerEventsSourceConfiguration>
57 void SetPartnerEventsConfiguration(PartnerEventsConfigurationT&& value) {
58 m_partnerEventsConfigurationHasBeenSet = true;
59 m_partnerEventsConfiguration = std::forward<PartnerEventsConfigurationT>(value);
60 }
61 template <typename PartnerEventsConfigurationT = PartnerEventsSourceConfiguration>
62 EventSourceConfiguration& WithPartnerEventsConfiguration(PartnerEventsConfigurationT&& value) {
63 SetPartnerEventsConfiguration(std::forward<PartnerEventsConfigurationT>(value));
64 return *this;
65 }
67 private:
68 AwsServiceEventsSourceConfiguration m_awsServiceEventsConfiguration;
69
70 PartnerEventsSourceConfiguration m_partnerEventsConfiguration;
71 bool m_awsServiceEventsConfigurationHasBeenSet = false;
72 bool m_partnerEventsConfigurationHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace EventBridgeV2
77} // namespace Aws
void SetAwsServiceEventsConfiguration(AwsServiceEventsConfigurationT &&value)
EventSourceConfiguration & WithPartnerEventsConfiguration(PartnerEventsConfigurationT &&value)
void SetPartnerEventsConfiguration(PartnerEventsConfigurationT &&value)
AWS_EVENTBRIDGEV2_API EventSourceConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API EventSourceConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const PartnerEventsSourceConfiguration & GetPartnerEventsConfiguration() const
const AwsServiceEventsSourceConfiguration & GetAwsServiceEventsConfiguration() const
AWS_EVENTBRIDGEV2_API EventSourceConfiguration()=default
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
EventSourceConfiguration & WithAwsServiceEventsConfiguration(AwsServiceEventsConfigurationT &&value)