AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetStatus.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/AssetState.h>
9#include <aws/iotsitewise/model/ErrorDetails.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
37 {
38 public:
39 AWS_IOTSITEWISE_API AssetStatus();
40 AWS_IOTSITEWISE_API AssetStatus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTSITEWISE_API AssetStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const AssetState& GetState() const{ return m_state; }
50 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 inline void SetState(const AssetState& value) { m_stateHasBeenSet = true; m_state = value; }
52 inline void SetState(AssetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
53 inline AssetStatus& WithState(const AssetState& value) { SetState(value); return *this;}
54 inline AssetStatus& WithState(AssetState&& value) { SetState(std::move(value)); return *this;}
56
58
61 inline const ErrorDetails& GetError() const{ return m_error; }
62 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
63 inline void SetError(const ErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; }
64 inline void SetError(ErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
65 inline AssetStatus& WithError(const ErrorDetails& value) { SetError(value); return *this;}
66 inline AssetStatus& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;}
68 private:
69
70 AssetState m_state;
71 bool m_stateHasBeenSet = false;
72
73 ErrorDetails m_error;
74 bool m_errorHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace IoTSiteWise
79} // namespace Aws
AssetStatus & WithState(const AssetState &value)
Definition AssetStatus.h:53
AWS_IOTSITEWISE_API AssetStatus(Aws::Utils::Json::JsonView jsonValue)
void SetError(ErrorDetails &&value)
Definition AssetStatus.h:64
void SetState(const AssetState &value)
Definition AssetStatus.h:51
void SetState(AssetState &&value)
Definition AssetStatus.h:52
const ErrorDetails & GetError() const
Definition AssetStatus.h:61
AWS_IOTSITEWISE_API AssetStatus()
AWS_IOTSITEWISE_API AssetStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetStatus & WithState(AssetState &&value)
Definition AssetStatus.h:54
void SetError(const ErrorDetails &value)
Definition AssetStatus.h:63
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetStatus & WithError(ErrorDetails &&value)
Definition AssetStatus.h:66
AssetStatus & WithError(const ErrorDetails &value)
Definition AssetStatus.h:65
const AssetState & GetState() const
Definition AssetStatus.h:49
Aws::Utils::Json::JsonValue JsonValue