AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RoleCredentials.h
1
6#pragma once
7#include <aws/sso/SSO_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 SSO
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SSO_API RoleCredentials();
39
40
42
49 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
50 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
51 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
52 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
53 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
54 inline RoleCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
55 inline RoleCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
56 inline RoleCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
58
60
66 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
67 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
68 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
69 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
70 inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
71 inline RoleCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
72 inline RoleCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
73 inline RoleCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
75
77
83 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
84 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
85 inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
86 inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
87 inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
88 inline RoleCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
89 inline RoleCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
90 inline RoleCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
92
94
97 inline long long GetExpiration() const{ return m_expiration; }
98 inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
99 inline void SetExpiration(long long value) { m_expirationHasBeenSet = true; m_expiration = value; }
100 inline RoleCredentials& WithExpiration(long long value) { SetExpiration(value); return *this;}
102 private:
103
104 Aws::String m_accessKeyId;
105 bool m_accessKeyIdHasBeenSet = false;
106
107 Aws::String m_secretAccessKey;
108 bool m_secretAccessKeyHasBeenSet = false;
109
110 Aws::String m_sessionToken;
111 bool m_sessionTokenHasBeenSet = false;
112
113 long long m_expiration;
114 bool m_expirationHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace SSO
119} // namespace Aws
RoleCredentials & WithAccessKeyId(const char *value)
void SetAccessKeyId(const char *value)
void SetAccessKeyId(const Aws::String &value)
const Aws::String & GetSessionToken() const
RoleCredentials & WithSessionToken(Aws::String &&value)
RoleCredentials & WithAccessKeyId(const Aws::String &value)
void SetSecretAccessKey(const Aws::String &value)
RoleCredentials & WithExpiration(long long value)
void SetSecretAccessKey(Aws::String &&value)
void SetSessionToken(const char *value)
void SetSessionToken(Aws::String &&value)
AWS_SSO_API Aws::Utils::Json::JsonValue Jsonize() const
RoleCredentials & WithSecretAccessKey(const char *value)
void SetAccessKeyId(Aws::String &&value)
void SetSecretAccessKey(const char *value)
RoleCredentials & WithSessionToken(const char *value)
AWS_SSO_API RoleCredentials(Aws::Utils::Json::JsonView jsonValue)
RoleCredentials & WithAccessKeyId(Aws::String &&value)
RoleCredentials & WithSecretAccessKey(Aws::String &&value)
AWS_SSO_API RoleCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccessKeyId() const
const Aws::String & GetSecretAccessKey() const
RoleCredentials & WithSecretAccessKey(const Aws::String &value)
void SetSessionToken(const Aws::String &value)
RoleCredentials & WithSessionToken(const Aws::String &value)
void SetExpiration(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue