AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
AwsServiceEventsSourceConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
10#include <aws/eventbridgev2/model/OnFailureConfiguration.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 AwsServiceEventsSourceConfiguration() = default;
32 AWS_EVENTBRIDGEV2_API AwsServiceEventsSourceConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_EVENTBRIDGEV2_API AwsServiceEventsSourceConfiguration& 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 Aws::String& GetAwsService() const { return m_awsService; }
39 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
40 template <typename AwsServiceT = Aws::String>
41 void SetAwsService(AwsServiceT&& value) {
42 m_awsServiceHasBeenSet = true;
43 m_awsService = std::forward<AwsServiceT>(value);
44 }
45 template <typename AwsServiceT = Aws::String>
47 SetAwsService(std::forward<AwsServiceT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetPattern() const { return m_pattern; }
60 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
61 template <typename PatternT = Aws::String>
62 void SetPattern(PatternT&& value) {
63 m_patternHasBeenSet = true;
64 m_pattern = std::forward<PatternT>(value);
65 }
66 template <typename PatternT = Aws::String>
68 SetPattern(std::forward<PatternT>(value));
69 return *this;
70 }
72
74
77 inline const OnFailureConfiguration& GetOnFailureConfiguration() const { return m_onFailureConfiguration; }
78 inline bool OnFailureConfigurationHasBeenSet() const { return m_onFailureConfigurationHasBeenSet; }
79 template <typename OnFailureConfigurationT = OnFailureConfiguration>
80 void SetOnFailureConfiguration(OnFailureConfigurationT&& value) {
81 m_onFailureConfigurationHasBeenSet = true;
82 m_onFailureConfiguration = std::forward<OnFailureConfigurationT>(value);
83 }
84 template <typename OnFailureConfigurationT = OnFailureConfiguration>
86 SetOnFailureConfiguration(std::forward<OnFailureConfigurationT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_awsService;
92
93 Aws::String m_pattern;
94
95 OnFailureConfiguration m_onFailureConfiguration;
96 bool m_awsServiceHasBeenSet = false;
97 bool m_patternHasBeenSet = false;
98 bool m_onFailureConfigurationHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EventBridgeV2
103} // namespace Aws
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AwsServiceEventsSourceConfiguration & WithPattern(PatternT &&value)
AwsServiceEventsSourceConfiguration & WithAwsService(AwsServiceT &&value)
AWS_EVENTBRIDGEV2_API AwsServiceEventsSourceConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AwsServiceEventsSourceConfiguration & WithOnFailureConfiguration(OnFailureConfigurationT &&value)
AWS_EVENTBRIDGEV2_API AwsServiceEventsSourceConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_EVENTBRIDGEV2_API AwsServiceEventsSourceConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String