AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateApiKeyResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace APIGateway
27{
28namespace Model
29{
39 {
40 public:
41 AWS_APIGATEWAY_API CreateApiKeyResult() = default;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 CreateApiKeyResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetValue() const { return m_value; }
62 template<typename ValueT = Aws::String>
63 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
64 template<typename ValueT = Aws::String>
65 CreateApiKeyResult& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 CreateApiKeyResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
84 inline const Aws::String& GetCustomerId() const { return m_customerId; }
85 template<typename CustomerIdT = Aws::String>
86 void SetCustomerId(CustomerIdT&& value) { m_customerIdHasBeenSet = true; m_customerId = std::forward<CustomerIdT>(value); }
87 template<typename CustomerIdT = Aws::String>
88 CreateApiKeyResult& WithCustomerId(CustomerIdT&& value) { SetCustomerId(std::forward<CustomerIdT>(value)); return *this;}
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 template<typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
98 template<typename DescriptionT = Aws::String>
99 CreateApiKeyResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
101
103
106 inline bool GetEnabled() const { return m_enabled; }
107 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
108 inline CreateApiKeyResult& WithEnabled(bool value) { SetEnabled(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
116 template<typename CreatedDateT = Aws::Utils::DateTime>
117 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
118 template<typename CreatedDateT = Aws::Utils::DateTime>
119 CreateApiKeyResult& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
127 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
128 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
129 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
130 CreateApiKeyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
132
134
137 inline const Aws::Vector<Aws::String>& GetStageKeys() const { return m_stageKeys; }
138 template<typename StageKeysT = Aws::Vector<Aws::String>>
139 void SetStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet = true; m_stageKeys = std::forward<StageKeysT>(value); }
140 template<typename StageKeysT = Aws::Vector<Aws::String>>
141 CreateApiKeyResult& WithStageKeys(StageKeysT&& value) { SetStageKeys(std::forward<StageKeysT>(value)); return *this;}
142 template<typename StageKeysT = Aws::String>
143 CreateApiKeyResult& AddStageKeys(StageKeysT&& value) { m_stageKeysHasBeenSet = true; m_stageKeys.emplace_back(std::forward<StageKeysT>(value)); return *this; }
145
147
151 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
152 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
154 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 CreateApiKeyResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
156 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 CreateApiKeyResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
159 }
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template<typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
167 template<typename RequestIdT = Aws::String>
168 CreateApiKeyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
170 private:
171
172 Aws::String m_id;
173 bool m_idHasBeenSet = false;
174
175 Aws::String m_value;
176 bool m_valueHasBeenSet = false;
177
178 Aws::String m_name;
179 bool m_nameHasBeenSet = false;
180
181 Aws::String m_customerId;
182 bool m_customerIdHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 bool m_enabled{false};
188 bool m_enabledHasBeenSet = false;
189
190 Aws::Utils::DateTime m_createdDate{};
191 bool m_createdDateHasBeenSet = false;
192
193 Aws::Utils::DateTime m_lastUpdatedDate{};
194 bool m_lastUpdatedDateHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_stageKeys;
197 bool m_stageKeysHasBeenSet = false;
198
200 bool m_tagsHasBeenSet = false;
201
202 Aws::String m_requestId;
203 bool m_requestIdHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace APIGateway
208} // namespace Aws
CreateApiKeyResult & WithStageKeys(StageKeysT &&value)
CreateApiKeyResult & WithTags(TagsT &&value)
CreateApiKeyResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDate() const
void SetLastUpdatedDate(LastUpdatedDateT &&value)
CreateApiKeyResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApiKeyResult & WithName(NameT &&value)
CreateApiKeyResult & WithCreatedDate(CreatedDateT &&value)
const Aws::Vector< Aws::String > & GetStageKeys() const
CreateApiKeyResult & WithEnabled(bool value)
CreateApiKeyResult & AddStageKeys(StageKeysT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
CreateApiKeyResult & WithDescription(DescriptionT &&value)
AWS_APIGATEWAY_API CreateApiKeyResult()=default
AWS_APIGATEWAY_API CreateApiKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAY_API CreateApiKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateApiKeyResult & WithId(IdT &&value)
CreateApiKeyResult & WithCustomerId(CustomerIdT &&value)
CreateApiKeyResult & WithValue(ValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApiKeyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
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
Aws::Utils::Json::JsonValue JsonValue