AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetEnvironmentCredentialsResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_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{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DataZone
25{
26namespace Model
27{
29 {
30 public:
34
35
37
40 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
41 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyId = value; }
42 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyId = std::move(value); }
43 inline void SetAccessKeyId(const char* value) { m_accessKeyId.assign(value); }
44 inline GetEnvironmentCredentialsResult& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
45 inline GetEnvironmentCredentialsResult& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
46 inline GetEnvironmentCredentialsResult& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
48
50
53 inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; }
54 inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expiration = value; }
55 inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expiration = std::move(value); }
57 inline GetEnvironmentCredentialsResult& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;}
59
61
64 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
65 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKey = value; }
66 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKey = std::move(value); }
67 inline void SetSecretAccessKey(const char* value) { m_secretAccessKey.assign(value); }
69 inline GetEnvironmentCredentialsResult& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
70 inline GetEnvironmentCredentialsResult& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
72
74
77 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
78 inline void SetSessionToken(const Aws::String& value) { m_sessionToken = value; }
79 inline void SetSessionToken(Aws::String&& value) { m_sessionToken = std::move(value); }
80 inline void SetSessionToken(const char* value) { m_sessionToken.assign(value); }
81 inline GetEnvironmentCredentialsResult& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
82 inline GetEnvironmentCredentialsResult& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
83 inline GetEnvironmentCredentialsResult& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
85
87
88 inline const Aws::String& GetRequestId() const{ return m_requestId; }
89 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
90 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
91 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
92 inline GetEnvironmentCredentialsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
93 inline GetEnvironmentCredentialsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
94 inline GetEnvironmentCredentialsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
96 private:
97
98 Aws::String m_accessKeyId;
99
100 Aws::Utils::DateTime m_expiration;
101
102 Aws::String m_secretAccessKey;
103
104 Aws::String m_sessionToken;
105
106 Aws::String m_requestId;
107 };
108
109} // namespace Model
110} // namespace DataZone
111} // namespace Aws
GetEnvironmentCredentialsResult & WithSecretAccessKey(const Aws::String &value)
GetEnvironmentCredentialsResult & WithRequestId(const char *value)
GetEnvironmentCredentialsResult & WithRequestId(Aws::String &&value)
GetEnvironmentCredentialsResult & WithSecretAccessKey(Aws::String &&value)
GetEnvironmentCredentialsResult & WithSecretAccessKey(const char *value)
AWS_DATAZONE_API GetEnvironmentCredentialsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEnvironmentCredentialsResult & WithExpiration(Aws::Utils::DateTime &&value)
GetEnvironmentCredentialsResult & WithSessionToken(const Aws::String &value)
GetEnvironmentCredentialsResult & WithAccessKeyId(Aws::String &&value)
GetEnvironmentCredentialsResult & WithSessionToken(Aws::String &&value)
GetEnvironmentCredentialsResult & WithAccessKeyId(const char *value)
GetEnvironmentCredentialsResult & WithSessionToken(const char *value)
GetEnvironmentCredentialsResult & WithExpiration(const Aws::Utils::DateTime &value)
GetEnvironmentCredentialsResult & WithRequestId(const Aws::String &value)
GetEnvironmentCredentialsResult & WithAccessKeyId(const Aws::String &value)
AWS_DATAZONE_API GetEnvironmentCredentialsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue