AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetClusterSessionCredentialsResult.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/Credentials.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace EMR
26{
27namespace Model
28{
30 {
31 public:
35
36
38
42 inline const Credentials& GetCredentials() const{ return m_credentials; }
43 inline void SetCredentials(const Credentials& value) { m_credentials = value; }
44 inline void SetCredentials(Credentials&& value) { m_credentials = std::move(value); }
46 inline GetClusterSessionCredentialsResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;}
48
50
54 inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
55 inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAt = value; }
56 inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAt = std::move(value); }
58 inline GetClusterSessionCredentialsResult& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
60
62
63 inline const Aws::String& GetRequestId() const{ return m_requestId; }
64 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
65 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
66 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
67 inline GetClusterSessionCredentialsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
68 inline GetClusterSessionCredentialsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
69 inline GetClusterSessionCredentialsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
71 private:
72
73 Credentials m_credentials;
74
75 Aws::Utils::DateTime m_expiresAt;
76
77 Aws::String m_requestId;
78 };
79
80} // namespace Model
81} // namespace EMR
82} // namespace Aws
GetClusterSessionCredentialsResult & WithExpiresAt(const Aws::Utils::DateTime &value)
GetClusterSessionCredentialsResult & WithRequestId(Aws::String &&value)
GetClusterSessionCredentialsResult & WithRequestId(const char *value)
GetClusterSessionCredentialsResult & WithCredentials(const Credentials &value)
AWS_EMR_API GetClusterSessionCredentialsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetClusterSessionCredentialsResult & WithRequestId(const Aws::String &value)
GetClusterSessionCredentialsResult & WithCredentials(Credentials &&value)
AWS_EMR_API GetClusterSessionCredentialsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetClusterSessionCredentialsResult & WithExpiresAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue