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

Specific configuration settings for a self-managed Apache Kafka event * source.

See Also:

AWS * API Reference

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

The identifier for the Kafka consumer group to join. The consumer group ID * must be unique among all your Kafka event sources. After creating a Kafka event * source mapping with the consumer group ID specified, you cannot update this * value. For more information, see Customizable * consumer group ID.

*/ inline const Aws::String& GetConsumerGroupId() const{ return m_consumerGroupId; } /** *

The identifier for the Kafka consumer group to join. The consumer group ID * must be unique among all your Kafka event sources. After creating a Kafka event * source mapping with the consumer group ID specified, you cannot update this * value. For more information, see Customizable * consumer group ID.

*/ inline bool ConsumerGroupIdHasBeenSet() const { return m_consumerGroupIdHasBeenSet; } /** *

The identifier for the Kafka consumer group to join. The consumer group ID * must be unique among all your Kafka event sources. After creating a Kafka event * source mapping with the consumer group ID specified, you cannot update this * value. For more information, see Customizable * consumer group ID.

*/ inline void SetConsumerGroupId(const Aws::String& value) { m_consumerGroupIdHasBeenSet = true; m_consumerGroupId = value; } /** *

The identifier for the Kafka consumer group to join. The consumer group ID * must be unique among all your Kafka event sources. After creating a Kafka event * source mapping with the consumer group ID specified, you cannot update this * value. For more information, see Customizable * consumer group ID.

*/ inline void SetConsumerGroupId(Aws::String&& value) { m_consumerGroupIdHasBeenSet = true; m_consumerGroupId = std::move(value); } /** *

The identifier for the Kafka consumer group to join. The consumer group ID * must be unique among all your Kafka event sources. After creating a Kafka event * source mapping with the consumer group ID specified, you cannot update this * value. For more information, see Customizable * consumer group ID.

*/ inline void SetConsumerGroupId(const char* value) { m_consumerGroupIdHasBeenSet = true; m_consumerGroupId.assign(value); } /** *

The identifier for the Kafka consumer group to join. The consumer group ID * must be unique among all your Kafka event sources. After creating a Kafka event * source mapping with the consumer group ID specified, you cannot update this * value. For more information, see Customizable * consumer group ID.

*/ inline SelfManagedKafkaEventSourceConfig& WithConsumerGroupId(const Aws::String& value) { SetConsumerGroupId(value); return *this;} /** *

The identifier for the Kafka consumer group to join. The consumer group ID * must be unique among all your Kafka event sources. After creating a Kafka event * source mapping with the consumer group ID specified, you cannot update this * value. For more information, see Customizable * consumer group ID.

*/ inline SelfManagedKafkaEventSourceConfig& WithConsumerGroupId(Aws::String&& value) { SetConsumerGroupId(std::move(value)); return *this;} /** *

The identifier for the Kafka consumer group to join. The consumer group ID * must be unique among all your Kafka event sources. After creating a Kafka event * source mapping with the consumer group ID specified, you cannot update this * value. For more information, see Customizable * consumer group ID.

*/ inline SelfManagedKafkaEventSourceConfig& WithConsumerGroupId(const char* value) { SetConsumerGroupId(value); return *this;} private: Aws::String m_consumerGroupId; bool m_consumerGroupIdHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws