AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FirehoseAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9#include <aws/iotevents/model/Payload.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTEvents {
21namespace Model {
22
31 public:
32 AWS_IOTEVENTS_API FirehoseAction() = default;
33 AWS_IOTEVENTS_API FirehoseAction(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetDeliveryStreamName() const { return m_deliveryStreamName; }
43 inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; }
44 template <typename DeliveryStreamNameT = Aws::String>
45 void SetDeliveryStreamName(DeliveryStreamNameT&& value) {
46 m_deliveryStreamNameHasBeenSet = true;
47 m_deliveryStreamName = std::forward<DeliveryStreamNameT>(value);
48 }
49 template <typename DeliveryStreamNameT = Aws::String>
50 FirehoseAction& WithDeliveryStreamName(DeliveryStreamNameT&& value) {
51 SetDeliveryStreamName(std::forward<DeliveryStreamNameT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetSeparator() const { return m_separator; }
63 inline bool SeparatorHasBeenSet() const { return m_separatorHasBeenSet; }
64 template <typename SeparatorT = Aws::String>
65 void SetSeparator(SeparatorT&& value) {
66 m_separatorHasBeenSet = true;
67 m_separator = std::forward<SeparatorT>(value);
68 }
69 template <typename SeparatorT = Aws::String>
70 FirehoseAction& WithSeparator(SeparatorT&& value) {
71 SetSeparator(std::forward<SeparatorT>(value));
72 return *this;
73 }
75
77
81 inline const Payload& GetPayload() const { return m_payload; }
82 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
83 template <typename PayloadT = Payload>
84 void SetPayload(PayloadT&& value) {
85 m_payloadHasBeenSet = true;
86 m_payload = std::forward<PayloadT>(value);
87 }
88 template <typename PayloadT = Payload>
89 FirehoseAction& WithPayload(PayloadT&& value) {
90 SetPayload(std::forward<PayloadT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_deliveryStreamName;
96
97 Aws::String m_separator;
98
99 Payload m_payload;
100 bool m_deliveryStreamNameHasBeenSet = false;
101 bool m_separatorHasBeenSet = false;
102 bool m_payloadHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace IoTEvents
107} // namespace Aws
FirehoseAction & WithPayload(PayloadT &&value)
const Aws::String & GetSeparator() const
FirehoseAction & WithDeliveryStreamName(DeliveryStreamNameT &&value)
AWS_IOTEVENTS_API FirehoseAction(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API FirehoseAction()=default
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSeparator(SeparatorT &&value)
AWS_IOTEVENTS_API FirehoseAction & operator=(Aws::Utils::Json::JsonView jsonValue)
FirehoseAction & WithSeparator(SeparatorT &&value)
void SetDeliveryStreamName(DeliveryStreamNameT &&value)
const Aws::String & GetDeliveryStreamName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue