AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
WorkerConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace KafkaConnect {
20namespace Model {
21
29 public:
30 AWS_KAFKACONNECT_API WorkerConfiguration() = default;
31 AWS_KAFKACONNECT_API WorkerConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline long long GetRevision() const { return m_revision; }
40 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
41 inline void SetRevision(long long value) {
42 m_revisionHasBeenSet = true;
43 m_revision = value;
44 }
45 inline WorkerConfiguration& WithRevision(long long value) {
46 SetRevision(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetWorkerConfigurationArn() const { return m_workerConfigurationArn; }
56 inline bool WorkerConfigurationArnHasBeenSet() const { return m_workerConfigurationArnHasBeenSet; }
57 template <typename WorkerConfigurationArnT = Aws::String>
58 void SetWorkerConfigurationArn(WorkerConfigurationArnT&& value) {
59 m_workerConfigurationArnHasBeenSet = true;
60 m_workerConfigurationArn = std::forward<WorkerConfigurationArnT>(value);
61 }
62 template <typename WorkerConfigurationArnT = Aws::String>
63 WorkerConfiguration& WithWorkerConfigurationArn(WorkerConfigurationArnT&& value) {
64 SetWorkerConfigurationArn(std::forward<WorkerConfigurationArnT>(value));
65 return *this;
66 }
68 private:
69 long long m_revision{0};
70
71 Aws::String m_workerConfigurationArn;
72 bool m_revisionHasBeenSet = false;
73 bool m_workerConfigurationArnHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace KafkaConnect
78} // namespace Aws
void SetWorkerConfigurationArn(WorkerConfigurationArnT &&value)
AWS_KAFKACONNECT_API WorkerConfiguration()=default
AWS_KAFKACONNECT_API WorkerConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkerConfiguration & WithWorkerConfigurationArn(WorkerConfigurationArnT &&value)
WorkerConfiguration & WithRevision(long long value)
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetWorkerConfigurationArn() const
AWS_KAFKACONNECT_API WorkerConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue