AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
GetApplicationResult.h
1
6#pragma once
7#include <aws/account-access/AccountAccess_EXPORTS.h>
8#include <aws/account-access/model/ErrorDetails.h>
9#include <aws/account-access/model/IdentitySourceDetails.h>
10#include <aws/account-access/model/Status.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace AccountAccess {
28namespace Model {
30 public:
31 AWS_ACCOUNTACCESS_API GetApplicationResult() = default;
34
36
40 inline const IdentitySourceDetails& GetIdentitySource() const { return m_identitySource; }
41 template <typename IdentitySourceT = IdentitySourceDetails>
42 void SetIdentitySource(IdentitySourceT&& value) {
43 m_identitySourceHasBeenSet = true;
44 m_identitySource = std::forward<IdentitySourceT>(value);
45 }
46 template <typename IdentitySourceT = IdentitySourceDetails>
47 GetApplicationResult& WithIdentitySource(IdentitySourceT&& value) {
48 SetIdentitySource(std::forward<IdentitySourceT>(value));
49 return *this;
50 }
52
54
57 inline Status GetStatus() const { return m_status; }
58 inline void SetStatus(Status value) {
59 m_statusHasBeenSet = true;
60 m_status = value;
61 }
63 SetStatus(value);
64 return *this;
65 }
67
69
72 inline const Aws::String& GetTenantId() const { return m_tenantId; }
73 template <typename TenantIdT = Aws::String>
74 void SetTenantId(TenantIdT&& value) {
75 m_tenantIdHasBeenSet = true;
76 m_tenantId = std::forward<TenantIdT>(value);
77 }
78 template <typename TenantIdT = Aws::String>
79 GetApplicationResult& WithTenantId(TenantIdT&& value) {
80 SetTenantId(std::forward<TenantIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
90 template <typename CreatedAtT = Aws::Utils::DateTime>
91 void SetCreatedAt(CreatedAtT&& value) {
92 m_createdAtHasBeenSet = true;
93 m_createdAt = std::forward<CreatedAtT>(value);
94 }
95 template <typename CreatedAtT = Aws::Utils::DateTime>
96 GetApplicationResult& WithCreatedAt(CreatedAtT&& value) {
97 SetCreatedAt(std::forward<CreatedAtT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
107 template <typename UpdatedAtT = Aws::Utils::DateTime>
108 void SetUpdatedAt(UpdatedAtT&& value) {
109 m_updatedAtHasBeenSet = true;
110 m_updatedAt = std::forward<UpdatedAtT>(value);
111 }
112 template <typename UpdatedAtT = Aws::Utils::DateTime>
113 GetApplicationResult& WithUpdatedAt(UpdatedAtT&& value) {
114 SetUpdatedAt(std::forward<UpdatedAtT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags = std::forward<TagsT>(value);
128 }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
131 SetTags(std::forward<TagsT>(value));
132 return *this;
133 }
134 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
135 GetApplicationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
138 return *this;
139 }
141
143
146 inline const ErrorDetails& GetError() const { return m_error; }
147 template <typename ErrorT = ErrorDetails>
148 void SetError(ErrorT&& value) {
149 m_errorHasBeenSet = true;
150 m_error = std::forward<ErrorT>(value);
151 }
152 template <typename ErrorT = ErrorDetails>
154 SetError(std::forward<ErrorT>(value));
155 return *this;
156 }
158
160
161 inline const Aws::String& GetRequestId() const { return m_requestId; }
162 template <typename RequestIdT = Aws::String>
163 void SetRequestId(RequestIdT&& value) {
164 m_requestIdHasBeenSet = true;
165 m_requestId = std::forward<RequestIdT>(value);
166 }
167 template <typename RequestIdT = Aws::String>
168 GetApplicationResult& WithRequestId(RequestIdT&& value) {
169 SetRequestId(std::forward<RequestIdT>(value));
170 return *this;
171 }
173 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
174
175 private:
176 IdentitySourceDetails m_identitySource;
177
178 Status m_status{Status::NOT_SET};
179
180 Aws::String m_tenantId;
181
182 Aws::Utils::DateTime m_createdAt{};
183
184 Aws::Utils::DateTime m_updatedAt{};
185
187
188 ErrorDetails m_error;
189
190 Aws::String m_requestId;
191 Aws::Http::HttpResponseCode m_HttpResponseCode;
192 bool m_identitySourceHasBeenSet = false;
193 bool m_statusHasBeenSet = false;
194 bool m_tenantIdHasBeenSet = false;
195 bool m_createdAtHasBeenSet = false;
196 bool m_updatedAtHasBeenSet = false;
197 bool m_tagsHasBeenSet = false;
198 bool m_errorHasBeenSet = false;
199 bool m_requestIdHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace AccountAccess
204} // namespace Aws
GetApplicationResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_ACCOUNTACCESS_API GetApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApplicationResult & WithError(ErrorT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetApplicationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetApplicationResult & WithTenantId(TenantIdT &&value)
GetApplicationResult & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const IdentitySourceDetails & GetIdentitySource() const
AWS_ACCOUNTACCESS_API GetApplicationResult()=default
AWS_ACCOUNTACCESS_API GetApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApplicationResult & WithCreatedAt(CreatedAtT &&value)
GetApplicationResult & WithStatus(Status value)
GetApplicationResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetApplicationResult & WithIdentitySource(IdentitySourceT &&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
Aws::Utils::Json::JsonValue JsonValue