/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The parameters for using an MSK stream as a source.See Also:
* AWS
* API Reference
The maximum number of records to include in each batch.
*/ inline int GetBatchSize() const{ return m_batchSize; } /** *The maximum number of records to include in each batch.
*/ inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; } /** *The maximum number of records to include in each batch.
*/ inline void SetBatchSize(int value) { m_batchSizeHasBeenSet = true; m_batchSize = value; } /** *The maximum number of records to include in each batch.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** *The name of the destination queue to consume.
*/ inline const Aws::String& GetConsumerGroupID() const{ return m_consumerGroupID; } /** *The name of the destination queue to consume.
*/ inline bool ConsumerGroupIDHasBeenSet() const { return m_consumerGroupIDHasBeenSet; } /** *The name of the destination queue to consume.
*/ inline void SetConsumerGroupID(const Aws::String& value) { m_consumerGroupIDHasBeenSet = true; m_consumerGroupID = value; } /** *The name of the destination queue to consume.
*/ inline void SetConsumerGroupID(Aws::String&& value) { m_consumerGroupIDHasBeenSet = true; m_consumerGroupID = std::move(value); } /** *The name of the destination queue to consume.
*/ inline void SetConsumerGroupID(const char* value) { m_consumerGroupIDHasBeenSet = true; m_consumerGroupID.assign(value); } /** *The name of the destination queue to consume.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithConsumerGroupID(const Aws::String& value) { SetConsumerGroupID(value); return *this;} /** *The name of the destination queue to consume.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithConsumerGroupID(Aws::String&& value) { SetConsumerGroupID(std::move(value)); return *this;} /** *The name of the destination queue to consume.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithConsumerGroupID(const char* value) { SetConsumerGroupID(value); return *this;} /** *The credentials needed to access the resource.
*/ inline const MSKAccessCredentials& GetCredentials() const{ return m_credentials; } /** *The credentials needed to access the resource.
*/ inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; } /** *The credentials needed to access the resource.
*/ inline void SetCredentials(const MSKAccessCredentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; } /** *The credentials needed to access the resource.
*/ inline void SetCredentials(MSKAccessCredentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); } /** *The credentials needed to access the resource.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithCredentials(const MSKAccessCredentials& value) { SetCredentials(value); return *this;} /** *The credentials needed to access the resource.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithCredentials(MSKAccessCredentials&& value) { SetCredentials(std::move(value)); return *this;} /** *The maximum length of a time to wait for events.
*/ inline int GetMaximumBatchingWindowInSeconds() const{ return m_maximumBatchingWindowInSeconds; } /** *The maximum length of a time to wait for events.
*/ inline bool MaximumBatchingWindowInSecondsHasBeenSet() const { return m_maximumBatchingWindowInSecondsHasBeenSet; } /** *The maximum length of a time to wait for events.
*/ inline void SetMaximumBatchingWindowInSeconds(int value) { m_maximumBatchingWindowInSecondsHasBeenSet = true; m_maximumBatchingWindowInSeconds = value; } /** *The maximum length of a time to wait for events.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} /** *(Streams only) The position in a stream from which to start reading.
*/ inline const MSKStartPosition& GetStartingPosition() const{ return m_startingPosition; } /** *(Streams only) The position in a stream from which to start reading.
*/ inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; } /** *(Streams only) The position in a stream from which to start reading.
*/ inline void SetStartingPosition(const MSKStartPosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; } /** *(Streams only) The position in a stream from which to start reading.
*/ inline void SetStartingPosition(MSKStartPosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); } /** *(Streams only) The position in a stream from which to start reading.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithStartingPosition(const MSKStartPosition& value) { SetStartingPosition(value); return *this;} /** *(Streams only) The position in a stream from which to start reading.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithStartingPosition(MSKStartPosition&& value) { SetStartingPosition(std::move(value)); return *this;} /** *The name of the topic that the pipe will read from.
*/ inline const Aws::String& GetTopicName() const{ return m_topicName; } /** *The name of the topic that the pipe will read from.
*/ inline bool TopicNameHasBeenSet() const { return m_topicNameHasBeenSet; } /** *The name of the topic that the pipe will read from.
*/ inline void SetTopicName(const Aws::String& value) { m_topicNameHasBeenSet = true; m_topicName = value; } /** *The name of the topic that the pipe will read from.
*/ inline void SetTopicName(Aws::String&& value) { m_topicNameHasBeenSet = true; m_topicName = std::move(value); } /** *The name of the topic that the pipe will read from.
*/ inline void SetTopicName(const char* value) { m_topicNameHasBeenSet = true; m_topicName.assign(value); } /** *The name of the topic that the pipe will read from.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithTopicName(const Aws::String& value) { SetTopicName(value); return *this;} /** *The name of the topic that the pipe will read from.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithTopicName(Aws::String&& value) { SetTopicName(std::move(value)); return *this;} /** *The name of the topic that the pipe will read from.
*/ inline PipeSourceManagedStreamingKafkaParameters& WithTopicName(const char* value) { SetTopicName(value); return *this;} private: int m_batchSize; bool m_batchSizeHasBeenSet = false; Aws::String m_consumerGroupID; bool m_consumerGroupIDHasBeenSet = false; MSKAccessCredentials m_credentials; bool m_credentialsHasBeenSet = false; int m_maximumBatchingWindowInSeconds; bool m_maximumBatchingWindowInSecondsHasBeenSet = false; MSKStartPosition m_startingPosition; bool m_startingPositionHasBeenSet = false; Aws::String m_topicName; bool m_topicNameHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws