AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PutDeliverySourceRequest.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
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API PutDeliverySourceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutDeliverySource"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
61 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
62 template <typename ResourceArnT = Aws::String>
63 void SetResourceArn(ResourceArnT&& value) {
64 m_resourceArnHasBeenSet = true;
65 m_resourceArn = std::forward<ResourceArnT>(value);
66 }
67 template <typename ResourceArnT = Aws::String>
69 SetResourceArn(std::forward<ResourceArnT>(value));
70 return *this;
71 }
73
75
115 inline const Aws::String& GetLogType() const { return m_logType; }
116 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
117 template <typename LogTypeT = Aws::String>
118 void SetLogType(LogTypeT&& value) {
119 m_logTypeHasBeenSet = true;
120 m_logType = std::forward<LogTypeT>(value);
121 }
122 template <typename LogTypeT = Aws::String>
124 SetLogType(std::forward<LogTypeT>(value));
125 return *this;
126 }
128
130
136 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 PutDeliverySourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_name;
157
158 Aws::String m_resourceArn;
159
160 Aws::String m_logType;
161
163 bool m_nameHasBeenSet = false;
164 bool m_resourceArnHasBeenSet = false;
165 bool m_logTypeHasBeenSet = false;
166 bool m_tagsHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace CloudWatchLogs
171} // namespace Aws
PutDeliverySourceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CLOUDWATCHLOGS_API PutDeliverySourceRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
PutDeliverySourceRequest & WithName(NameT &&value)
PutDeliverySourceRequest & WithLogType(LogTypeT &&value)
PutDeliverySourceRequest & WithResourceArn(ResourceArnT &&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