AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssumeImpersonationRoleResult.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace WorkMail
24{
25namespace Model
26{
28 {
29 public:
33
34
36
39 inline const Aws::String& GetToken() const{ return m_token; }
40 inline void SetToken(const Aws::String& value) { m_token = value; }
41 inline void SetToken(Aws::String&& value) { m_token = std::move(value); }
42 inline void SetToken(const char* value) { m_token.assign(value); }
43 inline AssumeImpersonationRoleResult& WithToken(const Aws::String& value) { SetToken(value); return *this;}
44 inline AssumeImpersonationRoleResult& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
45 inline AssumeImpersonationRoleResult& WithToken(const char* value) { SetToken(value); return *this;}
47
49
52 inline long long GetExpiresIn() const{ return m_expiresIn; }
53 inline void SetExpiresIn(long long value) { m_expiresIn = value; }
54 inline AssumeImpersonationRoleResult& WithExpiresIn(long long value) { SetExpiresIn(value); return *this;}
56
58
59 inline const Aws::String& GetRequestId() const{ return m_requestId; }
60 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
61 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
62 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
63 inline AssumeImpersonationRoleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
64 inline AssumeImpersonationRoleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
65 inline AssumeImpersonationRoleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
67 private:
68
69 Aws::String m_token;
70
71 long long m_expiresIn;
72
73 Aws::String m_requestId;
74 };
75
76} // namespace Model
77} // namespace WorkMail
78} // namespace Aws
AssumeImpersonationRoleResult & WithToken(const Aws::String &value)
AWS_WORKMAIL_API AssumeImpersonationRoleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssumeImpersonationRoleResult & WithToken(Aws::String &&value)
AssumeImpersonationRoleResult & WithRequestId(const Aws::String &value)
AssumeImpersonationRoleResult & WithToken(const char *value)
AssumeImpersonationRoleResult & WithRequestId(Aws::String &&value)
AssumeImpersonationRoleResult & WithExpiresIn(long long value)
AWS_WORKMAIL_API AssumeImpersonationRoleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssumeImpersonationRoleResult & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue