AWS SDK for C++  1.9.153
AWS SDK for C++
GetAuthorizationTokenResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace CodeArtifact
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetAuthorizationToken() const{ return m_authorizationToken; }
40 
44  inline void SetAuthorizationToken(const Aws::String& value) { m_authorizationToken = value; }
45 
49  inline void SetAuthorizationToken(Aws::String&& value) { m_authorizationToken = std::move(value); }
50 
54  inline void SetAuthorizationToken(const char* value) { m_authorizationToken.assign(value); }
55 
59  inline GetAuthorizationTokenResult& WithAuthorizationToken(const Aws::String& value) { SetAuthorizationToken(value); return *this;}
60 
64  inline GetAuthorizationTokenResult& WithAuthorizationToken(Aws::String&& value) { SetAuthorizationToken(std::move(value)); return *this;}
65 
69  inline GetAuthorizationTokenResult& WithAuthorizationToken(const char* value) { SetAuthorizationToken(value); return *this;}
70 
71 
76  inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; }
77 
82  inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expiration = value; }
83 
88  inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expiration = std::move(value); }
89 
94  inline GetAuthorizationTokenResult& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;}
95 
100  inline GetAuthorizationTokenResult& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;}
101 
102  private:
103 
104  Aws::String m_authorizationToken;
105 
106  Aws::Utils::DateTime m_expiration;
107  };
108 
109 } // namespace Model
110 } // namespace CodeArtifact
111 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::SetAuthorizationToken
void SetAuthorizationToken(Aws::String &&value)
Definition: GetAuthorizationTokenResult.h:49
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeArtifact_EXPORTS.h
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::SetAuthorizationToken
void SetAuthorizationToken(const char *value)
Definition: GetAuthorizationTokenResult.h:54
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::GetAuthorizationTokenResult
GetAuthorizationTokenResult()
DateTime.h
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::WithExpiration
GetAuthorizationTokenResult & WithExpiration(Aws::Utils::DateTime &&value)
Definition: GetAuthorizationTokenResult.h:100
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::GetExpiration
const Aws::Utils::DateTime & GetExpiration() const
Definition: GetAuthorizationTokenResult.h:76
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::SetExpiration
void SetExpiration(const Aws::Utils::DateTime &value)
Definition: GetAuthorizationTokenResult.h:82
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::WithAuthorizationToken
GetAuthorizationTokenResult & WithAuthorizationToken(const char *value)
Definition: GetAuthorizationTokenResult.h:69
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::operator=
GetAuthorizationTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::WithAuthorizationToken
GetAuthorizationTokenResult & WithAuthorizationToken(const Aws::String &value)
Definition: GetAuthorizationTokenResult.h:59
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::GetAuthorizationToken
const Aws::String & GetAuthorizationToken() const
Definition: GetAuthorizationTokenResult.h:39
AWSString.h
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::WithExpiration
GetAuthorizationTokenResult & WithExpiration(const Aws::Utils::DateTime &value)
Definition: GetAuthorizationTokenResult.h:94
AWS_CODEARTIFACT_API
#define AWS_CODEARTIFACT_API
Definition: CodeArtifact_EXPORTS.h:28
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::WithAuthorizationToken
GetAuthorizationTokenResult & WithAuthorizationToken(Aws::String &&value)
Definition: GetAuthorizationTokenResult.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::SetExpiration
void SetExpiration(Aws::Utils::DateTime &&value)
Definition: GetAuthorizationTokenResult.h:88
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::SetAuthorizationToken
void SetAuthorizationToken(const Aws::String &value)
Definition: GetAuthorizationTokenResult.h:44
Aws::CodeArtifact::Model::GetAuthorizationTokenResult
Definition: GetAuthorizationTokenResult.h:29
Aws::CodeArtifact::Model::GetAuthorizationTokenResult::GetAuthorizationTokenResult
GetAuthorizationTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)