AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
58 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
59 template<typename IdT = Aws::String>
60 Delivery& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
71 template<typename ArnT = Aws::String>
72 Delivery& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDeliverySourceName() const { return m_deliverySourceName; }
80 inline bool DeliverySourceNameHasBeenSet() const { return m_deliverySourceNameHasBeenSet; }
81 template<typename DeliverySourceNameT = Aws::String>
82 void SetDeliverySourceName(DeliverySourceNameT&& value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName = std::forward<DeliverySourceNameT>(value); }
83 template<typename DeliverySourceNameT = Aws::String>
84 Delivery& WithDeliverySourceName(DeliverySourceNameT&& value) { SetDeliverySourceName(std::forward<DeliverySourceNameT>(value)); return *this;}
86
88
92 inline const Aws::String& GetDeliveryDestinationArn() const { return m_deliveryDestinationArn; }
93 inline bool DeliveryDestinationArnHasBeenSet() const { return m_deliveryDestinationArnHasBeenSet; }
94 template<typename DeliveryDestinationArnT = Aws::String>
95 void SetDeliveryDestinationArn(DeliveryDestinationArnT&& value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn = std::forward<DeliveryDestinationArnT>(value); }
96 template<typename DeliveryDestinationArnT = Aws::String>
97 Delivery& WithDeliveryDestinationArn(DeliveryDestinationArnT&& value) { SetDeliveryDestinationArn(std::forward<DeliveryDestinationArnT>(value)); return *this;}
99
101
105 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
106 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
107 inline void SetDeliveryDestinationType(DeliveryDestinationType value) { m_deliveryDestinationTypeHasBeenSet = true; m_deliveryDestinationType = value; }
110
112
115 inline const Aws::Vector<Aws::String>& GetRecordFields() const { return m_recordFields; }
116 inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; }
117 template<typename RecordFieldsT = Aws::Vector<Aws::String>>
118 void SetRecordFields(RecordFieldsT&& value) { m_recordFieldsHasBeenSet = true; m_recordFields = std::forward<RecordFieldsT>(value); }
119 template<typename RecordFieldsT = Aws::Vector<Aws::String>>
120 Delivery& WithRecordFields(RecordFieldsT&& value) { SetRecordFields(std::forward<RecordFieldsT>(value)); return *this;}
121 template<typename RecordFieldsT = Aws::String>
122 Delivery& AddRecordFields(RecordFieldsT&& value) { m_recordFieldsHasBeenSet = true; m_recordFields.emplace_back(std::forward<RecordFieldsT>(value)); return *this; }
124
126
131 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
132 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
133 template<typename FieldDelimiterT = Aws::String>
134 void SetFieldDelimiter(FieldDelimiterT&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::forward<FieldDelimiterT>(value); }
135 template<typename FieldDelimiterT = Aws::String>
136 Delivery& WithFieldDelimiter(FieldDelimiterT&& value) { SetFieldDelimiter(std::forward<FieldDelimiterT>(value)); return *this;}
138
140
144 inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const { return m_s3DeliveryConfiguration; }
145 inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; }
146 template<typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
147 void SetS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = std::forward<S3DeliveryConfigurationT>(value); }
148 template<typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
149 Delivery& WithS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) { SetS3DeliveryConfiguration(std::forward<S3DeliveryConfigurationT>(value)); return *this;}
151
153
156 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
160 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 Delivery& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
162 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
163 Delivery& AddTags(TagsKeyT&& key, TagsValueT&& value) {
164 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
165 }
167 private:
168
169 Aws::String m_id;
170 bool m_idHasBeenSet = false;
171
172 Aws::String m_arn;
173 bool m_arnHasBeenSet = false;
174
175 Aws::String m_deliverySourceName;
176 bool m_deliverySourceNameHasBeenSet = false;
177
178 Aws::String m_deliveryDestinationArn;
179 bool m_deliveryDestinationArnHasBeenSet = false;
180
182 bool m_deliveryDestinationTypeHasBeenSet = false;
183
184 Aws::Vector<Aws::String> m_recordFields;
185 bool m_recordFieldsHasBeenSet = false;
186
187 Aws::String m_fieldDelimiter;
188 bool m_fieldDelimiterHasBeenSet = false;
189
190 S3DeliveryConfiguration m_s3DeliveryConfiguration;
191 bool m_s3DeliveryConfigurationHasBeenSet = false;
192
194 bool m_tagsHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace CloudWatchLogs
199} // namespace Aws
Delivery & WithRecordFields(RecordFieldsT &&value)
Definition Delivery.h:120
const Aws::Vector< Aws::String > & GetRecordFields() const
Definition Delivery.h:115
Delivery & AddRecordFields(RecordFieldsT &&value)
Definition Delivery.h:122
Delivery & WithId(IdT &&value)
Definition Delivery.h:60
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Delivery.h:156
Delivery & WithDeliverySourceName(DeliverySourceNameT &&value)
Definition Delivery.h:84
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API Delivery()=default
void SetDeliverySourceName(DeliverySourceNameT &&value)
Definition Delivery.h:82
const Aws::String & GetFieldDelimiter() const
Definition Delivery.h:131
void SetDeliveryDestinationArn(DeliveryDestinationArnT &&value)
Definition Delivery.h:95
Delivery & WithFieldDelimiter(FieldDelimiterT &&value)
Definition Delivery.h:136
Delivery & WithDeliveryDestinationType(DeliveryDestinationType value)
Definition Delivery.h:108
bool DeliveryDestinationArnHasBeenSet() const
Definition Delivery.h:93
AWS_CLOUDWATCHLOGS_API Delivery & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDeliverySourceName() const
Definition Delivery.h:79
const Aws::String & GetId() const
Definition Delivery.h:55
Delivery & WithTags(TagsT &&value)
Definition Delivery.h:161
const Aws::String & GetDeliveryDestinationArn() const
Definition Delivery.h:92
const Aws::String & GetArn() const
Definition Delivery.h:67
Delivery & WithS3DeliveryConfiguration(S3DeliveryConfigurationT &&value)
Definition Delivery.h:149
void SetS3DeliveryConfiguration(S3DeliveryConfigurationT &&value)
Definition Delivery.h:147
const S3DeliveryConfiguration & GetS3DeliveryConfiguration() const
Definition Delivery.h:144
void SetFieldDelimiter(FieldDelimiterT &&value)
Definition Delivery.h:134
AWS_CLOUDWATCHLOGS_API Delivery(Aws::Utils::Json::JsonView jsonValue)
bool DeliveryDestinationTypeHasBeenSet() const
Definition Delivery.h:106
void SetRecordFields(RecordFieldsT &&value)
Definition Delivery.h:118
DeliveryDestinationType GetDeliveryDestinationType() const
Definition Delivery.h:105
Delivery & WithArn(ArnT &&value)
Definition Delivery.h:72
void SetDeliveryDestinationType(DeliveryDestinationType value)
Definition Delivery.h:107
Delivery & WithDeliveryDestinationArn(DeliveryDestinationArnT &&value)
Definition Delivery.h:97
bool S3DeliveryConfigurationHasBeenSet() const
Definition Delivery.h:145
Delivery & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Delivery.h:163
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