AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetIdentitySourceResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mpa/MPA_EXPORTS.h>
10#include <aws/mpa/model/IdentitySourceParametersForGet.h>
11#include <aws/mpa/model/IdentitySourceStatus.h>
12#include <aws/mpa/model/IdentitySourceStatusCode.h>
13#include <aws/mpa/model/IdentitySourceType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MPA {
27namespace Model {
29 public:
30 AWS_MPA_API GetIdentitySourceResult() = default;
33
35
39 inline IdentitySourceType GetIdentitySourceType() const { return m_identitySourceType; }
41 m_identitySourceTypeHasBeenSet = true;
42 m_identitySourceType = value;
43 }
46 return *this;
47 }
49
51
56 inline const IdentitySourceParametersForGet& GetIdentitySourceParameters() const { return m_identitySourceParameters; }
57 template <typename IdentitySourceParametersT = IdentitySourceParametersForGet>
58 void SetIdentitySourceParameters(IdentitySourceParametersT&& value) {
59 m_identitySourceParametersHasBeenSet = true;
60 m_identitySourceParameters = std::forward<IdentitySourceParametersT>(value);
61 }
62 template <typename IdentitySourceParametersT = IdentitySourceParametersForGet>
63 GetIdentitySourceResult& WithIdentitySourceParameters(IdentitySourceParametersT&& value) {
64 SetIdentitySourceParameters(std::forward<IdentitySourceParametersT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetIdentitySourceArn() const { return m_identitySourceArn; }
74 template <typename IdentitySourceArnT = Aws::String>
75 void SetIdentitySourceArn(IdentitySourceArnT&& value) {
76 m_identitySourceArnHasBeenSet = true;
77 m_identitySourceArn = std::forward<IdentitySourceArnT>(value);
78 }
79 template <typename IdentitySourceArnT = Aws::String>
80 GetIdentitySourceResult& WithIdentitySourceArn(IdentitySourceArnT&& value) {
81 SetIdentitySourceArn(std::forward<IdentitySourceArnT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
91 template <typename CreationTimeT = Aws::Utils::DateTime>
92 void SetCreationTime(CreationTimeT&& value) {
93 m_creationTimeHasBeenSet = true;
94 m_creationTime = std::forward<CreationTimeT>(value);
95 }
96 template <typename CreationTimeT = Aws::Utils::DateTime>
97 GetIdentitySourceResult& WithCreationTime(CreationTimeT&& value) {
98 SetCreationTime(std::forward<CreationTimeT>(value));
99 return *this;
100 }
102
104
108 inline IdentitySourceStatus GetStatus() const { return m_status; }
109 inline void SetStatus(IdentitySourceStatus value) {
110 m_statusHasBeenSet = true;
111 m_status = value;
112 }
114 SetStatus(value);
115 return *this;
116 }
118
120
123 inline IdentitySourceStatusCode GetStatusCode() const { return m_statusCode; }
125 m_statusCodeHasBeenSet = true;
126 m_statusCode = value;
127 }
129 SetStatusCode(value);
130 return *this;
131 }
133
135
138 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
139 template <typename StatusMessageT = Aws::String>
140 void SetStatusMessage(StatusMessageT&& value) {
141 m_statusMessageHasBeenSet = true;
142 m_statusMessage = std::forward<StatusMessageT>(value);
143 }
144 template <typename StatusMessageT = Aws::String>
146 SetStatusMessage(std::forward<StatusMessageT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 private:
167
168 IdentitySourceParametersForGet m_identitySourceParameters;
169
170 Aws::String m_identitySourceArn;
171
172 Aws::Utils::DateTime m_creationTime{};
173
175
177
178 Aws::String m_statusMessage;
179
180 Aws::String m_requestId;
181 bool m_identitySourceTypeHasBeenSet = false;
182 bool m_identitySourceParametersHasBeenSet = false;
183 bool m_identitySourceArnHasBeenSet = false;
184 bool m_creationTimeHasBeenSet = false;
185 bool m_statusHasBeenSet = false;
186 bool m_statusCodeHasBeenSet = false;
187 bool m_statusMessageHasBeenSet = false;
188 bool m_requestIdHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace MPA
193} // namespace Aws
GetIdentitySourceResult & WithIdentitySourceArn(IdentitySourceArnT &&value)
GetIdentitySourceResult & WithIdentitySourceParameters(IdentitySourceParametersT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetIdentitySourceType(IdentitySourceType value)
IdentitySourceStatusCode GetStatusCode() const
AWS_MPA_API GetIdentitySourceResult()=default
GetIdentitySourceResult & WithCreationTime(CreationTimeT &&value)
GetIdentitySourceResult & WithStatus(IdentitySourceStatus value)
GetIdentitySourceResult & WithIdentitySourceType(IdentitySourceType value)
AWS_MPA_API GetIdentitySourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStatusCode(IdentitySourceStatusCode value)
void SetIdentitySourceArn(IdentitySourceArnT &&value)
GetIdentitySourceResult & WithStatusMessage(StatusMessageT &&value)
AWS_MPA_API GetIdentitySourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetIdentitySourceParameters(IdentitySourceParametersT &&value)
GetIdentitySourceResult & WithStatusCode(IdentitySourceStatusCode value)
GetIdentitySourceResult & WithRequestId(RequestIdT &&value)
const IdentitySourceParametersForGet & GetIdentitySourceParameters() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue