AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
S3DestinationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9#include <aws/kafka/model/DeadLetterQueueS3.h>
10#include <aws/kafka/model/S3Storage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kafka {
22namespace Model {
23
31 public:
32 AWS_KAFKA_API S3DestinationConfiguration() = default;
35 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetDataFreshnessInSeconds() const { return m_dataFreshnessInSeconds; }
43 inline bool DataFreshnessInSecondsHasBeenSet() const { return m_dataFreshnessInSecondsHasBeenSet; }
44 inline void SetDataFreshnessInSeconds(int value) {
45 m_dataFreshnessInSecondsHasBeenSet = true;
46 m_dataFreshnessInSeconds = value;
47 }
50 return *this;
51 }
53
55
59 inline const DeadLetterQueueS3& GetDeadLetterQueueS3() const { return m_deadLetterQueueS3; }
60 inline bool DeadLetterQueueS3HasBeenSet() const { return m_deadLetterQueueS3HasBeenSet; }
61 template <typename DeadLetterQueueS3T = DeadLetterQueueS3>
62 void SetDeadLetterQueueS3(DeadLetterQueueS3T&& value) {
63 m_deadLetterQueueS3HasBeenSet = true;
64 m_deadLetterQueueS3 = std::forward<DeadLetterQueueS3T>(value);
65 }
66 template <typename DeadLetterQueueS3T = DeadLetterQueueS3>
68 SetDeadLetterQueueS3(std::forward<DeadLetterQueueS3T>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetServiceExecutionRoleArn() const { return m_serviceExecutionRoleArn; }
79 inline bool ServiceExecutionRoleArnHasBeenSet() const { return m_serviceExecutionRoleArnHasBeenSet; }
80 template <typename ServiceExecutionRoleArnT = Aws::String>
81 void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
82 m_serviceExecutionRoleArnHasBeenSet = true;
83 m_serviceExecutionRoleArn = std::forward<ServiceExecutionRoleArnT>(value);
84 }
85 template <typename ServiceExecutionRoleArnT = Aws::String>
86 S3DestinationConfiguration& WithServiceExecutionRoleArn(ServiceExecutionRoleArnT&& value) {
87 SetServiceExecutionRoleArn(std::forward<ServiceExecutionRoleArnT>(value));
88 return *this;
89 }
91
93
96 inline const S3Storage& GetStorage() const { return m_storage; }
97 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
98 template <typename StorageT = S3Storage>
99 void SetStorage(StorageT&& value) {
100 m_storageHasBeenSet = true;
101 m_storage = std::forward<StorageT>(value);
102 }
103 template <typename StorageT = S3Storage>
105 SetStorage(std::forward<StorageT>(value));
106 return *this;
107 }
109 private:
110 int m_dataFreshnessInSeconds{0};
111
112 DeadLetterQueueS3 m_deadLetterQueueS3;
113
114 Aws::String m_serviceExecutionRoleArn;
115
116 S3Storage m_storage;
117 bool m_dataFreshnessInSecondsHasBeenSet = false;
118 bool m_deadLetterQueueS3HasBeenSet = false;
119 bool m_serviceExecutionRoleArnHasBeenSet = false;
120 bool m_storageHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Kafka
125} // namespace Aws
AWS_KAFKA_API S3DestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
S3DestinationConfiguration & WithStorage(StorageT &&value)
S3DestinationConfiguration & WithDataFreshnessInSeconds(int value)
S3DestinationConfiguration & WithDeadLetterQueueS3(DeadLetterQueueS3T &&value)
void SetServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
AWS_KAFKA_API S3DestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API S3DestinationConfiguration()=default
S3DestinationConfiguration & WithServiceExecutionRoleArn(ServiceExecutionRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue