AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDeliveryRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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 CloudWatchLogs
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCHLOGS_API CreateDeliveryRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateDelivery"; }
34
35 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetDeliverySourceName() const{ return m_deliverySourceName; }
45 inline bool DeliverySourceNameHasBeenSet() const { return m_deliverySourceNameHasBeenSet; }
46 inline void SetDeliverySourceName(const Aws::String& value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName = value; }
47 inline void SetDeliverySourceName(Aws::String&& value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName = std::move(value); }
48 inline void SetDeliverySourceName(const char* value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName.assign(value); }
50 inline CreateDeliveryRequest& WithDeliverySourceName(Aws::String&& value) { SetDeliverySourceName(std::move(value)); return *this;}
51 inline CreateDeliveryRequest& WithDeliverySourceName(const char* value) { SetDeliverySourceName(value); return *this;}
53
55
58 inline const Aws::String& GetDeliveryDestinationArn() const{ return m_deliveryDestinationArn; }
59 inline bool DeliveryDestinationArnHasBeenSet() const { return m_deliveryDestinationArnHasBeenSet; }
60 inline void SetDeliveryDestinationArn(const Aws::String& value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn = value; }
61 inline void SetDeliveryDestinationArn(Aws::String&& value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn = std::move(value); }
62 inline void SetDeliveryDestinationArn(const char* value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn.assign(value); }
65 inline CreateDeliveryRequest& WithDeliveryDestinationArn(const char* value) { SetDeliveryDestinationArn(value); return *this;}
67
69
74 inline const Aws::Vector<Aws::String>& GetRecordFields() const{ return m_recordFields; }
75 inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; }
76 inline void SetRecordFields(const Aws::Vector<Aws::String>& value) { m_recordFieldsHasBeenSet = true; m_recordFields = value; }
77 inline void SetRecordFields(Aws::Vector<Aws::String>&& value) { m_recordFieldsHasBeenSet = true; m_recordFields = std::move(value); }
79 inline CreateDeliveryRequest& WithRecordFields(Aws::Vector<Aws::String>&& value) { SetRecordFields(std::move(value)); return *this;}
80 inline CreateDeliveryRequest& AddRecordFields(const Aws::String& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; }
81 inline CreateDeliveryRequest& AddRecordFields(Aws::String&& value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(std::move(value)); return *this; }
82 inline CreateDeliveryRequest& AddRecordFields(const char* value) { m_recordFieldsHasBeenSet = true; m_recordFields.push_back(value); return *this; }
84
86
91 inline const Aws::String& GetFieldDelimiter() const{ return m_fieldDelimiter; }
92 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
93 inline void SetFieldDelimiter(const Aws::String& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = value; }
94 inline void SetFieldDelimiter(Aws::String&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::move(value); }
95 inline void SetFieldDelimiter(const char* value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter.assign(value); }
96 inline CreateDeliveryRequest& WithFieldDelimiter(const Aws::String& value) { SetFieldDelimiter(value); return *this;}
97 inline CreateDeliveryRequest& WithFieldDelimiter(Aws::String&& value) { SetFieldDelimiter(std::move(value)); return *this;}
98 inline CreateDeliveryRequest& WithFieldDelimiter(const char* value) { SetFieldDelimiter(value); return *this;}
100
102
106 inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const{ return m_s3DeliveryConfiguration; }
107 inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; }
108 inline void SetS3DeliveryConfiguration(const S3DeliveryConfiguration& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = value; }
109 inline void SetS3DeliveryConfiguration(S3DeliveryConfiguration&& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = std::move(value); }
113
115
121 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
124 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
125 inline CreateDeliveryRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
126 inline CreateDeliveryRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
127 inline CreateDeliveryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
128 inline CreateDeliveryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
129 inline CreateDeliveryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
130 inline CreateDeliveryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
131 inline CreateDeliveryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
132 inline CreateDeliveryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
133 inline CreateDeliveryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
135 private:
136
137 Aws::String m_deliverySourceName;
138 bool m_deliverySourceNameHasBeenSet = false;
139
140 Aws::String m_deliveryDestinationArn;
141 bool m_deliveryDestinationArnHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_recordFields;
144 bool m_recordFieldsHasBeenSet = false;
145
146 Aws::String m_fieldDelimiter;
147 bool m_fieldDelimiterHasBeenSet = false;
148
149 S3DeliveryConfiguration m_s3DeliveryConfiguration;
150 bool m_s3DeliveryConfigurationHasBeenSet = false;
151
153 bool m_tagsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace CloudWatchLogs
158} // namespace Aws
CreateDeliveryRequest & WithRecordFields(Aws::Vector< Aws::String > &&value)
CreateDeliveryRequest & WithS3DeliveryConfiguration(const S3DeliveryConfiguration &value)
const Aws::Vector< Aws::String > & GetRecordFields() const
CreateDeliveryRequest & AddRecordFields(const char *value)
CreateDeliveryRequest & WithDeliverySourceName(const char *value)
CreateDeliveryRequest & AddTags(Aws::String &&key, const char *value)
CreateDeliveryRequest & WithS3DeliveryConfiguration(S3DeliveryConfiguration &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDeliveryRequest & WithDeliveryDestinationArn(const char *value)
CreateDeliveryRequest & WithRecordFields(const Aws::Vector< Aws::String > &value)
CreateDeliveryRequest & AddRecordFields(Aws::String &&value)
void SetRecordFields(Aws::Vector< Aws::String > &&value)
CreateDeliveryRequest & AddTags(const char *key, Aws::String &&value)
CreateDeliveryRequest & WithFieldDelimiter(const Aws::String &value)
CreateDeliveryRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDeliveryRequest & WithFieldDelimiter(const char *value)
CreateDeliveryRequest & WithDeliverySourceName(const Aws::String &value)
CreateDeliveryRequest & AddTags(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
CreateDeliveryRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateDeliveryRequest & WithDeliverySourceName(Aws::String &&value)
void SetRecordFields(const Aws::Vector< Aws::String > &value)
CreateDeliveryRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const S3DeliveryConfiguration & GetS3DeliveryConfiguration() const
CreateDeliveryRequest & WithDeliveryDestinationArn(const Aws::String &value)
void SetS3DeliveryConfiguration(S3DeliveryConfiguration &&value)
CreateDeliveryRequest & WithDeliveryDestinationArn(Aws::String &&value)
CreateDeliveryRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
CreateDeliveryRequest & AddRecordFields(const Aws::String &value)
CreateDeliveryRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetS3DeliveryConfiguration(const S3DeliveryConfiguration &value)
CreateDeliveryRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDeliveryRequest & WithFieldDelimiter(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &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