AWS SDK for C++  1.9.40
AWS SDK for C++
AssetModelStatus.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 
37  {
38  public:
43 
44 
48  inline const AssetModelState& GetState() const{ return m_state; }
49 
53  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
54 
58  inline void SetState(const AssetModelState& value) { m_stateHasBeenSet = true; m_state = value; }
59 
63  inline void SetState(AssetModelState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
64 
68  inline AssetModelStatus& WithState(const AssetModelState& value) { SetState(value); return *this;}
69 
73  inline AssetModelStatus& WithState(AssetModelState&& value) { SetState(std::move(value)); return *this;}
74 
75 
79  inline const ErrorDetails& GetError() const{ return m_error; }
80 
84  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
85 
89  inline void SetError(const ErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; }
90 
94  inline void SetError(ErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
95 
99  inline AssetModelStatus& WithError(const ErrorDetails& value) { SetError(value); return *this;}
100 
104  inline AssetModelStatus& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;}
105 
106  private:
107 
108  AssetModelState m_state;
109  bool m_stateHasBeenSet;
110 
111  ErrorDetails m_error;
112  bool m_errorHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace IoTSiteWise
117 } // namespace Aws
Aws::IoTSiteWise::Model::AssetModelStatus::WithState
AssetModelStatus & WithState(const AssetModelState &value)
Definition: AssetModelStatus.h:68
Aws::IoTSiteWise::Model::AssetModelStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::AssetModelStatus::WithState
AssetModelStatus & WithState(AssetModelState &&value)
Definition: AssetModelStatus.h:73
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::AssetModelStatus::SetState
void SetState(const AssetModelState &value)
Definition: AssetModelStatus.h:58
Aws::IoTSiteWise::Model::AssetModelStatus
Definition: AssetModelStatus.h:37
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::AssetModelStatus::GetError
const ErrorDetails & GetError() const
Definition: AssetModelStatus.h:79
Aws::IoTSiteWise::Model::AssetModelStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: AssetModelStatus.h:53
Aws::IoTSiteWise::Model::AssetModelStatus::WithError
AssetModelStatus & WithError(const ErrorDetails &value)
Definition: AssetModelStatus.h:99
AssetModelState.h
Aws::IoTSiteWise::Model::AssetModelStatus::GetState
const AssetModelState & GetState() const
Definition: AssetModelStatus.h:48
Aws::IoTSiteWise::Model::ErrorDetails
Definition: ErrorDetails.h:34
Aws::IoTSiteWise::Model::AssetModelStatus::operator=
AssetModelStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoTSiteWise::Model::AssetModelStatus::SetError
void SetError(const ErrorDetails &value)
Definition: AssetModelStatus.h:89
Aws::IoTSiteWise::Model::AssetModelStatus::SetState
void SetState(AssetModelState &&value)
Definition: AssetModelStatus.h:63
Aws::IoTSiteWise::Model::AssetModelState
AssetModelState
Definition: AssetModelState.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetModelStatus::SetError
void SetError(ErrorDetails &&value)
Definition: AssetModelStatus.h:94
Aws::IoTSiteWise::Model::AssetModelStatus::AssetModelStatus
AssetModelStatus()
Aws::IoTSiteWise::Model::AssetModelStatus::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: AssetModelStatus.h:84
ErrorDetails.h
Aws::IoTSiteWise::Model::AssetModelStatus::AssetModelStatus
AssetModelStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetModelStatus::WithError
AssetModelStatus & WithError(ErrorDetails &&value)
Definition: AssetModelStatus.h:104