AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ConfigurationStatus.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/model/ConfigurationState.h>
9#include <aws/iotsitewise/model/ConfigurationErrorDetails.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
34 {
35 public:
36 AWS_IOTSITEWISE_API ConfigurationStatus() = default;
37 AWS_IOTSITEWISE_API ConfigurationStatus(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline ConfigurationState GetState() const { return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(ConfigurationState value) { m_stateHasBeenSet = true; m_state = value; }
49 inline ConfigurationStatus& WithState(ConfigurationState value) { SetState(value); return *this;}
51
53
56 inline const ConfigurationErrorDetails& GetError() const { return m_error; }
57 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
58 template<typename ErrorT = ConfigurationErrorDetails>
59 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
60 template<typename ErrorT = ConfigurationErrorDetails>
61 ConfigurationStatus& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
63 private:
64
66 bool m_stateHasBeenSet = false;
67
68 ConfigurationErrorDetails m_error;
69 bool m_errorHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoTSiteWise
74} // namespace Aws
const ConfigurationErrorDetails & GetError() const
AWS_IOTSITEWISE_API ConfigurationStatus()=default
AWS_IOTSITEWISE_API ConfigurationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigurationStatus & WithError(ErrorT &&value)
ConfigurationStatus & WithState(ConfigurationState value)
AWS_IOTSITEWISE_API ConfigurationStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue