AWS SDK for C++  1.9.41
AWS SDK for C++
PortalStatus.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoTSiteWise
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const PortalState& GetState() const{ return m_state; }
46 
50  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 
55  inline void SetState(const PortalState& value) { m_stateHasBeenSet = true; m_state = value; }
56 
60  inline void SetState(PortalState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 
65  inline PortalStatus& WithState(const PortalState& value) { SetState(value); return *this;}
66 
70  inline PortalStatus& WithState(PortalState&& value) { SetState(std::move(value)); return *this;}
71 
72 
76  inline const MonitorErrorDetails& GetError() const{ return m_error; }
77 
81  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
82 
86  inline void SetError(const MonitorErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; }
87 
91  inline void SetError(MonitorErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
92 
96  inline PortalStatus& WithError(const MonitorErrorDetails& value) { SetError(value); return *this;}
97 
101  inline PortalStatus& WithError(MonitorErrorDetails&& value) { SetError(std::move(value)); return *this;}
102 
103  private:
104 
105  PortalState m_state;
106  bool m_stateHasBeenSet;
107 
108  MonitorErrorDetails m_error;
109  bool m_errorHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace IoTSiteWise
114 } // namespace Aws
Aws::IoTSiteWise::Model::PortalStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: PortalStatus.h:50
Aws::IoTSiteWise::Model::PortalStatus::WithError
PortalStatus & WithError(MonitorErrorDetails &&value)
Definition: PortalStatus.h:101
MonitorErrorDetails.h
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::PortalStatus::SetState
void SetState(PortalState &&value)
Definition: PortalStatus.h:60
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::PortalState
PortalState
Definition: PortalState.h:17
Aws::IoTSiteWise::Model::PortalStatus::PortalStatus
PortalStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::PortalStatus::SetError
void SetError(const MonitorErrorDetails &value)
Definition: PortalStatus.h:86
PortalState.h
Aws::IoTSiteWise::Model::PortalStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::PortalStatus::GetError
const MonitorErrorDetails & GetError() const
Definition: PortalStatus.h:76
Aws::IoTSiteWise::Model::PortalStatus::WithError
PortalStatus & WithError(const MonitorErrorDetails &value)
Definition: PortalStatus.h:96
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoTSiteWise::Model::PortalStatus::operator=
PortalStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::PortalStatus::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: PortalStatus.h:81
Aws::IoTSiteWise::Model::PortalStatus::SetError
void SetError(MonitorErrorDetails &&value)
Definition: PortalStatus.h:91
Aws::IoTSiteWise::Model::PortalStatus::GetState
const PortalState & GetState() const
Definition: PortalStatus.h:45
Aws::IoTSiteWise::Model::PortalStatus::WithState
PortalStatus & WithState(PortalState &&value)
Definition: PortalStatus.h:70
Aws::IoTSiteWise::Model::PortalStatus::PortalStatus
PortalStatus()
Aws::IoTSiteWise::Model::PortalStatus::WithState
PortalStatus & WithState(const PortalState &value)
Definition: PortalStatus.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::MonitorErrorDetails
Definition: MonitorErrorDetails.h:34
Aws::IoTSiteWise::Model::PortalStatus
Definition: PortalStatus.h:34
Aws::IoTSiteWise::Model::PortalStatus::SetState
void SetState(const PortalState &value)
Definition: PortalStatus.h:55