AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PortalStatus.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/PortalState.h>
9#include <aws/iotsitewise/model/MonitorErrorDetails.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTSiteWise
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTSITEWISE_API PortalStatus();
37 AWS_IOTSITEWISE_API PortalStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSITEWISE_API PortalStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const PortalState& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const PortalState& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(PortalState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline PortalStatus& WithState(const PortalState& value) { SetState(value); return *this;}
51 inline PortalStatus& WithState(PortalState&& value) { SetState(std::move(value)); return *this;}
53
55
58 inline const MonitorErrorDetails& GetError() const{ return m_error; }
59 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
60 inline void SetError(const MonitorErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; }
61 inline void SetError(MonitorErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
62 inline PortalStatus& WithError(const MonitorErrorDetails& value) { SetError(value); return *this;}
63 inline PortalStatus& WithError(MonitorErrorDetails&& value) { SetError(std::move(value)); return *this;}
65 private:
66
67 PortalState m_state;
68 bool m_stateHasBeenSet = false;
69
70 MonitorErrorDetails m_error;
71 bool m_errorHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace IoTSiteWise
76} // namespace Aws
PortalStatus & WithState(const PortalState &value)
const PortalState & GetState() const
void SetState(const PortalState &value)
void SetError(MonitorErrorDetails &&value)
AWS_IOTSITEWISE_API PortalStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API PortalStatus()
const MonitorErrorDetails & GetError() const
AWS_IOTSITEWISE_API PortalStatus(Aws::Utils::Json::JsonView jsonValue)
void SetState(PortalState &&value)
PortalStatus & WithError(MonitorErrorDetails &&value)
void SetError(const MonitorErrorDetails &value)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
PortalStatus & WithError(const MonitorErrorDetails &value)
PortalStatus & WithState(PortalState &&value)
Aws::Utils::Json::JsonValue JsonValue