AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetAuthorizationTokenResult.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CodeArtifact {
23namespace Model {
25 public:
26 AWS_CODEARTIFACT_API GetAuthorizationTokenResult() = default;
29
31
34 inline const Aws::String& GetAuthorizationToken() const { return m_authorizationToken; }
35 template <typename AuthorizationTokenT = Aws::String>
36 void SetAuthorizationToken(AuthorizationTokenT&& value) {
37 m_authorizationTokenHasBeenSet = true;
38 m_authorizationToken = std::forward<AuthorizationTokenT>(value);
39 }
40 template <typename AuthorizationTokenT = Aws::String>
42 SetAuthorizationToken(std::forward<AuthorizationTokenT>(value));
43 return *this;
44 }
46
48
52 inline const Aws::Utils::DateTime& GetExpiration() const { return m_expiration; }
53 template <typename ExpirationT = Aws::Utils::DateTime>
54 void SetExpiration(ExpirationT&& value) {
55 m_expirationHasBeenSet = true;
56 m_expiration = std::forward<ExpirationT>(value);
57 }
58 template <typename ExpirationT = Aws::Utils::DateTime>
60 SetExpiration(std::forward<ExpirationT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_authorizationToken;
81
82 Aws::Utils::DateTime m_expiration{};
83
84 Aws::String m_requestId;
85 bool m_authorizationTokenHasBeenSet = false;
86 bool m_expirationHasBeenSet = false;
87 bool m_requestIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace CodeArtifact
92} // 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