AWS SDK for C++

AWS SDK for C++ Version 1.11.794

Loading...
Searching...
No Matches
ReplicatorS3.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Kafka {
20namespace Model {
21
28 public:
29 AWS_KAFKA_API ReplicatorS3() = default;
30 AWS_KAFKA_API ReplicatorS3(Aws::Utils::Json::JsonView jsonValue);
32 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline bool GetEnabled() const { return m_enabled; }
39 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
40 inline void SetEnabled(bool value) {
41 m_enabledHasBeenSet = true;
42 m_enabled = value;
43 }
44 inline ReplicatorS3& WithEnabled(bool value) {
45 SetEnabled(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetBucket() const { return m_bucket; }
55 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 template <typename BucketT = Aws::String>
57 void SetBucket(BucketT&& value) {
58 m_bucketHasBeenSet = true;
59 m_bucket = std::forward<BucketT>(value);
60 }
61 template <typename BucketT = Aws::String>
62 ReplicatorS3& WithBucket(BucketT&& value) {
63 SetBucket(std::forward<BucketT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetPrefix() const { return m_prefix; }
73 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
74 template <typename PrefixT = Aws::String>
75 void SetPrefix(PrefixT&& value) {
76 m_prefixHasBeenSet = true;
77 m_prefix = std::forward<PrefixT>(value);
78 }
79 template <typename PrefixT = Aws::String>
80 ReplicatorS3& WithPrefix(PrefixT&& value) {
81 SetPrefix(std::forward<PrefixT>(value));
82 return *this;
83 }
85 private:
86 bool m_enabled{false};
87
88 Aws::String m_bucket;
89
90 Aws::String m_prefix;
91 bool m_enabledHasBeenSet = false;
92 bool m_bucketHasBeenSet = false;
93 bool m_prefixHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Kafka
98} // namespace Aws
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetBucket() const
ReplicatorS3 & WithPrefix(PrefixT &&value)
AWS_KAFKA_API ReplicatorS3(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPrefix() const
void SetBucket(BucketT &&value)
ReplicatorS3 & WithEnabled(bool value)
ReplicatorS3 & WithBucket(BucketT &&value)
AWS_KAFKA_API ReplicatorS3()=default
AWS_KAFKA_API ReplicatorS3 & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrefix(PrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue