AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
62 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
63 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
64 template <typename ResourceArnT = Aws::String>
65 void SetResourceArn(ResourceArnT&& value) {
66 m_resourceArnHasBeenSet = true;
67 m_resourceArn = std::forward<ResourceArnT>(value);
68 }
69 template <typename ResourceArnT = Aws::String>
71 SetResourceArn(std::forward<ResourceArnT>(value));
72 return *this;
73 }
75
77
124 inline const Aws::String& GetLogType() const { return m_logType; }
125 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
126 template <typename LogTypeT = Aws::String>
127 void SetLogType(LogTypeT&& value) {
128 m_logTypeHasBeenSet = true;
129 m_logType = std::forward<LogTypeT>(value);
130 }
131 template <typename LogTypeT = Aws::String>
133 SetLogType(std::forward<LogTypeT>(value));
134 return *this;
135 }
137
139
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 void SetTags(TagsT&& value) {
149 m_tagsHasBeenSet = true;
150 m_tags = std::forward<TagsT>(value);
151 }
152 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
154 SetTags(std::forward<TagsT>(value));
155 return *this;
156 }
157 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
158 PutDeliverySourceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_name;
166
167 Aws::String m_resourceArn;
168
169 Aws::String m_logType;
170
172 bool m_nameHasBeenSet = false;
173 bool m_resourceArnHasBeenSet = false;
174 bool m_logTypeHasBeenSet = false;
175 bool m_tagsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace CloudWatchLogs
180} // 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