AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 AssetModelState GetState() const { return m_state; }
50 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 inline void SetState(AssetModelState value) { m_stateHasBeenSet = true; m_state = value; }
52 inline AssetModelStatus& WithState(AssetModelState value) { SetState(value); return *this;}
54
56
59 inline const ErrorDetails& GetError() const { return m_error; }
60 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
61 template<typename ErrorT = ErrorDetails>
62 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
63 template<typename ErrorT = ErrorDetails>
64 AssetModelStatus& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
66 private:
67
69 bool m_stateHasBeenSet = false;
70
71 ErrorDetails m_error;
72 bool m_errorHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoTSiteWise
77} // namespace Aws
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AssetModelStatus & WithError(ErrorT &&value)
AWS_IOTSITEWISE_API AssetModelStatus(Aws::Utils::Json::JsonView jsonValue)
const ErrorDetails & GetError() const
AWS_IOTSITEWISE_API AssetModelStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetModelStatus & WithState(AssetModelState value)
AWS_IOTSITEWISE_API AssetModelStatus()=default
Aws::Utils::Json::JsonValue JsonValue