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/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace deadline
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DEADLINE_API AwsCredentials();
36 AWS_DEADLINE_API AwsCredentials(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEADLINE_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 const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; }
88 inline bool ExpirationHasBeenSet() const { return m_expirationHasBeenSet; }
89 inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expirationHasBeenSet = true; m_expiration = value; }
90 inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expirationHasBeenSet = true; m_expiration = std::move(value); }
91 inline AwsCredentials& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;}
92 inline AwsCredentials& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;}
94 private:
95
96 Aws::String m_accessKeyId;
97 bool m_accessKeyIdHasBeenSet = false;
98
99 Aws::String m_secretAccessKey;
100 bool m_secretAccessKeyHasBeenSet = false;
101
102 Aws::String m_sessionToken;
103 bool m_sessionTokenHasBeenSet = false;
104
105 Aws::Utils::DateTime m_expiration;
106 bool m_expirationHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace deadline
111} // namespace Aws
void SetSessionToken(const char *value)
void SetSessionToken(Aws::String &&value)
const Aws::String & GetAccessKeyId() const
AwsCredentials & WithSecretAccessKey(const Aws::String &value)
AwsCredentials & WithSecretAccessKey(const char *value)
void SetAccessKeyId(const Aws::String &value)
AwsCredentials & WithAccessKeyId(Aws::String &&value)
void SetExpiration(const Aws::Utils::DateTime &value)
const Aws::String & GetSecretAccessKey() const
void SetExpiration(Aws::Utils::DateTime &&value)
AWS_DEADLINE_API AwsCredentials(Aws::Utils::Json::JsonView jsonValue)
void SetSessionToken(const Aws::String &value)
AWS_DEADLINE_API AwsCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSessionToken() const
void SetAccessKeyId(Aws::String &&value)
AwsCredentials & WithAccessKeyId(const char *value)
AwsCredentials & WithAccessKeyId(const Aws::String &value)
AwsCredentials & WithExpiration(Aws::Utils::DateTime &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSecretAccessKey(const char *value)
AwsCredentials & WithSessionToken(Aws::String &&value)
AwsCredentials & WithExpiration(const Aws::Utils::DateTime &value)
void SetAccessKeyId(const char *value)
void SetSecretAccessKey(const Aws::String &value)
AwsCredentials & WithSessionToken(const char *value)
const Aws::Utils::DateTime & GetExpiration() const
AwsCredentials & WithSecretAccessKey(Aws::String &&value)
void SetSecretAccessKey(Aws::String &&value)
AwsCredentials & WithSessionToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue