AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetAuthorizationTokenResult.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeArtifact {
24namespace Model {
26 public:
27 AWS_CODEARTIFACT_API GetAuthorizationTokenResult() = default;
30
32
35 inline const Aws::String& GetAuthorizationToken() const { return m_authorizationToken; }
36 template <typename AuthorizationTokenT = Aws::String>
37 void SetAuthorizationToken(AuthorizationTokenT&& value) {
38 m_authorizationTokenHasBeenSet = true;
39 m_authorizationToken = std::forward<AuthorizationTokenT>(value);
40 }
41 template <typename AuthorizationTokenT = Aws::String>
43 SetAuthorizationToken(std::forward<AuthorizationTokenT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::Utils::DateTime& GetExpiration() const { return m_expiration; }
54 template <typename ExpirationT = Aws::Utils::DateTime>
55 void SetExpiration(ExpirationT&& value) {
56 m_expirationHasBeenSet = true;
57 m_expiration = std::forward<ExpirationT>(value);
58 }
59 template <typename ExpirationT = Aws::Utils::DateTime>
61 SetExpiration(std::forward<ExpirationT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template <typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) {
71 m_requestIdHasBeenSet = true;
72 m_requestId = std::forward<RequestIdT>(value);
73 }
74 template <typename RequestIdT = Aws::String>
76 SetRequestId(std::forward<RequestIdT>(value));
77 return *this;
78 }
80 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
81
82 private:
83 Aws::String m_authorizationToken;
84
85 Aws::Utils::DateTime m_expiration{};
86
87 Aws::String m_requestId;
88 Aws::Http::HttpResponseCode m_HttpResponseCode;
89 bool m_authorizationTokenHasBeenSet = false;
90 bool m_expirationHasBeenSet = false;
91 bool m_requestIdHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace CodeArtifact
96} // namespace Aws
GetAuthorizationTokenResult & WithExpiration(ExpirationT &&value)
AWS_CODEARTIFACT_API GetAuthorizationTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAuthorizationTokenResult & WithAuthorizationToken(AuthorizationTokenT &&value)
AWS_CODEARTIFACT_API GetAuthorizationTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CODEARTIFACT_API GetAuthorizationTokenResult()=default
GetAuthorizationTokenResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue