AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
Transformer.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/eventbridgev2/EventBridgeV2_EXPORTS.h>
9#include <aws/eventbridgev2/model/JsonataConfiguration.h>
10#include <aws/eventbridgev2/model/TransformerType.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
29 public:
30 AWS_EVENTBRIDGEV2_API Transformer() = default;
31 AWS_EVENTBRIDGEV2_API Transformer(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_EVENTBRIDGEV2_API Transformer& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline TransformerType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(TransformerType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline const JsonataConfiguration& GetJsonataConfiguration() const { return m_jsonataConfiguration; }
56 inline bool JsonataConfigurationHasBeenSet() const { return m_jsonataConfigurationHasBeenSet; }
57 template <typename JsonataConfigurationT = JsonataConfiguration>
58 void SetJsonataConfiguration(JsonataConfigurationT&& value) {
59 m_jsonataConfigurationHasBeenSet = true;
60 m_jsonataConfiguration = std::forward<JsonataConfigurationT>(value);
61 }
62 template <typename JsonataConfigurationT = JsonataConfiguration>
63 Transformer& WithJsonataConfiguration(JsonataConfigurationT&& value) {
64 SetJsonataConfiguration(std::forward<JsonataConfigurationT>(value));
65 return *this;
66 }
68 private:
70
71 JsonataConfiguration m_jsonataConfiguration;
72 bool m_typeHasBeenSet = false;
73 bool m_jsonataConfigurationHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace EventBridgeV2
78} // namespace Aws
TransformerType GetType() const
Definition Transformer.h:39
AWS_EVENTBRIDGEV2_API Transformer(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Transformer & WithType(TransformerType value)
Definition Transformer.h:45
AWS_EVENTBRIDGEV2_API Transformer & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetType(TransformerType value)
Definition Transformer.h:41
Transformer & WithJsonataConfiguration(JsonataConfigurationT &&value)
Definition Transformer.h:63
void SetJsonataConfiguration(JsonataConfigurationT &&value)
Definition Transformer.h:58
AWS_EVENTBRIDGEV2_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_EVENTBRIDGEV2_API Transformer()=default
const JsonataConfiguration & GetJsonataConfiguration() const
Definition Transformer.h:55