AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DeliverySourceNameT = Aws::String>
47 void SetDeliverySourceName(DeliverySourceNameT&& value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName = std::forward<DeliverySourceNameT>(value); }
48 template<typename DeliverySourceNameT = Aws::String>
49 CreateDeliveryRequest& WithDeliverySourceName(DeliverySourceNameT&& value) { SetDeliverySourceName(std::forward<DeliverySourceNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDeliveryDestinationArn() const { return m_deliveryDestinationArn; }
57 inline bool DeliveryDestinationArnHasBeenSet() const { return m_deliveryDestinationArnHasBeenSet; }
58 template<typename DeliveryDestinationArnT = Aws::String>
59 void SetDeliveryDestinationArn(DeliveryDestinationArnT&& value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn = std::forward<DeliveryDestinationArnT>(value); }
60 template<typename DeliveryDestinationArnT = Aws::String>
61 CreateDeliveryRequest& WithDeliveryDestinationArn(DeliveryDestinationArnT&& value) { SetDeliveryDestinationArn(std::forward<DeliveryDestinationArnT>(value)); return *this;}
63
65
70 inline const Aws::Vector<Aws::String>& GetRecordFields() const { return m_recordFields; }
71 inline bool RecordFieldsHasBeenSet() const { return m_recordFieldsHasBeenSet; }
72 template<typename RecordFieldsT = Aws::Vector<Aws::String>>
73 void SetRecordFields(RecordFieldsT&& value) { m_recordFieldsHasBeenSet = true; m_recordFields = std::forward<RecordFieldsT>(value); }
74 template<typename RecordFieldsT = Aws::Vector<Aws::String>>
75 CreateDeliveryRequest& WithRecordFields(RecordFieldsT&& value) { SetRecordFields(std::forward<RecordFieldsT>(value)); return *this;}
76 template<typename RecordFieldsT = Aws::String>
77 CreateDeliveryRequest& AddRecordFields(RecordFieldsT&& value) { m_recordFieldsHasBeenSet = true; m_recordFields.emplace_back(std::forward<RecordFieldsT>(value)); return *this; }
79
81
86 inline const Aws::String& GetFieldDelimiter() const { return m_fieldDelimiter; }
87 inline bool FieldDelimiterHasBeenSet() const { return m_fieldDelimiterHasBeenSet; }
88 template<typename FieldDelimiterT = Aws::String>
89 void SetFieldDelimiter(FieldDelimiterT&& value) { m_fieldDelimiterHasBeenSet = true; m_fieldDelimiter = std::forward<FieldDelimiterT>(value); }
90 template<typename FieldDelimiterT = Aws::String>
91 CreateDeliveryRequest& WithFieldDelimiter(FieldDelimiterT&& value) { SetFieldDelimiter(std::forward<FieldDelimiterT>(value)); return *this;}
93
95
99 inline const S3DeliveryConfiguration& GetS3DeliveryConfiguration() const { return m_s3DeliveryConfiguration; }
100 inline bool S3DeliveryConfigurationHasBeenSet() const { return m_s3DeliveryConfigurationHasBeenSet; }
101 template<typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
102 void SetS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) { m_s3DeliveryConfigurationHasBeenSet = true; m_s3DeliveryConfiguration = std::forward<S3DeliveryConfigurationT>(value); }
103 template<typename S3DeliveryConfigurationT = S3DeliveryConfiguration>
104 CreateDeliveryRequest& WithS3DeliveryConfiguration(S3DeliveryConfigurationT&& value) { SetS3DeliveryConfiguration(std::forward<S3DeliveryConfigurationT>(value)); return *this;}
106
108
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
118 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 CreateDeliveryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
120 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
121 CreateDeliveryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
122 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
123 }
125 private:
126
127 Aws::String m_deliverySourceName;
128 bool m_deliverySourceNameHasBeenSet = false;
129
130 Aws::String m_deliveryDestinationArn;
131 bool m_deliveryDestinationArnHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_recordFields;
134 bool m_recordFieldsHasBeenSet = false;
135
136 Aws::String m_fieldDelimiter;
137 bool m_fieldDelimiterHasBeenSet = false;
138
139 S3DeliveryConfiguration m_s3DeliveryConfiguration;
140 bool m_s3DeliveryConfigurationHasBeenSet = false;
141
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace CloudWatchLogs
148} // 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