/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The parameters for using a Rabbit MQ broker 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 PipeSourceRabbitMQBrokerParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** *The credentials needed to access the resource.
*/ inline const MQBrokerAccessCredentials& 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 MQBrokerAccessCredentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; } /** *The credentials needed to access the resource.
*/ inline void SetCredentials(MQBrokerAccessCredentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); } /** *The credentials needed to access the resource.
*/ inline PipeSourceRabbitMQBrokerParameters& WithCredentials(const MQBrokerAccessCredentials& value) { SetCredentials(value); return *this;} /** *The credentials needed to access the resource.
*/ inline PipeSourceRabbitMQBrokerParameters& WithCredentials(MQBrokerAccessCredentials&& 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 PipeSourceRabbitMQBrokerParameters& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} /** *The name of the destination queue to consume.
*/ inline const Aws::String& GetQueueName() const{ return m_queueName; } /** *The name of the destination queue to consume.
*/ inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; } /** *The name of the destination queue to consume.
*/ inline void SetQueueName(const Aws::String& value) { m_queueNameHasBeenSet = true; m_queueName = value; } /** *The name of the destination queue to consume.
*/ inline void SetQueueName(Aws::String&& value) { m_queueNameHasBeenSet = true; m_queueName = std::move(value); } /** *The name of the destination queue to consume.
*/ inline void SetQueueName(const char* value) { m_queueNameHasBeenSet = true; m_queueName.assign(value); } /** *The name of the destination queue to consume.
*/ inline PipeSourceRabbitMQBrokerParameters& WithQueueName(const Aws::String& value) { SetQueueName(value); return *this;} /** *The name of the destination queue to consume.
*/ inline PipeSourceRabbitMQBrokerParameters& WithQueueName(Aws::String&& value) { SetQueueName(std::move(value)); return *this;} /** *The name of the destination queue to consume.
*/ inline PipeSourceRabbitMQBrokerParameters& WithQueueName(const char* value) { SetQueueName(value); return *this;} /** *The name of the virtual host associated with the source broker.
*/ inline const Aws::String& GetVirtualHost() const{ return m_virtualHost; } /** *The name of the virtual host associated with the source broker.
*/ inline bool VirtualHostHasBeenSet() const { return m_virtualHostHasBeenSet; } /** *The name of the virtual host associated with the source broker.
*/ inline void SetVirtualHost(const Aws::String& value) { m_virtualHostHasBeenSet = true; m_virtualHost = value; } /** *The name of the virtual host associated with the source broker.
*/ inline void SetVirtualHost(Aws::String&& value) { m_virtualHostHasBeenSet = true; m_virtualHost = std::move(value); } /** *The name of the virtual host associated with the source broker.
*/ inline void SetVirtualHost(const char* value) { m_virtualHostHasBeenSet = true; m_virtualHost.assign(value); } /** *The name of the virtual host associated with the source broker.
*/ inline PipeSourceRabbitMQBrokerParameters& WithVirtualHost(const Aws::String& value) { SetVirtualHost(value); return *this;} /** *The name of the virtual host associated with the source broker.
*/ inline PipeSourceRabbitMQBrokerParameters& WithVirtualHost(Aws::String&& value) { SetVirtualHost(std::move(value)); return *this;} /** *The name of the virtual host associated with the source broker.
*/ inline PipeSourceRabbitMQBrokerParameters& WithVirtualHost(const char* value) { SetVirtualHost(value); return *this;} private: int m_batchSize; bool m_batchSizeHasBeenSet = false; MQBrokerAccessCredentials m_credentials; bool m_credentialsHasBeenSet = false; int m_maximumBatchingWindowInSeconds; bool m_maximumBatchingWindowInSecondsHasBeenSet = false; Aws::String m_queueName; bool m_queueNameHasBeenSet = false; Aws::String m_virtualHost; bool m_virtualHostHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws