AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SessionStatus.h
1
6#pragma once
7#include <aws/athena/Athena_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/athena/model/SessionState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Athena
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ATHENA_API SessionStatus() = default;
38 AWS_ATHENA_API SessionStatus(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetStartDateTime() const { return m_startDateTime; }
48 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
49 template<typename StartDateTimeT = Aws::Utils::DateTime>
50 void SetStartDateTime(StartDateTimeT&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::forward<StartDateTimeT>(value); }
51 template<typename StartDateTimeT = Aws::Utils::DateTime>
52 SessionStatus& WithStartDateTime(StartDateTimeT&& value) { SetStartDateTime(std::forward<StartDateTimeT>(value)); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetLastModifiedDateTime() const { return m_lastModifiedDateTime; }
60 inline bool LastModifiedDateTimeHasBeenSet() const { return m_lastModifiedDateTimeHasBeenSet; }
61 template<typename LastModifiedDateTimeT = Aws::Utils::DateTime>
62 void SetLastModifiedDateTime(LastModifiedDateTimeT&& value) { m_lastModifiedDateTimeHasBeenSet = true; m_lastModifiedDateTime = std::forward<LastModifiedDateTimeT>(value); }
63 template<typename LastModifiedDateTimeT = Aws::Utils::DateTime>
64 SessionStatus& WithLastModifiedDateTime(LastModifiedDateTimeT&& value) { SetLastModifiedDateTime(std::forward<LastModifiedDateTimeT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetEndDateTime() const { return m_endDateTime; }
72 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
73 template<typename EndDateTimeT = Aws::Utils::DateTime>
74 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
75 template<typename EndDateTimeT = Aws::Utils::DateTime>
76 SessionStatus& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
78
80
84 inline const Aws::Utils::DateTime& GetIdleSinceDateTime() const { return m_idleSinceDateTime; }
85 inline bool IdleSinceDateTimeHasBeenSet() const { return m_idleSinceDateTimeHasBeenSet; }
86 template<typename IdleSinceDateTimeT = Aws::Utils::DateTime>
87 void SetIdleSinceDateTime(IdleSinceDateTimeT&& value) { m_idleSinceDateTimeHasBeenSet = true; m_idleSinceDateTime = std::forward<IdleSinceDateTimeT>(value); }
88 template<typename IdleSinceDateTimeT = Aws::Utils::DateTime>
89 SessionStatus& WithIdleSinceDateTime(IdleSinceDateTimeT&& value) { SetIdleSinceDateTime(std::forward<IdleSinceDateTimeT>(value)); return *this;}
91
93
105 inline SessionState GetState() const { return m_state; }
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107 inline void SetState(SessionState value) { m_stateHasBeenSet = true; m_state = value; }
108 inline SessionStatus& WithState(SessionState value) { SetState(value); return *this;}
110
112
116 inline const Aws::String& GetStateChangeReason() const { return m_stateChangeReason; }
117 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
118 template<typename StateChangeReasonT = Aws::String>
119 void SetStateChangeReason(StateChangeReasonT&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::forward<StateChangeReasonT>(value); }
120 template<typename StateChangeReasonT = Aws::String>
121 SessionStatus& WithStateChangeReason(StateChangeReasonT&& value) { SetStateChangeReason(std::forward<StateChangeReasonT>(value)); return *this;}
123 private:
124
125 Aws::Utils::DateTime m_startDateTime{};
126 bool m_startDateTimeHasBeenSet = false;
127
128 Aws::Utils::DateTime m_lastModifiedDateTime{};
129 bool m_lastModifiedDateTimeHasBeenSet = false;
130
131 Aws::Utils::DateTime m_endDateTime{};
132 bool m_endDateTimeHasBeenSet = false;
133
134 Aws::Utils::DateTime m_idleSinceDateTime{};
135 bool m_idleSinceDateTimeHasBeenSet = false;
136
138 bool m_stateHasBeenSet = false;
139
140 Aws::String m_stateChangeReason;
141 bool m_stateChangeReasonHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Athena
146} // namespace Aws
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
SessionStatus & WithEndDateTime(EndDateTimeT &&value)
SessionStatus & WithState(SessionState value)
SessionStatus & WithLastModifiedDateTime(LastModifiedDateTimeT &&value)
AWS_ATHENA_API SessionStatus()=default
void SetStateChangeReason(StateChangeReasonT &&value)
SessionStatus & WithStateChangeReason(StateChangeReasonT &&value)
AWS_ATHENA_API SessionStatus(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartDateTime() const
void SetLastModifiedDateTime(LastModifiedDateTimeT &&value)
void SetState(SessionState value)
void SetStartDateTime(StartDateTimeT &&value)
void SetIdleSinceDateTime(IdleSinceDateTimeT &&value)
const Aws::Utils::DateTime & GetIdleSinceDateTime() const
const Aws::Utils::DateTime & GetLastModifiedDateTime() const
void SetEndDateTime(EndDateTimeT &&value)
SessionStatus & WithStartDateTime(StartDateTimeT &&value)
const Aws::String & GetStateChangeReason() const
SessionStatus & WithIdleSinceDateTime(IdleSinceDateTimeT &&value)
AWS_ATHENA_API SessionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue