AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Delivery.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/DeliveryDestinationType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/logs/model/S3DeliveryConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CloudWatchLogs
26{
27namespace Model
28{
29
43 {
44 public:
45 AWS_CLOUDWATCHLOGS_API Delivery();
46 AWS_CLOUDWATCHLOGS_API Delivery(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CLOUDWATCHLOGS_API Delivery& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetId() const{ return m_id; }
56 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
59 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
60 inline Delivery& WithId(const Aws::String& value) { SetId(value); return *this;}
61 inline Delivery& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
62 inline Delivery& WithId(const char* value) { SetId(value); return *this;}
64
66
69 inline const Aws::String& GetArn() const{ return m_arn; }
70 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
71 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
72 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
73 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
74 inline Delivery& WithArn(const Aws::String& value) { SetArn(value); return *this;}
75 inline Delivery& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
76 inline Delivery& WithArn(const char* value) { SetArn(value); return *this;}
78
80
83 inline const Aws::String& GetDeliverySourceName() const{ return m_deliverySourceName; }
84 inline bool DeliverySourceNameHasBeenSet() const { return m_deliverySourceNameHasBeenSet; }
85 inline void SetDeliverySourceName(const Aws::String& value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName = value; }
86 inline void SetDeliverySourceName(Aws::String&& value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName = std::move(value); }
87 inline void SetDeliverySourceName(const char* value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName.assign(value); }
88 inline Delivery& WithDeliverySourceName(const Aws::String& value) { SetDeliverySourceName(value); return *this;}
89 inline Delivery& WithDeliverySourceName(Aws::String&& value) { SetDeliverySourceName(std::move(value)); return *this;}
90 inline Delivery& WithDeliverySourceName(const char* value) { SetDeliverySourceName(value); return *this;}
92
94
98 inline const Aws::String& GetDeliveryDestinationArn() const{ return m_deliveryDestinationArn; }
99 inline bool DeliveryDestinationArnHasBeenSet() const { return m_deliveryDestinationArnHasBeenSet; }
100 inline void SetDeliveryDestinationArn(const Aws::String& value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn = value; }
101 inline void SetDeliveryDestinationArn(Aws::String&& value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn = std::move(value); }
102 inline void SetDeliveryDestinationArn(const char* value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn.assign(value); }
103 inline Delivery& WithDeliveryDestinationArn(const Aws::String& value) { SetDeliveryDestinationArn(value); return *this;}
104 inline Delivery& WithDeliveryDestinationArn(Aws::String&& value) { SetDeliveryDestinationArn(std::move(value)); return *this;}
105 inline Delivery& WithDeliveryDestinationArn(const char* value) { SetDeliveryDestinationArn(value); return *this;}
107
109
113 inline const DeliveryDestinationType& GetDeliveryDestinationType() const{ return m_deliveryDestinationType; }
114 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
115 inline void SetDeliveryDestinationType(const DeliveryDestinationType& value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = value; }
116 inline void SetDeliveryDestinationType(DeliveryDestinationType&& value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = std::move(value); }
120
122
125 inline const Aws::Vector<Aws::String>& GetRecordFields() const{ return m_recordFields; }
126 inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; }
127 inline void SetRecordFields(const Aws::Vector<Aws::String>& value) { m_recordFieldsHasBeenSet = true; m_recordFields = value; }
128 inline void SetRecordFields(Aws::Vector<Aws::String>&& value) { m_recordFieldsHasBeenSet = true; m_recordFields = std::move(value); }
129 inline Delivery& WithRecordFields(const Aws::Vector<Aws::String>& value) { SetRecordFields(value); return *this;}
130 inline Delivery& WithRecordFields(Aws::Vector<Aws::String>&& value) { SetRecordFields(std::move(value)); return *this;}
131 inline Delivery& AddRecordFields(const Aws::String& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; }
132 inline Delivery& AddRecordFields(Aws::String&& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(std::move(value)); return *this; }
133 inline Delivery& AddRecordFields(const char* value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; }
135
137
142 inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; }
143 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
144 inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; }
145 inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); }
146 inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); }
147 inline Delivery& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;}
148 inline Delivery& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;}
149 inline Delivery& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;}
151
153
157 inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const{ return m_s3DeliveryConfiguration; }
158 inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; }
159 inline void SetS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = value; }
160 inline void SetS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = std::move(value); }
164
166
169 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
170 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
171 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
172 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
173 inline Delivery& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
174 inline Delivery& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
175 inline Delivery& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
176 inline Delivery& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
177 inline Delivery& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
178 inline Delivery& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
179 inline Delivery& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
180 inline Delivery& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
181 inline Delivery& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
183 private:
184
185 Aws::String m_id;
186 bool m_idHasBeenSet = false;
187
188 Aws::String m_arn;
189 bool m_arnHasBeenSet = false;
190
191 Aws::String m_deliverySourceName;
192 bool m_deliverySourceNameHasBeenSet = false;
193
194 Aws::String m_deliveryDestinationArn;
195 bool m_deliveryDestinationArnHasBeenSet = false;
196
197 DeliveryDestinationType m_deliveryDestinationType;
198 bool m_deliveryDestinationTypeHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_recordFields;
201 bool m_recordFieldsHasBeenSet = false;
202
203 Aws::String m_fieldDelimiter;
204 bool m_fieldDelimiterHasBeenSet = false;
205
206 S3DeliveryConfiguration m_s3DeliveryConfiguration;
207 bool m_s3DeliveryConfigurationHasBeenSet = false;
208
210 bool m_tagsHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace CloudWatchLogs
215} // namespace Aws
void SetFieldDelimiter(const char *value)
Definition Delivery.h:146
void SetS3DeliveryConfiguration(S3DeliveryConfiguration &&value)
Definition Delivery.h:160
void SetDeliverySourceName(Aws::String &&value)
Definition Delivery.h:86
Delivery & WithArn(Aws::String &&value)
Definition Delivery.h:75
const Aws::Vector< Aws::String > & GetRecordFields() const
Definition Delivery.h:125
Delivery & WithFieldDelimiter(const Aws::String &value)
Definition Delivery.h:147
Delivery & WithId(const Aws::String &value)
Definition Delivery.h:60
Delivery & WithRecordFields(Aws::Vector< Aws::String > &&value)
Definition Delivery.h:130
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Delivery.h:169
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetFieldDelimiter() const
Definition Delivery.h:142
void SetFieldDelimiter(const Aws::String &value)
Definition Delivery.h:144
void SetDeliverySourceName(const char *value)
Definition Delivery.h:87
Delivery & WithDeliveryDestinationType(DeliveryDestinationType &&value)
Definition Delivery.h:118
AWS_CLOUDWATCHLOGS_API Delivery()
void SetId(const char *value)
Definition Delivery.h:59
Delivery & AddTags(Aws::String &&key, const Aws::String &value)
Definition Delivery.h:176
Delivery & AddTags(const Aws::String &key, const Aws::String &value)
Definition Delivery.h:175
Delivery & AddTags(Aws::String &&key, const char *value)
Definition Delivery.h:180
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Delivery.h:171
Delivery & WithDeliveryDestinationArn(Aws::String &&value)
Definition Delivery.h:104
void SetArn(const Aws::String &value)
Definition Delivery.h:71
Delivery & AddRecordFields(const char *value)
Definition Delivery.h:133
Delivery & AddTags(const char *key, Aws::String &&value)
Definition Delivery.h:179
Delivery & WithRecordFields(const Aws::Vector< Aws::String > &value)
Definition Delivery.h:129
Delivery & AddTags(const Aws::String &key, Aws::String &&value)
Definition Delivery.h:177
Delivery & WithS3DeliveryConfiguration(S3DeliveryConfiguration &&value)
Definition Delivery.h:162
bool DeliveryDestinationArnHasBeenSet() const
Definition Delivery.h:99
Delivery & WithFieldDelimiter(Aws::String &&value)
Definition Delivery.h:148
Delivery & WithArn(const char *value)
Definition Delivery.h:76
Delivery & WithDeliverySourceName(const char *value)
Definition Delivery.h:90
Delivery & AddTags(Aws::String &&key, Aws::String &&value)
Definition Delivery.h:178
void SetDeliveryDestinationArn(const Aws::String &value)
Definition Delivery.h:100
void SetFieldDelimiter(Aws::String &&value)
Definition Delivery.h:145
AWS_CLOUDWATCHLOGS_API Delivery & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeliveryDestinationType(const DeliveryDestinationType &value)
Definition Delivery.h:115
const Aws::String & GetDeliverySourceName() const
Definition Delivery.h:83
Delivery & WithDeliveryDestinationArn(const Aws::String &value)
Definition Delivery.h:103
const Aws::String & GetId() const
Definition Delivery.h:55
const Aws::String & GetDeliveryDestinationArn() const
Definition Delivery.h:98
const Aws::String & GetArn() const
Definition Delivery.h:69
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Delivery.h:172
void SetDeliverySourceName(const Aws::String &value)
Definition Delivery.h:85
Delivery & WithDeliverySourceName(Aws::String &&value)
Definition Delivery.h:89
Delivery & AddRecordFields(const Aws::String &value)
Definition Delivery.h:131
void SetDeliveryDestinationType(DeliveryDestinationType &&value)
Definition Delivery.h:116
const S3DeliveryConfiguration & GetS3DeliveryConfiguration() const
Definition Delivery.h:157
Delivery & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Delivery.h:173
void SetS3DeliveryConfiguration(const S3DeliveryConfiguration &value)
Definition Delivery.h:159
Delivery & WithId(const char *value)
Definition Delivery.h:62
void SetRecordFields(const Aws::Vector< Aws::String > &value)
Definition Delivery.h:127
void SetDeliveryDestinationArn(const char *value)
Definition Delivery.h:102
Delivery & AddRecordFields(Aws::String &&value)
Definition Delivery.h:132
void SetArn(Aws::String &&value)
Definition Delivery.h:72
AWS_CLOUDWATCHLOGS_API Delivery(Aws::Utils::Json::JsonView jsonValue)
Delivery & WithArn(const Aws::String &value)
Definition Delivery.h:74
Delivery & AddTags(const char *key, const char *value)
Definition Delivery.h:181
void SetRecordFields(Aws::Vector< Aws::String > &&value)
Definition Delivery.h:128
Delivery & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Delivery.h:174
Delivery & WithFieldDelimiter(const char *value)
Definition Delivery.h:149
bool DeliveryDestinationTypeHasBeenSet() const
Definition Delivery.h:114
Delivery & WithDeliveryDestinationArn(const char *value)
Definition Delivery.h:105
Delivery & WithS3DeliveryConfiguration(const S3DeliveryConfiguration &value)
Definition Delivery.h:161
void SetId(Aws::String &&value)
Definition Delivery.h:58
void SetDeliveryDestinationArn(Aws::String &&value)
Definition Delivery.h:101
Delivery & WithDeliveryDestinationType(const DeliveryDestinationType &value)
Definition Delivery.h:117
void SetArn(const char *value)
Definition Delivery.h:73
Delivery & WithDeliverySourceName(const Aws::String &value)
Definition Delivery.h:88
Delivery & WithId(Aws::String &&value)
Definition Delivery.h:61
bool S3DeliveryConfigurationHasBeenSet() const
Definition Delivery.h:158
const DeliveryDestinationType & GetDeliveryDestinationType() const
Definition Delivery.h:113
void SetId(const Aws::String &value)
Definition Delivery.h:57
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