AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Credentials.h
1
6#pragma once
7#include <aws/eks-auth/EKSAuth_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EKSAuth
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EKSAUTH_API Credentials();
37 AWS_EKSAUTH_API Credentials(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EKSAUTH_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
48 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
49 inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
50 inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
51 inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
52 inline Credentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
53 inline Credentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
54 inline Credentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
56
58
62 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
63 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
64 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
65 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
66 inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
67 inline Credentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
68 inline Credentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
69 inline Credentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
71
73
76 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
77 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
78 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
79 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
80 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
81 inline Credentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
82 inline Credentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
83 inline Credentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; }
91 inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
92 inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expirationHasBeenSet = true; m_expiration = value; }
93 inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); }
94 inline Credentials& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;}
95 inline Credentials& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_sessionToken;
100 bool m_sessionTokenHasBeenSet = false;
101
102 Aws::String m_secretAccessKey;
103 bool m_secretAccessKeyHasBeenSet = false;
104
105 Aws::String m_accessKeyId;
106 bool m_accessKeyIdHasBeenSet = false;
107
108 Aws::Utils::DateTime m_expiration;
109 bool m_expirationHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EKSAuth
114} // namespace Aws
void SetSessionToken(const Aws::String &value)
Definition Credentials.h:49
Credentials & WithAccessKeyId(const char *value)
Definition Credentials.h:83
void SetSecretAccessKey(const char *value)
Definition Credentials.h:66
const Aws::String & GetAccessKeyId() const
Definition Credentials.h:76
void SetAccessKeyId(const char *value)
Definition Credentials.h:80
Credentials & WithExpiration(const Aws::Utils::DateTime &value)
Definition Credentials.h:94
void SetSecretAccessKey(Aws::String &&value)
Definition Credentials.h:65
Credentials & WithSecretAccessKey(const char *value)
Definition Credentials.h:69
AWS_EKSAUTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKSAUTH_API Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSessionToken(Aws::String &&value)
Definition Credentials.h:50
Credentials & WithSessionToken(Aws::String &&value)
Definition Credentials.h:53
Credentials & WithAccessKeyId(Aws::String &&value)
Definition Credentials.h:82
Credentials & WithAccessKeyId(const Aws::String &value)
Definition Credentials.h:81
void SetSessionToken(const char *value)
Definition Credentials.h:51
void SetAccessKeyId(const Aws::String &value)
Definition Credentials.h:78
Credentials & WithSecretAccessKey(const Aws::String &value)
Definition Credentials.h:67
Credentials & WithExpiration(Aws::Utils::DateTime &&value)
Definition Credentials.h:95
Credentials & WithSessionToken(const Aws::String &value)
Definition Credentials.h:52
Credentials & WithSessionToken(const char *value)
Definition Credentials.h:54
const Aws::String & GetSessionToken() const
Definition Credentials.h:47
void SetExpiration(Aws::Utils::DateTime &&value)
Definition Credentials.h:93
AWS_EKSAUTH_API Credentials(Aws::Utils::Json::JsonView jsonValue)
void SetSecretAccessKey(const Aws::String &value)
Definition Credentials.h:64
void SetExpiration(const Aws::Utils::DateTime &value)
Definition Credentials.h:92
void SetAccessKeyId(Aws::String &&value)
Definition Credentials.h:79
const Aws::String & GetSecretAccessKey() const
Definition Credentials.h:62
Credentials & WithSecretAccessKey(Aws::String &&value)
Definition Credentials.h:68
const Aws::Utils::DateTime & GetExpiration() const
Definition Credentials.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue