AWS SDK for C++  1.9.160
AWS SDK for C++
AwsCredentials.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GameLift
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
47 
51  inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
52 
56  inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
57 
61  inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
62 
66  inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
67 
71  inline AwsCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
72 
76  inline AwsCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
77 
81  inline AwsCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
82 
83 
87  inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
88 
92  inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
93 
97  inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
98 
102  inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
103 
107  inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
108 
112  inline AwsCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
113 
117  inline AwsCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
118 
122  inline AwsCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
123 
124 
129  inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
130 
135  inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
136 
141  inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
142 
147  inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
148 
153  inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
154 
159  inline AwsCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
160 
165  inline AwsCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
166 
171  inline AwsCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
172 
173  private:
174 
175  Aws::String m_accessKeyId;
176  bool m_accessKeyIdHasBeenSet;
177 
178  Aws::String m_secretAccessKey;
179  bool m_secretAccessKeyHasBeenSet;
180 
181  Aws::String m_sessionToken;
182  bool m_sessionTokenHasBeenSet;
183  };
184 
185 } // namespace Model
186 } // namespace GameLift
187 } // namespace Aws
Aws::GameLift::Model::AwsCredentials::WithSessionToken
AwsCredentials & WithSessionToken(const char *value)
Definition: AwsCredentials.h:171
Aws::GameLift::Model::AwsCredentials::AwsCredentials
AwsCredentials()
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::AwsCredentials::WithSessionToken
AwsCredentials & WithSessionToken(const Aws::String &value)
Definition: AwsCredentials.h:159
Aws::GameLift::Model::AwsCredentials::GetSessionToken
const Aws::String & GetSessionToken() const
Definition: AwsCredentials.h:129
Aws::GameLift::Model::AwsCredentials::WithSecretAccessKey
AwsCredentials & WithSecretAccessKey(const Aws::String &value)
Definition: AwsCredentials.h:112
Aws::GameLift::Model::AwsCredentials::SetAccessKeyId
void SetAccessKeyId(const char *value)
Definition: AwsCredentials.h:66
Aws::GameLift::Model::AwsCredentials::GetSecretAccessKey
const Aws::String & GetSecretAccessKey() const
Definition: AwsCredentials.h:87
Aws::GameLift::Model::AwsCredentials::SetAccessKeyId
void SetAccessKeyId(const Aws::String &value)
Definition: AwsCredentials.h:56
GameLift_EXPORTS.h
Aws::GameLift::Model::AwsCredentials::SetSessionToken
void SetSessionToken(Aws::String &&value)
Definition: AwsCredentials.h:147
Aws::GameLift::Model::AwsCredentials::SetSessionToken
void SetSessionToken(const Aws::String &value)
Definition: AwsCredentials.h:141
Aws::GameLift::Model::AwsCredentials::WithSecretAccessKey
AwsCredentials & WithSecretAccessKey(const char *value)
Definition: AwsCredentials.h:122
Aws::GameLift::Model::AwsCredentials::AwsCredentials
AwsCredentials(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::AwsCredentials::SecretAccessKeyHasBeenSet
bool SecretAccessKeyHasBeenSet() const
Definition: AwsCredentials.h:92
Aws::GameLift::Model::AwsCredentials::WithSessionToken
AwsCredentials & WithSessionToken(Aws::String &&value)
Definition: AwsCredentials.h:165
Aws::GameLift::Model::AwsCredentials::SetSecretAccessKey
void SetSecretAccessKey(Aws::String &&value)
Definition: AwsCredentials.h:102
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::AwsCredentials::WithAccessKeyId
AwsCredentials & WithAccessKeyId(Aws::String &&value)
Definition: AwsCredentials.h:76
Aws::GameLift::Model::AwsCredentials::WithSecretAccessKey
AwsCredentials & WithSecretAccessKey(Aws::String &&value)
Definition: AwsCredentials.h:117
Aws::GameLift::Model::AwsCredentials::WithAccessKeyId
AwsCredentials & WithAccessKeyId(const char *value)
Definition: AwsCredentials.h:81
Aws::GameLift::Model::AwsCredentials::AccessKeyIdHasBeenSet
bool AccessKeyIdHasBeenSet() const
Definition: AwsCredentials.h:51
Aws::GameLift::Model::AwsCredentials::SetAccessKeyId
void SetAccessKeyId(Aws::String &&value)
Definition: AwsCredentials.h:61
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::AwsCredentials::SetSessionToken
void SetSessionToken(const char *value)
Definition: AwsCredentials.h:153
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::AwsCredentials::operator=
AwsCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::AwsCredentials::SessionTokenHasBeenSet
bool SessionTokenHasBeenSet() const
Definition: AwsCredentials.h:135
Aws::GameLift::Model::AwsCredentials::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::AwsCredentials::WithAccessKeyId
AwsCredentials & WithAccessKeyId(const Aws::String &value)
Definition: AwsCredentials.h:71
Aws::GameLift::Model::AwsCredentials::SetSecretAccessKey
void SetSecretAccessKey(const Aws::String &value)
Definition: AwsCredentials.h:97
Aws::GameLift::Model::AwsCredentials::GetAccessKeyId
const Aws::String & GetAccessKeyId() const
Definition: AwsCredentials.h:46
Aws::GameLift::Model::AwsCredentials
Definition: AwsCredentials.h:35
Aws::GameLift::Model::AwsCredentials::SetSecretAccessKey
void SetSecretAccessKey(const char *value)
Definition: AwsCredentials.h:107