AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PipeSourceManagedStreamingKafkaParameters.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pipes/model/MSKStartPosition.h>
10#include <aws/pipes/model/MSKAccessCredentials.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pipes
24{
25namespace Model
26{
27
35 {
36 public:
40 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTopicName() const { return m_topicName; }
48 inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; }
49 template<typename TopicNameT = Aws::String>
50 void SetTopicName(TopicNameT&& value) { m_topicNameHasBeenSet = true; m_topicName = std::forward<TopicNameT>(value); }
51 template<typename TopicNameT = Aws::String>
52 PipeSourceManagedStreamingKafkaParameters& WithTopicName(TopicNameT&& value) { SetTopicName(std::forward<TopicNameT>(value)); return *this;}
54
56
59 inline MSKStartPosition GetStartingPosition() const { return m_startingPosition; }
60 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
61 inline void SetStartingPosition(MSKStartPosition value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
64
66
69 inline int GetBatchSize() const { return m_batchSize; }
70 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
71 inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
72 inline PipeSourceManagedStreamingKafkaParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;}
74
76
79 inline int GetMaximumBatchingWindowInSeconds() const { return m_maximumBatchingWindowInSeconds; }
80 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
81 inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
84
86
89 inline const Aws::String& GetConsumerGroupID() const { return m_consumerGroupID; }
90 inline bool ConsumerGroupIDHasBeenSet() const { return m_consumerGroupIDHasBeenSet; }
91 template<typename ConsumerGroupIDT = Aws::String>
92 void SetConsumerGroupID(ConsumerGroupIDT&& value) { m_consumerGroupIDHasBeenSet = true; m_consumerGroupID = std::forward<ConsumerGroupIDT>(value); }
93 template<typename ConsumerGroupIDT = Aws::String>
94 PipeSourceManagedStreamingKafkaParameters& WithConsumerGroupID(ConsumerGroupIDT&& value) { SetConsumerGroupID(std::forward<ConsumerGroupIDT>(value)); return *this;}
96
98
101 inline const MSKAccessCredentials& GetCredentials() const { return m_credentials; }
102 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
103 template<typename CredentialsT = MSKAccessCredentials>
104 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
105 template<typename CredentialsT = MSKAccessCredentials>
106 PipeSourceManagedStreamingKafkaParameters& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
108 private:
109
110 Aws::String m_topicName;
111 bool m_topicNameHasBeenSet = false;
112
114 bool m_startingPositionHasBeenSet = false;
115
116 int m_batchSize{0};
117 bool m_batchSizeHasBeenSet = false;
118
119 int m_maximumBatchingWindowInSeconds{0};
120 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
121
122 Aws::String m_consumerGroupID;
123 bool m_consumerGroupIDHasBeenSet = false;
124
125 MSKAccessCredentials m_credentials;
126 bool m_credentialsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Pipes
131} // namespace Aws
PipeSourceManagedStreamingKafkaParameters & WithTopicName(TopicNameT &&value)
PipeSourceManagedStreamingKafkaParameters & WithCredentials(CredentialsT &&value)
PipeSourceManagedStreamingKafkaParameters & WithConsumerGroupID(ConsumerGroupIDT &&value)
AWS_PIPES_API PipeSourceManagedStreamingKafkaParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
PipeSourceManagedStreamingKafkaParameters & WithStartingPosition(MSKStartPosition value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PIPES_API PipeSourceManagedStreamingKafkaParameters(Aws::Utils::Json::JsonView jsonValue)
PipeSourceManagedStreamingKafkaParameters & WithMaximumBatchingWindowInSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue