AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ConfigurationState& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const ConfigurationState& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(ConfigurationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline ConfigurationStatus& WithState(const ConfigurationState& value) { SetState(value); return *this;}
51 inline ConfigurationStatus& WithState(ConfigurationState&& value) { SetState(std::move(value)); return *this;}
53
55
58 inline const ConfigurationErrorDetails& GetError() const{ return m_error; }
59 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
60 inline void SetError(const ConfigurationErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; }
61 inline void SetError(ConfigurationErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
62 inline ConfigurationStatus& WithError(const ConfigurationErrorDetails& value) { SetError(value); return *this;}
63 inline ConfigurationStatus& WithError(ConfigurationErrorDetails&& value) { SetError(std::move(value)); return *this;}
65 private:
66
67 ConfigurationState m_state;
68 bool m_stateHasBeenSet = false;
69
71 bool m_errorHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace IoTSiteWise
76} // namespace Aws
ConfigurationStatus & WithState(const ConfigurationState &value)
void SetError(const ConfigurationErrorDetails &value)
ConfigurationStatus & WithState(ConfigurationState &&value)
void SetState(const ConfigurationState &value)
const ConfigurationErrorDetails & GetError() const
void SetError(ConfigurationErrorDetails &&value)
ConfigurationStatus & WithError(ConfigurationErrorDetails &&value)
AWS_IOTSITEWISE_API ConfigurationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
ConfigurationStatus & WithError(const ConfigurationErrorDetails &value)
const ConfigurationState & GetState() const
void SetState(ConfigurationState &&value)
AWS_IOTSITEWISE_API ConfigurationStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue