AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
StartOAuthSessionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/credentialbroker/CredentialBroker_EXPORTS.h>
11#include <aws/credentialbroker/model/SessionStatus.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 CredentialBroker {
25namespace Model {
27 public:
28 AWS_CREDENTIALBROKER_API StartOAuthSessionResult() = default;
31
33
38 inline const Aws::String& GetAuthorizationUrl() const { return m_authorizationUrl; }
39 template <typename AuthorizationUrlT = Aws::String>
40 void SetAuthorizationUrl(AuthorizationUrlT&& value) {
41 m_authorizationUrlHasBeenSet = true;
42 m_authorizationUrl = std::forward<AuthorizationUrlT>(value);
43 }
44 template <typename AuthorizationUrlT = Aws::String>
45 StartOAuthSessionResult& WithAuthorizationUrl(AuthorizationUrlT&& value) {
46 SetAuthorizationUrl(std::forward<AuthorizationUrlT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetSessionUri() const { return m_sessionUri; }
57 template <typename SessionUriT = Aws::String>
58 void SetSessionUri(SessionUriT&& value) {
59 m_sessionUriHasBeenSet = true;
60 m_sessionUri = std::forward<SessionUriT>(value);
61 }
62 template <typename SessionUriT = Aws::String>
64 SetSessionUri(std::forward<SessionUriT>(value));
65 return *this;
66 }
68
70
73 inline SessionStatus GetSessionStatus() const { return m_sessionStatus; }
74 inline void SetSessionStatus(SessionStatus value) {
75 m_sessionStatusHasBeenSet = true;
76 m_sessionStatus = value;
77 }
79 SetSessionStatus(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
89 template <typename AccessTokenT = Aws::String>
90 void SetAccessToken(AccessTokenT&& value) {
91 m_accessTokenHasBeenSet = true;
92 m_accessToken = std::forward<AccessTokenT>(value);
93 }
94 template <typename AccessTokenT = Aws::String>
96 SetAccessToken(std::forward<AccessTokenT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
106 template <typename ExpiresAtT = Aws::Utils::DateTime>
107 void SetExpiresAt(ExpiresAtT&& value) {
108 m_expiresAtHasBeenSet = true;
109 m_expiresAt = std::forward<ExpiresAtT>(value);
110 }
111 template <typename ExpiresAtT = Aws::Utils::DateTime>
113 SetExpiresAt(std::forward<ExpiresAtT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template <typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) {
123 m_requestIdHasBeenSet = true;
124 m_requestId = std::forward<RequestIdT>(value);
125 }
126 template <typename RequestIdT = Aws::String>
128 SetRequestId(std::forward<RequestIdT>(value));
129 return *this;
130 }
132 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
133
134 private:
135 Aws::String m_authorizationUrl;
136
137 Aws::String m_sessionUri;
138
139 SessionStatus m_sessionStatus{SessionStatus::NOT_SET};
140
141 Aws::String m_accessToken;
142
143 Aws::Utils::DateTime m_expiresAt{};
144
145 Aws::String m_requestId;
146 Aws::Http::HttpResponseCode m_HttpResponseCode;
147 bool m_authorizationUrlHasBeenSet = false;
148 bool m_sessionUriHasBeenSet = false;
149 bool m_sessionStatusHasBeenSet = false;
150 bool m_accessTokenHasBeenSet = false;
151 bool m_expiresAtHasBeenSet = false;
152 bool m_requestIdHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace CredentialBroker
157} // namespace Aws
AWS_CREDENTIALBROKER_API StartOAuthSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartOAuthSessionResult & WithAuthorizationUrl(AuthorizationUrlT &&value)
AWS_CREDENTIALBROKER_API StartOAuthSessionResult()=default
StartOAuthSessionResult & WithAccessToken(AccessTokenT &&value)
StartOAuthSessionResult & WithExpiresAt(ExpiresAtT &&value)
AWS_CREDENTIALBROKER_API StartOAuthSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartOAuthSessionResult & WithSessionUri(SessionUriT &&value)
StartOAuthSessionResult & WithSessionStatus(SessionStatus value)
StartOAuthSessionResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue