AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutDeliveryDestinationRequest.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/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/DeliveryDestinationConfiguration.h>
12#include <aws/logs/model/DeliveryDestinationType.h>
13#include <aws/logs/model/OutputFormat.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CloudWatchLogs {
19namespace Model {
20
24 public:
25 AWS_CLOUDWATCHLOGS_API PutDeliveryDestinationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutDeliveryDestination"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline OutputFormat GetOutputFormat() const { return m_outputFormat; }
61 inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; }
62 inline void SetOutputFormat(OutputFormat value) {
63 m_outputFormatHasBeenSet = true;
64 m_outputFormat = value;
65 }
67 SetOutputFormat(value);
68 return *this;
69 }
71
73
82 inline const DeliveryDestinationConfiguration& GetDeliveryDestinationConfiguration() const { return m_deliveryDestinationConfiguration; }
83 inline bool DeliveryDestinationConfigurationHasBeenSet() const { return m_deliveryDestinationConfigurationHasBeenSet; }
84 template <typename DeliveryDestinationConfigurationT = DeliveryDestinationConfiguration>
85 void SetDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT&& value) {
86 m_deliveryDestinationConfigurationHasBeenSet = true;
87 m_deliveryDestinationConfiguration = std::forward<DeliveryDestinationConfigurationT>(value);
88 }
89 template <typename DeliveryDestinationConfigurationT = DeliveryDestinationConfiguration>
90 PutDeliveryDestinationRequest& WithDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT&& value) {
91 SetDeliveryDestinationConfiguration(std::forward<DeliveryDestinationConfigurationT>(value));
92 return *this;
93 }
95
97
108 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
109 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
111 m_deliveryDestinationTypeHasBeenSet = true;
112 m_deliveryDestinationType = value;
113 }
116 return *this;
117 }
119
121
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags = std::forward<TagsT>(value);
133 }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 SetTags(std::forward<TagsT>(value));
137 return *this;
138 }
139 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 PutDeliveryDestinationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_name;
148
149 OutputFormat m_outputFormat{OutputFormat::NOT_SET};
150
151 DeliveryDestinationConfiguration m_deliveryDestinationConfiguration;
152
154
156 bool m_nameHasBeenSet = false;
157 bool m_outputFormatHasBeenSet = false;
158 bool m_deliveryDestinationConfigurationHasBeenSet = false;
159 bool m_deliveryDestinationTypeHasBeenSet = false;
160 bool m_tagsHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CloudWatchLogs
165} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDeliveryDestinationRequest & WithDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT &&value)
PutDeliveryDestinationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetDeliveryDestinationConfiguration(DeliveryDestinationConfigurationT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const DeliveryDestinationConfiguration & GetDeliveryDestinationConfiguration() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PutDeliveryDestinationRequest & WithDeliveryDestinationType(DeliveryDestinationType value)
PutDeliveryDestinationRequest & WithOutputFormat(OutputFormat value)
AWS_CLOUDWATCHLOGS_API PutDeliveryDestinationRequest()=default
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