/** * 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 KafkaConnect { namespace Model { /** *

The configuration of the workers, which are the processes that run the * connector logic.

See Also:

AWS * API Reference

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

The revision of the worker configuration.

*/ inline long long GetRevision() const{ return m_revision; } /** *

The revision of the worker configuration.

*/ inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; } /** *

The revision of the worker configuration.

*/ inline void SetRevision(long long value) { m_revisionHasBeenSet = true; m_revision = value; } /** *

The revision of the worker configuration.

*/ inline WorkerConfiguration& WithRevision(long long value) { SetRevision(value); return *this;} /** *

The Amazon Resource Name (ARN) of the worker configuration.

*/ inline const Aws::String& GetWorkerConfigurationArn() const{ return m_workerConfigurationArn; } /** *

The Amazon Resource Name (ARN) of the worker configuration.

*/ inline bool WorkerConfigurationArnHasBeenSet() const { return m_workerConfigurationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the worker configuration.

*/ inline void SetWorkerConfigurationArn(const Aws::String& value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn = value; } /** *

The Amazon Resource Name (ARN) of the worker configuration.

*/ inline void SetWorkerConfigurationArn(Aws::String&& value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the worker configuration.

*/ inline void SetWorkerConfigurationArn(const char* value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the worker configuration.

*/ inline WorkerConfiguration& WithWorkerConfigurationArn(const Aws::String& value) { SetWorkerConfigurationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the worker configuration.

*/ inline WorkerConfiguration& WithWorkerConfigurationArn(Aws::String&& value) { SetWorkerConfigurationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the worker configuration.

*/ inline WorkerConfiguration& WithWorkerConfigurationArn(const char* value) { SetWorkerConfigurationArn(value); return *this;} private: long long m_revision; bool m_revisionHasBeenSet = false; Aws::String m_workerConfigurationArn; bool m_workerConfigurationArnHasBeenSet = false; }; } // namespace Model } // namespace KafkaConnect } // namespace Aws