AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsCredentials.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
33 {
34 public:
35 AWS_FINSPACEDATA_API AwsCredentials();
36 AWS_FINSPACEDATA_API AwsCredentials(Aws::Utils::Json::JsonView jsonValue);
37 AWS_FINSPACEDATA_API AwsCredentials& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
46 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
47 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
48 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
49 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
50 inline AwsCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
51 inline AwsCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
52 inline AwsCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
54
56
59 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
60 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
61 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
62 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
63 inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
64 inline AwsCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
65 inline AwsCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
66 inline AwsCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
68
70
73 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
74 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
75 inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
76 inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
77 inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
78 inline AwsCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
79 inline AwsCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
80 inline AwsCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
82
84
87 inline long long GetExpiration() const{ return m_expiration; }
88 inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
89 inline void SetExpiration(long long value) { m_expirationHasBeenSet = true; m_expiration = value; }
90 inline AwsCredentials& WithExpiration(long long value) { SetExpiration(value); return *this;}
92 private:
93
94 Aws::String m_accessKeyId;
95 bool m_accessKeyIdHasBeenSet = false;
96
97 Aws::String m_secretAccessKey;
98 bool m_secretAccessKeyHasBeenSet = false;
99
100 Aws::String m_sessionToken;
101 bool m_sessionTokenHasBeenSet = false;
102
103 long long m_expiration;
104 bool m_expirationHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace FinSpaceData
109} // namespace Aws
AwsCredentials & WithSecretAccessKey(const Aws::String &value)
void SetSecretAccessKey(const char *value)
AwsCredentials & WithSecretAccessKey(Aws::String &&value)
void SetSessionToken(const Aws::String &value)
AwsCredentials & WithSecretAccessKey(const char *value)
AwsCredentials & WithAccessKeyId(Aws::String &&value)
AwsCredentials & WithSessionToken(const Aws::String &value)
void SetSessionToken(Aws::String &&value)
void SetAccessKeyId(const Aws::String &value)
AwsCredentials & WithAccessKeyId(const Aws::String &value)
AwsCredentials & WithExpiration(long long value)
const Aws::String & GetSecretAccessKey() const
const Aws::String & GetSessionToken() const
void SetSecretAccessKey(Aws::String &&value)
void SetAccessKeyId(Aws::String &&value)
void SetSecretAccessKey(const Aws::String &value)
AWS_FINSPACEDATA_API Aws::Utils::Json::JsonValue Jsonize() const
AwsCredentials & WithAccessKeyId(const char *value)
AWS_FINSPACEDATA_API AwsCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCredentials & WithSessionToken(Aws::String &&value)
const Aws::String & GetAccessKeyId() const
AWS_FINSPACEDATA_API AwsCredentials(Aws::Utils::Json::JsonView jsonValue)
AwsCredentials & WithSessionToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue