1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/kafkaconnect/KafkaConnect_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace KafkaConnect 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>The description of the worker configuration.</p><p><h3>See Also:</h3> <a 28 * href="http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/WorkerConfigurationDescription">AWS 29 * API Reference</a></p> 30 */ 31 class AWS_KAFKACONNECT_API WorkerConfigurationDescription 32 { 33 public: 34 WorkerConfigurationDescription(); 35 WorkerConfigurationDescription(Aws::Utils::Json::JsonView jsonValue); 36 WorkerConfigurationDescription& operator=(Aws::Utils::Json::JsonView jsonValue); 37 Aws::Utils::Json::JsonValue Jsonize() const; 38 39 40 /** 41 * <p>The revision of the worker configuration.</p> 42 */ GetRevision()43 inline long long GetRevision() const{ return m_revision; } 44 45 /** 46 * <p>The revision of the worker configuration.</p> 47 */ RevisionHasBeenSet()48 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; } 49 50 /** 51 * <p>The revision of the worker configuration.</p> 52 */ SetRevision(long long value)53 inline void SetRevision(long long value) { m_revisionHasBeenSet = true; m_revision = value; } 54 55 /** 56 * <p>The revision of the worker configuration.</p> 57 */ WithRevision(long long value)58 inline WorkerConfigurationDescription& WithRevision(long long value) { SetRevision(value); return *this;} 59 60 61 /** 62 * <p>The Amazon Resource Name (ARN) of the worker configuration.</p> 63 */ GetWorkerConfigurationArn()64 inline const Aws::String& GetWorkerConfigurationArn() const{ return m_workerConfigurationArn; } 65 66 /** 67 * <p>The Amazon Resource Name (ARN) of the worker configuration.</p> 68 */ WorkerConfigurationArnHasBeenSet()69 inline bool WorkerConfigurationArnHasBeenSet() const { return m_workerConfigurationArnHasBeenSet; } 70 71 /** 72 * <p>The Amazon Resource Name (ARN) of the worker configuration.</p> 73 */ SetWorkerConfigurationArn(const Aws::String & value)74 inline void SetWorkerConfigurationArn(const Aws::String& value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn = value; } 75 76 /** 77 * <p>The Amazon Resource Name (ARN) of the worker configuration.</p> 78 */ SetWorkerConfigurationArn(Aws::String && value)79 inline void SetWorkerConfigurationArn(Aws::String&& value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn = std::move(value); } 80 81 /** 82 * <p>The Amazon Resource Name (ARN) of the worker configuration.</p> 83 */ SetWorkerConfigurationArn(const char * value)84 inline void SetWorkerConfigurationArn(const char* value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn.assign(value); } 85 86 /** 87 * <p>The Amazon Resource Name (ARN) of the worker configuration.</p> 88 */ WithWorkerConfigurationArn(const Aws::String & value)89 inline WorkerConfigurationDescription& WithWorkerConfigurationArn(const Aws::String& value) { SetWorkerConfigurationArn(value); return *this;} 90 91 /** 92 * <p>The Amazon Resource Name (ARN) of the worker configuration.</p> 93 */ WithWorkerConfigurationArn(Aws::String && value)94 inline WorkerConfigurationDescription& WithWorkerConfigurationArn(Aws::String&& value) { SetWorkerConfigurationArn(std::move(value)); return *this;} 95 96 /** 97 * <p>The Amazon Resource Name (ARN) of the worker configuration.</p> 98 */ WithWorkerConfigurationArn(const char * value)99 inline WorkerConfigurationDescription& WithWorkerConfigurationArn(const char* value) { SetWorkerConfigurationArn(value); return *this;} 100 101 private: 102 103 long long m_revision; 104 bool m_revisionHasBeenSet; 105 106 Aws::String m_workerConfigurationArn; 107 bool m_workerConfigurationArnHasBeenSet; 108 }; 109 110 } // namespace Model 111 } // namespace KafkaConnect 112 } // namespace Aws 113