AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDeliveryRequest.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/CloudWatchLogsRequest.h>
11#include <aws/logs/CloudWatchLogs_EXPORTS.h>
12#include <aws/logs/model/S3DeliveryConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CloudWatchLogs {
18namespace Model {
19
23 public:
24 AWS_CLOUDWATCHLOGS_API CreateDeliveryRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateDelivery"; }
31
32 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
33
34 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetDeliverySourceName() const { return m_deliverySourceName; }
41 inline bool DeliverySourceNameHasBeenSet() const { return m_deliverySourceNameHasBeenSet; }
42 template <typename DeliverySourceNameT = Aws::String>
43 void SetDeliverySourceName(DeliverySourceNameT&& value) {
44 m_deliverySourceNameHasBeenSet = true;
45 m_deliverySourceName = std::forward<DeliverySourceNameT>(value);
46 }
47 template <typename DeliverySourceNameT = Aws::String>
48 CreateDeliveryRequest& WithDeliverySourceName(DeliverySourceNameT&& value) {
49 SetDeliverySourceName(std::forward<DeliverySourceNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDeliveryDestinationArn() const { return m_deliveryDestinationArn; }
59 inline bool DeliveryDestinationArnHasBeenSet() const { return m_deliveryDestinationArnHasBeenSet; }
60 template <typename DeliveryDestinationArnT = Aws::String>
61 void SetDeliveryDestinationArn(DeliveryDestinationArnT&& value) {
62 m_deliveryDestinationArnHasBeenSet = true;
63 m_deliveryDestinationArn = std::forward<DeliveryDestinationArnT>(value);
64 }
65 template <typename DeliveryDestinationArnT = Aws::String>
66 CreateDeliveryRequest& WithDeliveryDestinationArn(DeliveryDestinationArnT&& value) {
67 SetDeliveryDestinationArn(std::forward<DeliveryDestinationArnT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::Vector<Aws::String>& GetRecordFields() const { return m_recordFields; }
79 inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; }
80 template <typename RecordFieldsT = Aws::Vector<Aws::String>>
81 void SetRecordFields(RecordFieldsT&& value) {
82 m_recordFieldsHasBeenSet = true;
83 m_recordFields = std::forward<RecordFieldsT>(value);
84 }
85 template <typename RecordFieldsT = Aws::Vector<Aws::String>>
86 CreateDeliveryRequest& WithRecordFields(RecordFieldsT&& value) {
87 SetRecordFields(std::forward<RecordFieldsT>(value));
88 return *this;
89 }
90 template <typename RecordFieldsT = Aws::String>
91 CreateDeliveryRequest& AddRecordFields(RecordFieldsT&& value) {
92 m_recordFieldsHasBeenSet = true;
93 m_recordFields.emplace_back(std::forward<RecordFieldsT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
105 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
106 template <typename FieldDelimiterT = Aws::String>
107 void SetFieldDelimiter(FieldDelimiterT&& value) {
108 m_fieldDelimiterHasBeenSet = true;
109 m_fieldDelimiter = std::forward<FieldDelimiterT>(value);
110 }
111 template <typename FieldDelimiterT = Aws::String>
112 CreateDeliveryRequest& WithFieldDelimiter(FieldDelimiterT&& value) {
113 SetFieldDelimiter(std::forward<FieldDelimiterT>(value));
114 return *this;
115 }
117
119
123 inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const { return m_s3DeliveryConfiguration; }
124 inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; }
125 template <typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
126 void SetS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) {
127 m_s3DeliveryConfigurationHasBeenSet = true;
128 m_s3DeliveryConfiguration = std::forward<S3DeliveryConfigurationT>(value);
129 }
130 template <typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
131 CreateDeliveryRequest& WithS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) {
132 SetS3DeliveryConfiguration(std::forward<S3DeliveryConfigurationT>(value));
133 return *this;
134 }
136
138
144 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 CreateDeliveryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_deliverySourceName;
165
166 Aws::String m_deliveryDestinationArn;
167
168 Aws::Vector<Aws::String> m_recordFields;
169
170 Aws::String m_fieldDelimiter;
171
172 S3DeliveryConfiguration m_s3DeliveryConfiguration;
173
175 bool m_deliverySourceNameHasBeenSet = false;
176 bool m_deliveryDestinationArnHasBeenSet = false;
177 bool m_recordFieldsHasBeenSet = false;
178 bool m_fieldDelimiterHasBeenSet = false;
179 bool m_s3DeliveryConfigurationHasBeenSet = false;
180 bool m_tagsHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace CloudWatchLogs
185} // namespace Aws
void SetS3DeliveryConfiguration(S3DeliveryConfigurationT &&value)
const Aws::Vector< Aws::String > & GetRecordFields() const
CreateDeliveryRequest & WithS3DeliveryConfiguration(S3DeliveryConfigurationT &&value)
CreateDeliveryRequest & WithTags(TagsT &&value)
AWS_CLOUDWATCHLOGS_API CreateDeliveryRequest()=default
CreateDeliveryRequest & WithFieldDelimiter(FieldDelimiterT &&value)
virtual const char * GetServiceRequestName() const override
CreateDeliveryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDeliveryRequest & WithDeliverySourceName(DeliverySourceNameT &&value)
void SetDeliverySourceName(DeliverySourceNameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDeliveryRequest & AddRecordFields(RecordFieldsT &&value)
const S3DeliveryConfiguration & GetS3DeliveryConfiguration() const
void SetDeliveryDestinationArn(DeliveryDestinationArnT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
CreateDeliveryRequest & WithDeliveryDestinationArn(DeliveryDestinationArnT &&value)
CreateDeliveryRequest & WithRecordFields(RecordFieldsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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