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/finspace-data/FinSpaceData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FinSpaceData
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_FINSPACEDATA_API Credentials();
35 AWS_FINSPACEDATA_API Credentials(Aws::Utils::Json::JsonView jsonValue);
36 AWS_FINSPACEDATA_API Credentials& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
45 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
46 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
47 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
48 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
49 inline Credentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
50 inline Credentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
51 inline Credentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
53
55
58 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
59 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
60 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
61 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
62 inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
63 inline Credentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
64 inline Credentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
65 inline Credentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
67
69
72 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
73 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
74 inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
75 inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
76 inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
77 inline Credentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
78 inline Credentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
79 inline Credentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
81 private:
82
83 Aws::String m_accessKeyId;
84 bool m_accessKeyIdHasBeenSet = false;
85
86 Aws::String m_secretAccessKey;
87 bool m_secretAccessKeyHasBeenSet = false;
88
89 Aws::String m_sessionToken;
90 bool m_sessionTokenHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace FinSpaceData
95} // namespace Aws
void SetSessionToken(const Aws::String &value)
Definition Credentials.h:74
Credentials & WithSecretAccessKey(Aws::String &&value)
Definition Credentials.h:64
AWS_FINSPACEDATA_API Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecretAccessKey(const char *value)
Definition Credentials.h:62
AWS_FINSPACEDATA_API Credentials(Aws::Utils::Json::JsonView jsonValue)
AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccessKeyId(Aws::String &&value)
Definition Credentials.h:47
void SetSecretAccessKey(Aws::String &&value)
Definition Credentials.h:61
void SetAccessKeyId(const char *value)
Definition Credentials.h:48
Credentials & WithSecretAccessKey(const Aws::String &value)
Definition Credentials.h:63
const Aws::String & GetSecretAccessKey() const
Definition Credentials.h:58
void SetSessionToken(const char *value)
Definition Credentials.h:76
Credentials & WithSessionToken(Aws::String &&value)
Definition Credentials.h:78
Credentials & WithSecretAccessKey(const char *value)
Definition Credentials.h:65
Credentials & WithAccessKeyId(const Aws::String &value)
Definition Credentials.h:49
AWS_FINSPACEDATA_API Credentials()
void SetSessionToken(Aws::String &&value)
Definition Credentials.h:75
const Aws::String & GetSessionToken() const
Definition Credentials.h:72
Credentials & WithAccessKeyId(const char *value)
Definition Credentials.h:51
Credentials & WithSessionToken(const Aws::String &value)
Definition Credentials.h:77
Credentials & WithSessionToken(const char *value)
Definition Credentials.h:79
void SetAccessKeyId(const Aws::String &value)
Definition Credentials.h:46
Credentials & WithAccessKeyId(Aws::String &&value)
Definition Credentials.h:50
const Aws::String & GetAccessKeyId() const
Definition Credentials.h:44
void SetSecretAccessKey(const Aws::String &value)
Definition Credentials.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue