/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pipes { namespace Model { /** *

The parameters for using a self-managed Apache Kafka stream as a * source.

See Also:

AWS * API Reference

*/ class UpdatePipeSourceSelfManagedKafkaParameters { public: AWS_PIPES_API UpdatePipeSourceSelfManagedKafkaParameters(); AWS_PIPES_API UpdatePipeSourceSelfManagedKafkaParameters(Aws::Utils::Json::JsonView jsonValue); AWS_PIPES_API UpdatePipeSourceSelfManagedKafkaParameters& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 UpdatePipeSourceSelfManagedKafkaParameters& WithBatchSize(int value) { SetBatchSize(value); return *this;} /** *

The credentials needed to access the resource.

*/ inline const SelfManagedKafkaAccessConfigurationCredentials& 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 SelfManagedKafkaAccessConfigurationCredentials& value) { m_credentialsHasBeenSet = true; m_credentials = value; } /** *

The credentials needed to access the resource.

*/ inline void SetCredentials(SelfManagedKafkaAccessConfigurationCredentials&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); } /** *

The credentials needed to access the resource.

*/ inline UpdatePipeSourceSelfManagedKafkaParameters& WithCredentials(const SelfManagedKafkaAccessConfigurationCredentials& value) { SetCredentials(value); return *this;} /** *

The credentials needed to access the resource.

*/ inline UpdatePipeSourceSelfManagedKafkaParameters& WithCredentials(SelfManagedKafkaAccessConfigurationCredentials&& 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 UpdatePipeSourceSelfManagedKafkaParameters& WithMaximumBatchingWindowInSeconds(int value) { SetMaximumBatchingWindowInSeconds(value); return *this;} /** *

The ARN of the Secrets Manager secret used for certification.

*/ inline const Aws::String& GetServerRootCaCertificate() const{ return m_serverRootCaCertificate; } /** *

The ARN of the Secrets Manager secret used for certification.

*/ inline bool ServerRootCaCertificateHasBeenSet() const { return m_serverRootCaCertificateHasBeenSet; } /** *

The ARN of the Secrets Manager secret used for certification.

*/ inline void SetServerRootCaCertificate(const Aws::String& value) { m_serverRootCaCertificateHasBeenSet = true; m_serverRootCaCertificate = value; } /** *

The ARN of the Secrets Manager secret used for certification.

*/ inline void SetServerRootCaCertificate(Aws::String&& value) { m_serverRootCaCertificateHasBeenSet = true; m_serverRootCaCertificate = std::move(value); } /** *

The ARN of the Secrets Manager secret used for certification.

*/ inline void SetServerRootCaCertificate(const char* value) { m_serverRootCaCertificateHasBeenSet = true; m_serverRootCaCertificate.assign(value); } /** *

The ARN of the Secrets Manager secret used for certification.

*/ inline UpdatePipeSourceSelfManagedKafkaParameters& WithServerRootCaCertificate(const Aws::String& value) { SetServerRootCaCertificate(value); return *this;} /** *

The ARN of the Secrets Manager secret used for certification.

*/ inline UpdatePipeSourceSelfManagedKafkaParameters& WithServerRootCaCertificate(Aws::String&& value) { SetServerRootCaCertificate(std::move(value)); return *this;} /** *

The ARN of the Secrets Manager secret used for certification.

*/ inline UpdatePipeSourceSelfManagedKafkaParameters& WithServerRootCaCertificate(const char* value) { SetServerRootCaCertificate(value); return *this;} /** *

This structure specifies the VPC subnets and security groups for the stream, * and whether a public IP address is to be used.

*/ inline const SelfManagedKafkaAccessConfigurationVpc& GetVpc() const{ return m_vpc; } /** *

This structure specifies the VPC subnets and security groups for the stream, * and whether a public IP address is to be used.

*/ inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; } /** *

This structure specifies the VPC subnets and security groups for the stream, * and whether a public IP address is to be used.

*/ inline void SetVpc(const SelfManagedKafkaAccessConfigurationVpc& value) { m_vpcHasBeenSet = true; m_vpc = value; } /** *

This structure specifies the VPC subnets and security groups for the stream, * and whether a public IP address is to be used.

*/ inline void SetVpc(SelfManagedKafkaAccessConfigurationVpc&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); } /** *

This structure specifies the VPC subnets and security groups for the stream, * and whether a public IP address is to be used.

*/ inline UpdatePipeSourceSelfManagedKafkaParameters& WithVpc(const SelfManagedKafkaAccessConfigurationVpc& value) { SetVpc(value); return *this;} /** *

This structure specifies the VPC subnets and security groups for the stream, * and whether a public IP address is to be used.

*/ inline UpdatePipeSourceSelfManagedKafkaParameters& WithVpc(SelfManagedKafkaAccessConfigurationVpc&& value) { SetVpc(std::move(value)); return *this;} private: int m_batchSize; bool m_batchSizeHasBeenSet = false; SelfManagedKafkaAccessConfigurationCredentials m_credentials; bool m_credentialsHasBeenSet = false; int m_maximumBatchingWindowInSeconds; bool m_maximumBatchingWindowInSecondsHasBeenSet = false; Aws::String m_serverRootCaCertificate; bool m_serverRootCaCertificateHasBeenSet = false; SelfManagedKafkaAccessConfigurationVpc m_vpc; bool m_vpcHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws