AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; }
50 inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); }
51 inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); }
53 inline PipeSourceManagedStreamingKafkaParameters& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;}
54 inline PipeSourceManagedStreamingKafkaParameters& WithTopicName(const char* value) { SetTopicName(value); return *this;}
56
58
61 inline const MSKStartPosition& GetStartingPosition() const{ return m_startingPosition; }
62 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
63 inline void SetStartingPosition(const MSKStartPosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
64 inline void SetStartingPosition(MSKStartPosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); }
68
70
73 inline int GetBatchSize() const{ return m_batchSize; }
74 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
75 inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; }
76 inline PipeSourceManagedStreamingKafkaParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;}
78
80
83 inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; }
84 inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; }
85 inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; }
88
90
93 inline const Aws::String& GetConsumerGroupID() const{ return m_consumerGroupID; }
94 inline bool ConsumerGroupIDHasBeenSet() const { return m_consumerGroupIDHasBeenSet; }
95 inline void SetConsumerGroupID(const Aws::String& value) { m_consumerGroupIDHasBeenSet = true; m_consumerGroupID = value; }
96 inline void SetConsumerGroupID(Aws::String&& value) { m_consumerGroupIDHasBeenSet = true; m_consumerGroupID = std::move(value); }
97 inline void SetConsumerGroupID(const char* value) { m_consumerGroupIDHasBeenSet = true; m_consumerGroupID.assign(value); }
100 inline PipeSourceManagedStreamingKafkaParameters& WithConsumerGroupID(const char* value) { SetConsumerGroupID(value); return *this;}
102
104
107 inline const MSKAccessCredentials& GetCredentials() const{ return m_credentials; }
108 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
109 inline void SetCredentials(const MSKAccessCredentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; }
110 inline void SetCredentials(MSKAccessCredentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); }
114 private:
115
116 Aws::String m_topicName;
117 bool m_topicNameHasBeenSet = false;
118
119 MSKStartPosition m_startingPosition;
120 bool m_startingPositionHasBeenSet = false;
121
122 int m_batchSize;
123 bool m_batchSizeHasBeenSet = false;
124
125 int m_maximumBatchingWindowInSeconds;
126 bool m_maximumBatchingWindowInSecondsHasBeenSet = false;
127
128 Aws::String m_consumerGroupID;
129 bool m_consumerGroupIDHasBeenSet = false;
130
131 MSKAccessCredentials m_credentials;
132 bool m_credentialsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Pipes
137} // namespace Aws
PipeSourceManagedStreamingKafkaParameters & WithTopicName(const Aws::String &value)
PipeSourceManagedStreamingKafkaParameters & WithTopicName(Aws::String &&value)
AWS_PIPES_API PipeSourceManagedStreamingKafkaParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
PipeSourceManagedStreamingKafkaParameters & WithCredentials(MSKAccessCredentials &&value)
PipeSourceManagedStreamingKafkaParameters & WithConsumerGroupID(const Aws::String &value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
PipeSourceManagedStreamingKafkaParameters & WithTopicName(const char *value)
PipeSourceManagedStreamingKafkaParameters & WithCredentials(const MSKAccessCredentials &value)
PipeSourceManagedStreamingKafkaParameters & WithConsumerGroupID(const char *value)
PipeSourceManagedStreamingKafkaParameters & WithStartingPosition(MSKStartPosition &&value)
AWS_PIPES_API PipeSourceManagedStreamingKafkaParameters(Aws::Utils::Json::JsonView jsonValue)
PipeSourceManagedStreamingKafkaParameters & WithStartingPosition(const MSKStartPosition &value)
PipeSourceManagedStreamingKafkaParameters & WithConsumerGroupID(Aws::String &&value)
PipeSourceManagedStreamingKafkaParameters & WithMaximumBatchingWindowInSeconds(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue