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/gamelift/GameLift_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 GameLift
22{
23namespace Model
24{
25
43 {
44 public:
45 AWS_GAMELIFT_API AwsCredentials();
46 AWS_GAMELIFT_API AwsCredentials(Aws::Utils::Json::JsonView jsonValue);
48 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
56 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
57 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
58 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
59 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
60 inline AwsCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
61 inline AwsCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
62 inline AwsCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
64
66
69 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
70 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
71 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
72 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
73 inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
74 inline AwsCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
75 inline AwsCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
76 inline AwsCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
78
80
84 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
85 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
86 inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
87 inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
88 inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
89 inline AwsCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
90 inline AwsCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
91 inline AwsCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
93 private:
94
95 Aws::String m_accessKeyId;
96 bool m_accessKeyIdHasBeenSet = false;
97
98 Aws::String m_secretAccessKey;
99 bool m_secretAccessKeyHasBeenSet = false;
100
101 Aws::String m_sessionToken;
102 bool m_sessionTokenHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace GameLift
107} // namespace Aws
AwsCredentials & WithSecretAccessKey(const Aws::String &value)
void SetSecretAccessKey(const Aws::String &value)
AwsCredentials & WithSessionToken(Aws::String &&value)
AwsCredentials & WithAccessKeyId(Aws::String &&value)
const Aws::String & GetSessionToken() const
void SetSessionToken(Aws::String &&value)
void SetSecretAccessKey(Aws::String &&value)
void SetAccessKeyId(const char *value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSessionToken(const char *value)
AwsCredentials & WithSecretAccessKey(const char *value)
AwsCredentials & WithAccessKeyId(const char *value)
void SetAccessKeyId(const Aws::String &value)
AWS_GAMELIFT_API AwsCredentials(Aws::Utils::Json::JsonView jsonValue)
void SetSessionToken(const Aws::String &value)
void SetSecretAccessKey(const char *value)
AwsCredentials & WithAccessKeyId(const Aws::String &value)
AWS_GAMELIFT_API AwsCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSecretAccessKey() const
AwsCredentials & WithSecretAccessKey(Aws::String &&value)
AwsCredentials & WithSessionToken(const char *value)
const Aws::String & GetAccessKeyId() const
AwsCredentials & WithSessionToken(const Aws::String &value)
void SetAccessKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue