AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAccessTokenResult.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_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 CodeCatalyst
25{
26namespace Model
27{
29 {
30 public:
31 AWS_CODECATALYST_API CreateAccessTokenResult();
34
35
37
40 inline const Aws::String& GetSecret() const{ return m_secret; }
41 inline void SetSecret(const Aws::String& value) { m_secret = value; }
42 inline void SetSecret(Aws::String&& value) { m_secret = std::move(value); }
43 inline void SetSecret(const char* value) { m_secret.assign(value); }
44 inline CreateAccessTokenResult& WithSecret(const Aws::String& value) { SetSecret(value); return *this;}
45 inline CreateAccessTokenResult& WithSecret(Aws::String&& value) { SetSecret(std::move(value)); return *this;}
46 inline CreateAccessTokenResult& WithSecret(const char* value) { SetSecret(value); return *this;}
48
50
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline void SetName(const Aws::String& value) { m_name = value; }
55 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
56 inline void SetName(const char* value) { m_name.assign(value); }
57 inline CreateAccessTokenResult& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline CreateAccessTokenResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline CreateAccessTokenResult& WithName(const char* value) { SetName(value); return *this;}
61
63
69 inline const Aws::Utils::DateTime& GetExpiresTime() const{ return m_expiresTime; }
70 inline void SetExpiresTime(const Aws::Utils::DateTime& value) { m_expiresTime = value; }
71 inline void SetExpiresTime(Aws::Utils::DateTime&& value) { m_expiresTime = std::move(value); }
72 inline CreateAccessTokenResult& WithExpiresTime(const Aws::Utils::DateTime& value) { SetExpiresTime(value); return *this;}
73 inline CreateAccessTokenResult& WithExpiresTime(Aws::Utils::DateTime&& value) { SetExpiresTime(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetAccessTokenId() const{ return m_accessTokenId; }
81 inline void SetAccessTokenId(const Aws::String& value) { m_accessTokenId = value; }
82 inline void SetAccessTokenId(Aws::String&& value) { m_accessTokenId = std::move(value); }
83 inline void SetAccessTokenId(const char* value) { m_accessTokenId.assign(value); }
84 inline CreateAccessTokenResult& WithAccessTokenId(const Aws::String& value) { SetAccessTokenId(value); return *this;}
85 inline CreateAccessTokenResult& WithAccessTokenId(Aws::String&& value) { SetAccessTokenId(std::move(value)); return *this;}
86 inline CreateAccessTokenResult& WithAccessTokenId(const char* value) { SetAccessTokenId(value); return *this;}
88
90
91 inline const Aws::String& GetRequestId() const{ return m_requestId; }
92 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
93 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
94 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
95 inline CreateAccessTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
96 inline CreateAccessTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
97 inline CreateAccessTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
99 private:
100
101 Aws::String m_secret;
102
103 Aws::String m_name;
104
105 Aws::Utils::DateTime m_expiresTime;
106
107 Aws::String m_accessTokenId;
108
109 Aws::String m_requestId;
110 };
111
112} // namespace Model
113} // namespace CodeCatalyst
114} // namespace Aws
CreateAccessTokenResult & WithAccessTokenId(const Aws::String &value)
CreateAccessTokenResult & WithAccessTokenId(const char *value)
CreateAccessTokenResult & WithExpiresTime(Aws::Utils::DateTime &&value)
CreateAccessTokenResult & WithSecret(const Aws::String &value)
void SetExpiresTime(const Aws::Utils::DateTime &value)
CreateAccessTokenResult & WithName(Aws::String &&value)
CreateAccessTokenResult & WithRequestId(const char *value)
AWS_CODECATALYST_API CreateAccessTokenResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateAccessTokenResult & WithSecret(Aws::String &&value)
CreateAccessTokenResult & WithName(const char *value)
CreateAccessTokenResult & WithExpiresTime(const Aws::Utils::DateTime &value)
CreateAccessTokenResult & WithName(const Aws::String &value)
CreateAccessTokenResult & WithSecret(const char *value)
CreateAccessTokenResult & WithRequestId(const Aws::String &value)
CreateAccessTokenResult & WithAccessTokenId(Aws::String &&value)
AWS_CODECATALYST_API CreateAccessTokenResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetExpiresTime() const
CreateAccessTokenResult & WithRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue