AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 PortalState GetState() const { return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(PortalState value) { m_stateHasBeenSet = true; m_state = value; }
49 inline PortalStatus& WithState(PortalState value) { SetState(value); return *this;}
51
53
56 inline const MonitorErrorDetails& GetError() const { return m_error; }
57 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
58 template<typename ErrorT = MonitorErrorDetails>
59 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
60 template<typename ErrorT = MonitorErrorDetails>
61 PortalStatus& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
63 private:
64
66 bool m_stateHasBeenSet = false;
67
68 MonitorErrorDetails m_error;
69 bool m_errorHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoTSiteWise
74} // namespace Aws
AWS_IOTSITEWISE_API PortalStatus()=default
AWS_IOTSITEWISE_API PortalStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
PortalStatus & WithState(PortalState value)
const MonitorErrorDetails & GetError() const
AWS_IOTSITEWISE_API PortalStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
PortalStatus & WithError(ErrorT &&value)
void SetState(PortalState value)
Aws::Utils::Json::JsonValue JsonValue