AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
SessionEndpoint.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
30 public:
31 AWS_GLUE_API SessionEndpoint() = default;
35
37
40 inline const Aws::String& GetUrl() const { return m_url; }
41 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
42 template <typename UrlT = Aws::String>
43 void SetUrl(UrlT&& value) {
44 m_urlHasBeenSet = true;
45 m_url = std::forward<UrlT>(value);
46 }
47 template <typename UrlT = Aws::String>
48 SessionEndpoint& WithUrl(UrlT&& value) {
49 SetUrl(std::forward<UrlT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetAuthToken() const { return m_authToken; }
60 inline bool AuthTokenHasBeenSet() const { return m_authTokenHasBeenSet; }
61 template <typename AuthTokenT = Aws::String>
62 void SetAuthToken(AuthTokenT&& value) {
63 m_authTokenHasBeenSet = true;
64 m_authToken = std::forward<AuthTokenT>(value);
65 }
66 template <typename AuthTokenT = Aws::String>
67 SessionEndpoint& WithAuthToken(AuthTokenT&& value) {
68 SetAuthToken(std::forward<AuthTokenT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetAuthTokenExpirationTime() const { return m_authTokenExpirationTime; }
78 inline bool AuthTokenExpirationTimeHasBeenSet() const { return m_authTokenExpirationTimeHasBeenSet; }
79 template <typename AuthTokenExpirationTimeT = Aws::Utils::DateTime>
80 void SetAuthTokenExpirationTime(AuthTokenExpirationTimeT&& value) {
81 m_authTokenExpirationTimeHasBeenSet = true;
82 m_authTokenExpirationTime = std::forward<AuthTokenExpirationTimeT>(value);
83 }
84 template <typename AuthTokenExpirationTimeT = Aws::Utils::DateTime>
85 SessionEndpoint& WithAuthTokenExpirationTime(AuthTokenExpirationTimeT&& value) {
86 SetAuthTokenExpirationTime(std::forward<AuthTokenExpirationTimeT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_url;
92
93 Aws::String m_authToken;
94
95 Aws::Utils::DateTime m_authTokenExpirationTime{};
96 bool m_urlHasBeenSet = false;
97 bool m_authTokenHasBeenSet = false;
98 bool m_authTokenExpirationTimeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Glue
103} // namespace Aws
void SetAuthToken(AuthTokenT &&value)
AWS_GLUE_API SessionEndpoint()=default
SessionEndpoint & WithUrl(UrlT &&value)
AWS_GLUE_API SessionEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUrl() const
SessionEndpoint & WithAuthTokenExpirationTime(AuthTokenExpirationTimeT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAuthToken() const
SessionEndpoint & WithAuthToken(AuthTokenT &&value)
const Aws::Utils::DateTime & GetAuthTokenExpirationTime() const
void SetAuthTokenExpirationTime(AuthTokenExpirationTimeT &&value)
AWS_GLUE_API SessionEndpoint(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue