AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
GetApiKeyResult.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/ApiKeyStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyGen3 {
25namespace Model {
27 public:
28 AWS_AMPLIFYGEN3_API GetApiKeyResult() = default;
31
33
37 inline const Aws::String& GetApiKey() const { return m_apiKey; }
38 template <typename ApiKeyT = Aws::String>
39 void SetApiKey(ApiKeyT&& value) {
40 m_apiKeyHasBeenSet = true;
41 m_apiKey = std::forward<ApiKeyT>(value);
42 }
43 template <typename ApiKeyT = Aws::String>
44 GetApiKeyResult& WithApiKey(ApiKeyT&& value) {
45 SetApiKey(std::forward<ApiKeyT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetApiKeyId() const { return m_apiKeyId; }
56 template <typename ApiKeyIdT = Aws::String>
57 void SetApiKeyId(ApiKeyIdT&& value) {
58 m_apiKeyIdHasBeenSet = true;
59 m_apiKeyId = std::forward<ApiKeyIdT>(value);
60 }
61 template <typename ApiKeyIdT = Aws::String>
62 GetApiKeyResult& WithApiKeyId(ApiKeyIdT&& value) {
63 SetApiKeyId(std::forward<ApiKeyIdT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
74 template <typename CreatedAtT = Aws::Utils::DateTime>
75 void SetCreatedAt(CreatedAtT&& value) {
76 m_createdAtHasBeenSet = true;
77 m_createdAt = std::forward<CreatedAtT>(value);
78 }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 GetApiKeyResult& WithCreatedAt(CreatedAtT&& value) {
81 SetCreatedAt(std::forward<CreatedAtT>(value));
82 return *this;
83 }
85
87
90 inline ApiKeyStatus GetStatus() const { return m_status; }
91 inline void SetStatus(ApiKeyStatus value) {
92 m_statusHasBeenSet = true;
93 m_status = value;
94 }
96 SetStatus(value);
97 return *this;
98 }
100
102
107 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
108 template <typename UpdatedAtT = Aws::Utils::DateTime>
109 void SetUpdatedAt(UpdatedAtT&& value) {
110 m_updatedAtHasBeenSet = true;
111 m_updatedAt = std::forward<UpdatedAtT>(value);
112 }
113 template <typename UpdatedAtT = Aws::Utils::DateTime>
114 GetApiKeyResult& WithUpdatedAt(UpdatedAtT&& value) {
115 SetUpdatedAt(std::forward<UpdatedAtT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::String& GetRequestId() const { return m_requestId; }
123 template <typename RequestIdT = Aws::String>
124 void SetRequestId(RequestIdT&& value) {
125 m_requestIdHasBeenSet = true;
126 m_requestId = std::forward<RequestIdT>(value);
127 }
128 template <typename RequestIdT = Aws::String>
129 GetApiKeyResult& WithRequestId(RequestIdT&& value) {
130 SetRequestId(std::forward<RequestIdT>(value));
131 return *this;
132 }
134 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
135
136 private:
137 Aws::String m_apiKey;
138
139 Aws::String m_apiKeyId;
140
141 Aws::Utils::DateTime m_createdAt{};
142
144
145 Aws::Utils::DateTime m_updatedAt{};
146
147 Aws::String m_requestId;
148 Aws::Http::HttpResponseCode m_HttpResponseCode;
149 bool m_apiKeyHasBeenSet = false;
150 bool m_apiKeyIdHasBeenSet = false;
151 bool m_createdAtHasBeenSet = false;
152 bool m_statusHasBeenSet = false;
153 bool m_updatedAtHasBeenSet = false;
154 bool m_requestIdHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace AmplifyGen3
159} // namespace Aws
AWS_AMPLIFYGEN3_API GetApiKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_AMPLIFYGEN3_API GetApiKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApiKeyResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_AMPLIFYGEN3_API GetApiKeyResult()=default
const Aws::String & GetApiKey() const
const Aws::String & GetRequestId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetApiKeyId() const
GetApiKeyResult & WithStatus(ApiKeyStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetApiKeyResult & WithApiKey(ApiKeyT &&value)
GetApiKeyResult & WithCreatedAt(CreatedAtT &&value)
GetApiKeyResult & WithRequestId(RequestIdT &&value)
GetApiKeyResult & WithApiKeyId(ApiKeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue