AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateLookupTableRequest.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 CreateLookupTableRequest() = 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 "CreateLookupTable"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
40 inline const Aws::String& GetLookupTableName() const { return m_lookupTableName; }
41 inline bool LookupTableNameHasBeenSet() const { return m_lookupTableNameHasBeenSet; }
42 template <typename LookupTableNameT = Aws::String>
43 void SetLookupTableName(LookupTableNameT&& value) {
44 m_lookupTableNameHasBeenSet = true;
45 m_lookupTableName = std::forward<LookupTableNameT>(value);
46 }
47 template <typename LookupTableNameT = Aws::String>
48 CreateLookupTableRequest& WithLookupTableName(LookupTableNameT&& value) {
49 SetLookupTableName(std::forward<LookupTableNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetTableBody() const { return m_tableBody; }
79 inline bool TableBodyHasBeenSet() const { return m_tableBodyHasBeenSet; }
80 template <typename TableBodyT = Aws::String>
81 void SetTableBody(TableBodyT&& value) {
82 m_tableBodyHasBeenSet = true;
83 m_tableBody = std::forward<TableBodyT>(value);
84 }
85 template <typename TableBodyT = Aws::String>
87 SetTableBody(std::forward<TableBodyT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
98 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
99 template <typename KmsKeyIdT = Aws::String>
100 void SetKmsKeyId(KmsKeyIdT&& value) {
101 m_kmsKeyIdHasBeenSet = true;
102 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
103 }
104 template <typename KmsKeyIdT = Aws::String>
106 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
120 void SetTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags = std::forward<TagsT>(value);
123 }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 SetTags(std::forward<TagsT>(value));
127 return *this;
128 }
129 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
130 CreateLookupTableRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_lookupTableName;
138
139 Aws::String m_description;
140
141 Aws::String m_tableBody;
142
143 Aws::String m_kmsKeyId;
144
146 bool m_lookupTableNameHasBeenSet = false;
147 bool m_descriptionHasBeenSet = false;
148 bool m_tableBodyHasBeenSet = false;
149 bool m_kmsKeyIdHasBeenSet = false;
150 bool m_tagsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace CloudWatchLogs
155} // namespace Aws
CreateLookupTableRequest & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLookupTableRequest & WithDescription(DescriptionT &&value)
CreateLookupTableRequest & WithLookupTableName(LookupTableNameT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHLOGS_API CreateLookupTableRequest()=default
CreateLookupTableRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateLookupTableRequest & WithTableBody(TableBodyT &&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