AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3ExpressIdentity.h
1
6#pragma once
7
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <smithy/identity/identity/AwsCredentialIdentityBase.h>
11
12namespace Aws {
13 namespace S3Crt {
15 public:
16 S3ExpressIdentity() = default;
17
19 String secretKeyId,
22 m_accessKeyId(std::move(accessKeyId)),
23 m_secretKeyId(std::move(secretKeyId)),
24 m_sessionToken(std::move(sessionToken)),
25 m_expiration(expiration) {}
26
27 const String &getAccessKeyId() const {
28 return m_accessKeyId;
29 }
30
31 const String &getSecretKeyId() const {
32 return m_secretKeyId;
33 }
34
35 const String &getSessionToken() const {
36 return m_sessionToken;
37 }
38
40 return m_expiration;
41 }
42
43 String accessKeyId() const override
44 {
45 return getAccessKeyId();
46 }
47
48 String secretAccessKey() const override
49 {
50 return getSecretKeyId();
51 }
52
53 Crt::Optional<String> sessionToken() const override
54 {
55 return getSessionToken();
56 }
57
58 Crt::Optional<DateTime> expiration() const override
59 {
60 return getExpiration();
61 }
62
63
64 private:
65 Aws::String m_accessKeyId;
66 Aws::String m_secretKeyId;
67 Aws::String m_sessionToken;
68 Aws::Utils::DateTime m_expiration;
69 };
70 }
71}
const Utils::DateTime & getExpiration() const
S3ExpressIdentity(String accessKeyId, String secretKeyId, String sessionToken, const Utils::DateTime &expiration)
Crt::Optional< DateTime > expiration() const override
const String & getAccessKeyId() const
const String & getSecretKeyId() const
const String & getSessionToken() const
String secretAccessKey() const override
String accessKeyId() const override
Crt::Optional< String > sessionToken() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String