AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Delivery.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/DeliveryDestinationType.h>
12#include <aws/logs/model/S3DeliveryConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs {
24namespace Model {
25
38class Delivery {
39 public:
40 AWS_CLOUDWATCHLOGS_API Delivery() = default;
41 AWS_CLOUDWATCHLOGS_API Delivery(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHLOGS_API Delivery& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template <typename IdT = Aws::String>
52 void SetId(IdT&& value) {
53 m_idHasBeenSet = true;
54 m_id = std::forward<IdT>(value);
55 }
56 template <typename IdT = Aws::String>
57 Delivery& WithId(IdT&& value) {
58 SetId(std::forward<IdT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetArn() const { return m_arn; }
68 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
69 template <typename ArnT = Aws::String>
70 void SetArn(ArnT&& value) {
71 m_arnHasBeenSet = true;
72 m_arn = std::forward<ArnT>(value);
73 }
74 template <typename ArnT = Aws::String>
75 Delivery& WithArn(ArnT&& value) {
76 SetArn(std::forward<ArnT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDeliverySourceName() const { return m_deliverySourceName; }
86 inline bool DeliverySourceNameHasBeenSet() const { return m_deliverySourceNameHasBeenSet; }
87 template <typename DeliverySourceNameT = Aws::String>
88 void SetDeliverySourceName(DeliverySourceNameT&& value) {
89 m_deliverySourceNameHasBeenSet = true;
90 m_deliverySourceName = std::forward<DeliverySourceNameT>(value);
91 }
92 template <typename DeliverySourceNameT = Aws::String>
93 Delivery& WithDeliverySourceName(DeliverySourceNameT&& value) {
94 SetDeliverySourceName(std::forward<DeliverySourceNameT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetDeliveryDestinationArn() const { return m_deliveryDestinationArn; }
105 inline bool DeliveryDestinationArnHasBeenSet() const { return m_deliveryDestinationArnHasBeenSet; }
106 template <typename DeliveryDestinationArnT = Aws::String>
107 void SetDeliveryDestinationArn(DeliveryDestinationArnT&& value) {
108 m_deliveryDestinationArnHasBeenSet = true;
109 m_deliveryDestinationArn = std::forward<DeliveryDestinationArnT>(value);
110 }
111 template <typename DeliveryDestinationArnT = Aws::String>
112 Delivery& WithDeliveryDestinationArn(DeliveryDestinationArnT&& value) {
113 SetDeliveryDestinationArn(std::forward<DeliveryDestinationArnT>(value));
114 return *this;
115 }
117
119
123 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
124 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
126 m_deliveryDestinationTypeHasBeenSet = true;
127 m_deliveryDestinationType = value;
128 }
131 return *this;
132 }
134
136
139 inline const Aws::Vector<Aws::String>& GetRecordFields() const { return m_recordFields; }
140 inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; }
141 template <typename RecordFieldsT = Aws::Vector<Aws::String>>
142 void SetRecordFields(RecordFieldsT&& value) {
143 m_recordFieldsHasBeenSet = true;
144 m_recordFields = std::forward<RecordFieldsT>(value);
145 }
146 template <typename RecordFieldsT = Aws::Vector<Aws::String>>
147 Delivery& WithRecordFields(RecordFieldsT&& value) {
148 SetRecordFields(std::forward<RecordFieldsT>(value));
149 return *this;
150 }
151 template <typename RecordFieldsT = Aws::String>
152 Delivery& AddRecordFields(RecordFieldsT&& value) {
153 m_recordFieldsHasBeenSet = true;
154 m_recordFields.emplace_back(std::forward<RecordFieldsT>(value));
155 return *this;
156 }
158
160
165 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
166 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
167 template <typename FieldDelimiterT = Aws::String>
168 void SetFieldDelimiter(FieldDelimiterT&& value) {
169 m_fieldDelimiterHasBeenSet = true;
170 m_fieldDelimiter = std::forward<FieldDelimiterT>(value);
171 }
172 template <typename FieldDelimiterT = Aws::String>
173 Delivery& WithFieldDelimiter(FieldDelimiterT&& value) {
174 SetFieldDelimiter(std::forward<FieldDelimiterT>(value));
175 return *this;
176 }
178
180
184 inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const { return m_s3DeliveryConfiguration; }
185 inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; }
186 template <typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
187 void SetS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) {
188 m_s3DeliveryConfigurationHasBeenSet = true;
189 m_s3DeliveryConfiguration = std::forward<S3DeliveryConfigurationT>(value);
190 }
191 template <typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
192 Delivery& WithS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) {
193 SetS3DeliveryConfiguration(std::forward<S3DeliveryConfigurationT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
210 Delivery& WithTags(TagsT&& value) {
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
215 Delivery& AddTags(TagsKeyT&& key, TagsValueT&& value) {
216 m_tagsHasBeenSet = true;
217 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
218 return *this;
219 }
221 private:
222 Aws::String m_id;
223
224 Aws::String m_arn;
225
226 Aws::String m_deliverySourceName;
227
228 Aws::String m_deliveryDestinationArn;
229
231
232 Aws::Vector<Aws::String> m_recordFields;
233
234 Aws::String m_fieldDelimiter;
235
236 S3DeliveryConfiguration m_s3DeliveryConfiguration;
237
239 bool m_idHasBeenSet = false;
240 bool m_arnHasBeenSet = false;
241 bool m_deliverySourceNameHasBeenSet = false;
242 bool m_deliveryDestinationArnHasBeenSet = false;
243 bool m_deliveryDestinationTypeHasBeenSet = false;
244 bool m_recordFieldsHasBeenSet = false;
245 bool m_fieldDelimiterHasBeenSet = false;
246 bool m_s3DeliveryConfigurationHasBeenSet = false;
247 bool m_tagsHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace CloudWatchLogs
252} // namespace Aws
Delivery & WithRecordFields(RecordFieldsT &&value)
Definition Delivery.h:147
const Aws::Vector< Aws::String > & GetRecordFields() const
Definition Delivery.h:139
Delivery & AddRecordFields(RecordFieldsT &&value)
Definition Delivery.h:152
Delivery & WithId(IdT &&value)
Definition Delivery.h:57
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Delivery.h:202
Delivery & WithDeliverySourceName(DeliverySourceNameT &&value)
Definition Delivery.h:93
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API Delivery()=default
void SetDeliverySourceName(DeliverySourceNameT &&value)
Definition Delivery.h:88
const Aws::String & GetFieldDelimiter() const
Definition Delivery.h:165
void SetDeliveryDestinationArn(DeliveryDestinationArnT &&value)
Definition Delivery.h:107
Delivery & WithFieldDelimiter(FieldDelimiterT &&value)
Definition Delivery.h:173
Delivery & WithDeliveryDestinationType(DeliveryDestinationType value)
Definition Delivery.h:129
bool DeliveryDestinationArnHasBeenSet() const
Definition Delivery.h:105
AWS_CLOUDWATCHLOGS_API Delivery & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDeliverySourceName() const
Definition Delivery.h:85
const Aws::String & GetId() const
Definition Delivery.h:49
Delivery & WithTags(TagsT &&value)
Definition Delivery.h:210
const Aws::String & GetDeliveryDestinationArn() const
Definition Delivery.h:104
const Aws::String & GetArn() const
Definition Delivery.h:67
Delivery & WithS3DeliveryConfiguration(S3DeliveryConfigurationT &&value)
Definition Delivery.h:192
void SetS3DeliveryConfiguration(S3DeliveryConfigurationT &&value)
Definition Delivery.h:187
const S3DeliveryConfiguration & GetS3DeliveryConfiguration() const
Definition Delivery.h:184
void SetFieldDelimiter(FieldDelimiterT &&value)
Definition Delivery.h:168
AWS_CLOUDWATCHLOGS_API Delivery(Aws::Utils::Json::JsonView jsonValue)
bool DeliveryDestinationTypeHasBeenSet() const
Definition Delivery.h:124
void SetRecordFields(RecordFieldsT &&value)
Definition Delivery.h:142
DeliveryDestinationType GetDeliveryDestinationType() const
Definition Delivery.h:123
Delivery & WithArn(ArnT &&value)
Definition Delivery.h:75
void SetDeliveryDestinationType(DeliveryDestinationType value)
Definition Delivery.h:125
Delivery & WithDeliveryDestinationArn(DeliveryDestinationArnT &&value)
Definition Delivery.h:112
bool S3DeliveryConfigurationHasBeenSet() const
Definition Delivery.h:185
Delivery & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Delivery.h:215
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue