AWS SDK for C++  1.9.153
AWS SDK for C++
AssetStatus.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 AssetState& GetState() const{ return m_state; }
49 
53  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
54 
58  inline void SetState(const AssetState& value) { m_stateHasBeenSet = true; m_state = value; }
59 
63  inline void SetState(AssetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
64 
68  inline AssetStatus& WithState(const AssetState& value) { SetState(value); return *this;}
69 
73  inline AssetStatus& WithState(AssetState&& 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 AssetStatus& WithError(const ErrorDetails& value) { SetError(value); return *this;}
100 
104  inline AssetStatus& WithError(ErrorDetails&& value) { SetError(std::move(value)); return *this;}
105 
106  private:
107 
108  AssetState 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::AssetStatus::GetState
const AssetState & GetState() const
Definition: AssetStatus.h:48
Aws::IoTSiteWise::Model::AssetStatus::SetState
void SetState(const AssetState &value)
Definition: AssetStatus.h:58
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
AssetState.h
Aws::IoTSiteWise::Model::AssetStatus::WithError
AssetStatus & WithError(ErrorDetails &&value)
Definition: AssetStatus.h:104
Aws::IoTSiteWise::Model::AssetStatus::WithState
AssetStatus & WithState(AssetState &&value)
Definition: AssetStatus.h:73
Aws::IoTSiteWise::Model::AssetStatus::GetError
const ErrorDetails & GetError() const
Definition: AssetStatus.h:79
Aws::IoTSiteWise::Model::AssetStatus::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: AssetStatus.h:84
Aws::IoTSiteWise::Model::AssetStatus::SetError
void SetError(ErrorDetails &&value)
Definition: AssetStatus.h:94
Aws::IoTSiteWise::Model::ErrorDetails
Definition: ErrorDetails.h:35
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoTSiteWise::Model::AssetStatus::WithError
AssetStatus & WithError(const ErrorDetails &value)
Definition: AssetStatus.h:99
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::AssetState
AssetState
Definition: AssetState.h:17
Aws::IoTSiteWise::Model::AssetStatus::AssetStatus
AssetStatus()
Aws::IoTSiteWise::Model::AssetStatus::SetState
void SetState(AssetState &&value)
Definition: AssetStatus.h:63
Aws::IoTSiteWise::Model::AssetStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::AssetStatus
Definition: AssetStatus.h:37
Aws::IoTSiteWise::Model::AssetStatus::operator=
AssetStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetStatus::AssetStatus
AssetStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::AssetStatus::SetError
void SetError(const ErrorDetails &value)
Definition: AssetStatus.h:89
ErrorDetails.h
Aws::IoTSiteWise::Model::AssetStatus::WithState
AssetStatus & WithState(const AssetState &value)
Definition: AssetStatus.h:68
Aws::IoTSiteWise::Model::AssetStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: AssetStatus.h:53