AWS SDK for C++  1.9.160
AWS SDK for C++
RoleCredentials.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sso/SSO_EXPORTS.h>
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 SSO
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
48  inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
49 
57  inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
58 
66  inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
67 
75  inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
76 
84  inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
85 
93  inline RoleCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
94 
102  inline RoleCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
103 
111  inline RoleCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
112 
113 
120  inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
121 
128  inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
129 
136  inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
137 
144  inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
145 
152  inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
153 
160  inline RoleCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
161 
168  inline RoleCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
169 
176  inline RoleCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
177 
178 
185  inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
186 
193  inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
194 
201  inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
202 
209  inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
210 
217  inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
218 
225  inline RoleCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
226 
233  inline RoleCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
234 
241  inline RoleCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
242 
243 
247  inline long long GetExpiration() const{ return m_expiration; }
248 
252  inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
253 
257  inline void SetExpiration(long long value) { m_expirationHasBeenSet = true; m_expiration = value; }
258 
262  inline RoleCredentials& WithExpiration(long long value) { SetExpiration(value); return *this;}
263 
264  private:
265 
266  Aws::String m_accessKeyId;
267  bool m_accessKeyIdHasBeenSet;
268 
269  Aws::String m_secretAccessKey;
270  bool m_secretAccessKeyHasBeenSet;
271 
272  Aws::String m_sessionToken;
273  bool m_sessionTokenHasBeenSet;
274 
275  long long m_expiration;
276  bool m_expirationHasBeenSet;
277  };
278 
279 } // namespace Model
280 } // namespace SSO
281 } // namespace Aws
Aws::SSO::Model::RoleCredentials::SetAccessKeyId
void SetAccessKeyId(const char *value)
Definition: RoleCredentials.h:84
Aws::SSO::Model::RoleCredentials::SetAccessKeyId
void SetAccessKeyId(const Aws::String &value)
Definition: RoleCredentials.h:66
Aws::IoTSiteWise::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::SSO::Model::RoleCredentials::SecretAccessKeyHasBeenSet
bool SecretAccessKeyHasBeenSet() const
Definition: RoleCredentials.h:128
Aws::SSO::Model::RoleCredentials::SessionTokenHasBeenSet
bool SessionTokenHasBeenSet() const
Definition: RoleCredentials.h:193
SSO_EXPORTS.h
AWS_SSO_API
#define AWS_SSO_API
Definition: SSO_EXPORTS.h:28
Aws::SSO::Model::RoleCredentials::SetSessionToken
void SetSessionToken(Aws::String &&value)
Definition: RoleCredentials.h:209
Aws::SSO::Model::RoleCredentials::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSO::Model::RoleCredentials::WithSecretAccessKey
RoleCredentials & WithSecretAccessKey(const Aws::String &value)
Definition: RoleCredentials.h:160
Aws::SSO::Model::RoleCredentials::SetSessionToken
void SetSessionToken(const Aws::String &value)
Definition: RoleCredentials.h:201
Aws::SSO::Model::RoleCredentials::SetSessionToken
void SetSessionToken(const char *value)
Definition: RoleCredentials.h:217
Aws::SSO::Model::RoleCredentials::GetAccessKeyId
const Aws::String & GetAccessKeyId() const
Definition: RoleCredentials.h:48
Aws::SSO::Model::RoleCredentials::RoleCredentials
RoleCredentials(Aws::Utils::Json::JsonView jsonValue)
Aws::SSO::Model::RoleCredentials::WithSessionToken
RoleCredentials & WithSessionToken(const char *value)
Definition: RoleCredentials.h:241
Aws::SSO::Model::RoleCredentials::RoleCredentials
RoleCredentials()
Aws::SSO::Model::RoleCredentials::SetAccessKeyId
void SetAccessKeyId(Aws::String &&value)
Definition: RoleCredentials.h:75
Aws::SSO::Model::RoleCredentials::WithAccessKeyId
RoleCredentials & WithAccessKeyId(Aws::String &&value)
Definition: RoleCredentials.h:102
Aws::SSO::Model::RoleCredentials::WithAccessKeyId
RoleCredentials & WithAccessKeyId(const Aws::String &value)
Definition: RoleCredentials.h:93
Aws::SSO::Model::RoleCredentials::SetSecretAccessKey
void SetSecretAccessKey(Aws::String &&value)
Definition: RoleCredentials.h:144
Aws::SSO::Model::RoleCredentials::WithExpiration
RoleCredentials & WithExpiration(long long value)
Definition: RoleCredentials.h:262
Aws::SSO::Model::RoleCredentials::GetExpiration
long long GetExpiration() const
Definition: RoleCredentials.h:247
Aws::SSO::Model::RoleCredentials::WithSecretAccessKey
RoleCredentials & WithSecretAccessKey(const char *value)
Definition: RoleCredentials.h:176
Aws::SSO::Model::RoleCredentials::GetSessionToken
const Aws::String & GetSessionToken() const
Definition: RoleCredentials.h:185
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SSO::Model::RoleCredentials::SetSecretAccessKey
void SetSecretAccessKey(const Aws::String &value)
Definition: RoleCredentials.h:136
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SSO::Model::RoleCredentials::SetExpiration
void SetExpiration(long long value)
Definition: RoleCredentials.h:257
Aws::SSO::Model::RoleCredentials::operator=
RoleCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSO::Model::RoleCredentials::WithSessionToken
RoleCredentials & WithSessionToken(const Aws::String &value)
Definition: RoleCredentials.h:225
Aws::SSO::Model::RoleCredentials::WithSessionToken
RoleCredentials & WithSessionToken(Aws::String &&value)
Definition: RoleCredentials.h:233
Aws::SSO::Model::RoleCredentials::GetSecretAccessKey
const Aws::String & GetSecretAccessKey() const
Definition: RoleCredentials.h:120
Aws::SSO::Model::RoleCredentials::ExpirationHasBeenSet
bool ExpirationHasBeenSet() const
Definition: RoleCredentials.h:252
Aws::SSO::Model::RoleCredentials::SetSecretAccessKey
void SetSecretAccessKey(const char *value)
Definition: RoleCredentials.h:152
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::SSO::Model::RoleCredentials
Definition: RoleCredentials.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::SSO::Model::RoleCredentials::WithSecretAccessKey
RoleCredentials & WithSecretAccessKey(Aws::String &&value)
Definition: RoleCredentials.h:168
Aws::SSO::Model::RoleCredentials::AccessKeyIdHasBeenSet
bool AccessKeyIdHasBeenSet() const
Definition: RoleCredentials.h:57
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSO::Model::RoleCredentials::WithAccessKeyId
RoleCredentials & WithAccessKeyId(const char *value)
Definition: RoleCredentials.h:111