AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetModelStatus.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/AssetModelState.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 AssetModelStatus();
40 AWS_IOTSITEWISE_API AssetModelStatus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTSITEWISE_API AssetModelStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const AssetModelState& GetState() const{ return m_state; }
50 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 inline void SetState(const AssetModelState& value) { m_stateHasBeenSet = true; m_state = value; }
52 inline void SetState(AssetModelState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
53 inline AssetModelStatus& WithState(const AssetModelState& value) { SetState(value); return *this;}
54 inline AssetModelStatus& WithState(AssetModelState&& 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 AssetModelStatus& WithError(const ErrorDetails& value) { SetError(value); return *this;}
66 inline AssetModelStatus& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;}
68 private:
69
70 AssetModelState 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
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(const AssetModelState &value)
AssetModelStatus & WithError(const ErrorDetails &value)
AWS_IOTSITEWISE_API AssetModelStatus(Aws::Utils::Json::JsonView jsonValue)
const AssetModelState & GetState() const
AssetModelStatus & WithError(ErrorDetails &&value)
AssetModelStatus & WithState(const AssetModelState &value)
const ErrorDetails & GetError() const
AssetModelStatus & WithState(AssetModelState &&value)
AWS_IOTSITEWISE_API AssetModelStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetError(const ErrorDetails &value)
void SetState(AssetModelState &&value)
Aws::Utils::Json::JsonValue JsonValue