AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStartDateTime(const Aws::Utils::DateTime& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; }
50 inline void SetStartDateTime(Aws::Utils::DateTime&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::move(value); }
51 inline SessionStatus& WithStartDateTime(const Aws::Utils::DateTime& value) { SetStartDateTime(value); return *this;}
52 inline SessionStatus& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(std::move(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 inline void SetLastModifiedDateTime(const Aws::Utils::DateTime& value) { m_lastModifiedDateTimeHasBeenSet = true; m_lastModifiedDateTime = value; }
62 inline void SetLastModifiedDateTime(Aws::Utils::DateTime&& value) { m_lastModifiedDateTimeHasBeenSet = true; m_lastModifiedDateTime = std::move(value); }
64 inline SessionStatus& WithLastModifiedDateTime(Aws::Utils::DateTime&& value) { SetLastModifiedDateTime(std::move(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 inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
74 inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
75 inline SessionStatus& WithEndDateTime(const Aws::Utils::DateTime& value) { SetEndDateTime(value); return *this;}
76 inline SessionStatus& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(std::move(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 inline void SetIdleSinceDateTime(const Aws::Utils::DateTime& value) { m_idleSinceDateTimeHasBeenSet = true; m_idleSinceDateTime = value; }
87 inline void SetIdleSinceDateTime(Aws::Utils::DateTime&& value) { m_idleSinceDateTimeHasBeenSet = true; m_idleSinceDateTime = std::move(value); }
89 inline SessionStatus& WithIdleSinceDateTime(Aws::Utils::DateTime&& value) { SetIdleSinceDateTime(std::move(value)); return *this;}
91
93
105 inline const SessionState& GetState() const{ return m_state; }
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107 inline void SetState(const SessionState& value) { m_stateHasBeenSet = true; m_state = value; }
108 inline void SetState(SessionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
109 inline SessionStatus& WithState(const SessionState& value) { SetState(value); return *this;}
110 inline SessionStatus& WithState(SessionState&& value) { SetState(std::move(value)); return *this;}
112
114
118 inline const Aws::String& GetStateChangeReason() const{ return m_stateChangeReason; }
119 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
120 inline void SetStateChangeReason(const Aws::String& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
121 inline void SetStateChangeReason(Aws::String&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
122 inline void SetStateChangeReason(const char* value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason.assign(value); }
123 inline SessionStatus& WithStateChangeReason(const Aws::String& value) { SetStateChangeReason(value); return *this;}
124 inline SessionStatus& WithStateChangeReason(Aws::String&& value) { SetStateChangeReason(std::move(value)); return *this;}
125 inline SessionStatus& WithStateChangeReason(const char* value) { SetStateChangeReason(value); return *this;}
127 private:
128
129 Aws::Utils::DateTime m_startDateTime;
130 bool m_startDateTimeHasBeenSet = false;
131
132 Aws::Utils::DateTime m_lastModifiedDateTime;
133 bool m_lastModifiedDateTimeHasBeenSet = false;
134
135 Aws::Utils::DateTime m_endDateTime;
136 bool m_endDateTimeHasBeenSet = false;
137
138 Aws::Utils::DateTime m_idleSinceDateTime;
139 bool m_idleSinceDateTimeHasBeenSet = false;
140
141 SessionState m_state;
142 bool m_stateHasBeenSet = false;
143
144 Aws::String m_stateChangeReason;
145 bool m_stateChangeReasonHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Athena
150} // namespace Aws
SessionStatus & WithState(const SessionState &value)
AWS_ATHENA_API Aws::Utils::Json::JsonValue Jsonize() const
SessionStatus & WithStateChangeReason(Aws::String &&value)
void SetState(SessionState &&value)
SessionStatus & WithStateChangeReason(const Aws::String &value)
const SessionState & GetState() const
AWS_ATHENA_API SessionStatus(Aws::Utils::Json::JsonView jsonValue)
void SetStartDateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartDateTime() const
void SetEndDateTime(Aws::Utils::DateTime &&value)
SessionStatus & WithEndDateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetIdleSinceDateTime() const
const Aws::Utils::DateTime & GetLastModifiedDateTime() const
SessionStatus & WithLastModifiedDateTime(Aws::Utils::DateTime &&value)
SessionStatus & WithStateChangeReason(const char *value)
void SetEndDateTime(const Aws::Utils::DateTime &value)
void SetStartDateTime(const Aws::Utils::DateTime &value)
const Aws::String & GetStateChangeReason() const
void SetIdleSinceDateTime(Aws::Utils::DateTime &&value)
AWS_ATHENA_API SessionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionStatus & WithIdleSinceDateTime(const Aws::Utils::DateTime &value)
void SetStateChangeReason(const Aws::String &value)
void SetStateChangeReason(const char *value)
void SetStateChangeReason(Aws::String &&value)
void SetState(const SessionState &value)
SessionStatus & WithStartDateTime(const Aws::Utils::DateTime &value)
void SetLastModifiedDateTime(const Aws::Utils::DateTime &value)
SessionStatus & WithLastModifiedDateTime(const Aws::Utils::DateTime &value)
SessionStatus & WithState(SessionState &&value)
void SetLastModifiedDateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndDateTime() const
SessionStatus & WithEndDateTime(const Aws::Utils::DateTime &value)
SessionStatus & WithIdleSinceDateTime(Aws::Utils::DateTime &&value)
SessionStatus & WithStartDateTime(Aws::Utils::DateTime &&value)
void SetIdleSinceDateTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue