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 configuration of the workers, which are the processes that run the
28    * connector logic.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/WorkerConfiguration">AWS
30    * API Reference</a></p>
31    */
32   class AWS_KAFKACONNECT_API WorkerConfiguration
33   {
34   public:
35     WorkerConfiguration();
36     WorkerConfiguration(Aws::Utils::Json::JsonView jsonValue);
37     WorkerConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The revision of the worker configuration.</p>
43      */
GetRevision()44     inline long long GetRevision() const{ return m_revision; }
45 
46     /**
47      * <p>The revision of the worker configuration.</p>
48      */
RevisionHasBeenSet()49     inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
50 
51     /**
52      * <p>The revision of the worker configuration.</p>
53      */
SetRevision(long long value)54     inline void SetRevision(long long value) { m_revisionHasBeenSet = true; m_revision = value; }
55 
56     /**
57      * <p>The revision of the worker configuration.</p>
58      */
WithRevision(long long value)59     inline WorkerConfiguration& WithRevision(long long value) { SetRevision(value); return *this;}
60 
61 
62     /**
63      * <p>The Amazon Resource Name (ARN) of the worker configuration.</p>
64      */
GetWorkerConfigurationArn()65     inline const Aws::String& GetWorkerConfigurationArn() const{ return m_workerConfigurationArn; }
66 
67     /**
68      * <p>The Amazon Resource Name (ARN) of the worker configuration.</p>
69      */
WorkerConfigurationArnHasBeenSet()70     inline bool WorkerConfigurationArnHasBeenSet() const { return m_workerConfigurationArnHasBeenSet; }
71 
72     /**
73      * <p>The Amazon Resource Name (ARN) of the worker configuration.</p>
74      */
SetWorkerConfigurationArn(const Aws::String & value)75     inline void SetWorkerConfigurationArn(const Aws::String& value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn = value; }
76 
77     /**
78      * <p>The Amazon Resource Name (ARN) of the worker configuration.</p>
79      */
SetWorkerConfigurationArn(Aws::String && value)80     inline void SetWorkerConfigurationArn(Aws::String&& value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn = std::move(value); }
81 
82     /**
83      * <p>The Amazon Resource Name (ARN) of the worker configuration.</p>
84      */
SetWorkerConfigurationArn(const char * value)85     inline void SetWorkerConfigurationArn(const char* value) { m_workerConfigurationArnHasBeenSet = true; m_workerConfigurationArn.assign(value); }
86 
87     /**
88      * <p>The Amazon Resource Name (ARN) of the worker configuration.</p>
89      */
WithWorkerConfigurationArn(const Aws::String & value)90     inline WorkerConfiguration& WithWorkerConfigurationArn(const Aws::String& value) { SetWorkerConfigurationArn(value); return *this;}
91 
92     /**
93      * <p>The Amazon Resource Name (ARN) of the worker configuration.</p>
94      */
WithWorkerConfigurationArn(Aws::String && value)95     inline WorkerConfiguration& WithWorkerConfigurationArn(Aws::String&& value) { SetWorkerConfigurationArn(std::move(value)); return *this;}
96 
97     /**
98      * <p>The Amazon Resource Name (ARN) of the worker configuration.</p>
99      */
WithWorkerConfigurationArn(const char * value)100     inline WorkerConfiguration& WithWorkerConfigurationArn(const char* value) { SetWorkerConfigurationArn(value); return *this;}
101 
102   private:
103 
104     long long m_revision;
105     bool m_revisionHasBeenSet;
106 
107     Aws::String m_workerConfigurationArn;
108     bool m_workerConfigurationArnHasBeenSet;
109   };
110 
111 } // namespace Model
112 } // namespace KafkaConnect
113 } // namespace Aws
114