AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceConnectionStatus.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/ConnectionState.h>
10#include <aws/core/utils/DateTime.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 WorkSpaces
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WORKSPACES_API WorkspaceConnectionStatus();
39 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
47 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
48 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
49 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
50 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
51 inline WorkspaceConnectionStatus& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
52 inline WorkspaceConnectionStatus& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
53 inline WorkspaceConnectionStatus& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
55
57
61 inline const ConnectionState& GetConnectionState() const{ return m_connectionState; }
62 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
63 inline void SetConnectionState(const ConnectionState& value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
64 inline void SetConnectionState(ConnectionState&& value) { m_connectionStateHasBeenSet = true; m_connectionState = std::move(value); }
66 inline WorkspaceConnectionStatus& WithConnectionState(ConnectionState&& value) { SetConnectionState(std::move(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetConnectionStateCheckTimestamp() const{ return m_connectionStateCheckTimestamp; }
74 inline bool ConnectionStateCheckTimestampHasBeenSet() const { return m_connectionStateCheckTimestampHasBeenSet; }
75 inline void SetConnectionStateCheckTimestamp(const Aws::Utils::DateTime& value) { m_connectionStateCheckTimestampHasBeenSet = true; m_connectionStateCheckTimestamp = value; }
76 inline void SetConnectionStateCheckTimestamp(Aws::Utils::DateTime&& value) { m_connectionStateCheckTimestampHasBeenSet = true; m_connectionStateCheckTimestamp = std::move(value); }
80
82
85 inline const Aws::Utils::DateTime& GetLastKnownUserConnectionTimestamp() const{ return m_lastKnownUserConnectionTimestamp; }
86 inline bool LastKnownUserConnectionTimestampHasBeenSet() const { return m_lastKnownUserConnectionTimestampHasBeenSet; }
87 inline void SetLastKnownUserConnectionTimestamp(const Aws::Utils::DateTime& value) { m_lastKnownUserConnectionTimestampHasBeenSet = true; m_lastKnownUserConnectionTimestamp = value; }
88 inline void SetLastKnownUserConnectionTimestamp(Aws::Utils::DateTime&& value) { m_lastKnownUserConnectionTimestampHasBeenSet = true; m_lastKnownUserConnectionTimestamp = std::move(value); }
92 private:
93
94 Aws::String m_workspaceId;
95 bool m_workspaceIdHasBeenSet = false;
96
97 ConnectionState m_connectionState;
98 bool m_connectionStateHasBeenSet = false;
99
100 Aws::Utils::DateTime m_connectionStateCheckTimestamp;
101 bool m_connectionStateCheckTimestampHasBeenSet = false;
102
103 Aws::Utils::DateTime m_lastKnownUserConnectionTimestamp;
104 bool m_lastKnownUserConnectionTimestampHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace WorkSpaces
109} // namespace Aws
AWS_WORKSPACES_API WorkspaceConnectionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceConnectionStatus & WithConnectionState(ConnectionState &&value)
WorkspaceConnectionStatus & WithLastKnownUserConnectionTimestamp(Aws::Utils::DateTime &&value)
void SetConnectionStateCheckTimestamp(Aws::Utils::DateTime &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspaceConnectionStatus & WithLastKnownUserConnectionTimestamp(const Aws::Utils::DateTime &value)
WorkspaceConnectionStatus & WithConnectionState(const ConnectionState &value)
AWS_WORKSPACES_API WorkspaceConnectionStatus(Aws::Utils::Json::JsonView jsonValue)
WorkspaceConnectionStatus & WithWorkspaceId(const char *value)
WorkspaceConnectionStatus & WithConnectionStateCheckTimestamp(Aws::Utils::DateTime &&value)
WorkspaceConnectionStatus & WithWorkspaceId(const Aws::String &value)
void SetLastKnownUserConnectionTimestamp(Aws::Utils::DateTime &&value)
WorkspaceConnectionStatus & WithWorkspaceId(Aws::String &&value)
void SetConnectionStateCheckTimestamp(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetConnectionStateCheckTimestamp() const
const Aws::Utils::DateTime & GetLastKnownUserConnectionTimestamp() const
WorkspaceConnectionStatus & WithConnectionStateCheckTimestamp(const Aws::Utils::DateTime &value)
void SetLastKnownUserConnectionTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue