AWS SDK for C++  1.9.153
AWS SDK for C++
ConfigurationStatus.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 
34  {
35  public:
40 
41 
45  inline const ConfigurationState& GetState() const{ return m_state; }
46 
50  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 
55  inline void SetState(const ConfigurationState& value) { m_stateHasBeenSet = true; m_state = value; }
56 
60  inline void SetState(ConfigurationState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 
65  inline ConfigurationStatus& WithState(const ConfigurationState& value) { SetState(value); return *this;}
66 
70  inline ConfigurationStatus& WithState(ConfigurationState&& value) { SetState(std::move(value)); return *this;}
71 
72 
76  inline const ConfigurationErrorDetails& GetError() const{ return m_error; }
77 
81  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
82 
86  inline void SetError(const ConfigurationErrorDetails& value) { m_errorHasBeenSet = true; m_error = value; }
87 
91  inline void SetError(ConfigurationErrorDetails&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
92 
96  inline ConfigurationStatus& WithError(const ConfigurationErrorDetails& value) { SetError(value); return *this;}
97 
101  inline ConfigurationStatus& WithError(ConfigurationErrorDetails&& value) { SetError(std::move(value)); return *this;}
102 
103  private:
104 
105  ConfigurationState m_state;
106  bool m_stateHasBeenSet;
107 
109  bool m_errorHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace IoTSiteWise
114 } // namespace Aws
Aws::IoTSiteWise::Model::ConfigurationStatus::SetState
void SetState(const ConfigurationState &value)
Definition: ConfigurationStatus.h:55
Aws::IoTSiteWise::Model::ConfigurationStatus::SetError
void SetError(const ConfigurationErrorDetails &value)
Definition: ConfigurationStatus.h:86
Aws::IoTSiteWise::Model::ConfigurationStatus::operator=
ConfigurationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::ConfigurationStatus::SetError
void SetError(ConfigurationErrorDetails &&value)
Definition: ConfigurationStatus.h:91
Aws::IoTSiteWise::Model::ConfigurationStatus::ConfigurationStatus
ConfigurationStatus(Aws::Utils::Json::JsonView jsonValue)
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ConfigurationStatus::WithState
ConfigurationStatus & WithState(const ConfigurationState &value)
Definition: ConfigurationStatus.h:65
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ConfigurationStatus::WithError
ConfigurationStatus & WithError(ConfigurationErrorDetails &&value)
Definition: ConfigurationStatus.h:101
Aws::IoTSiteWise::Model::ConfigurationStatus::ConfigurationStatus
ConfigurationStatus()
Aws::IoTSiteWise::Model::ConfigurationStatus::WithState
ConfigurationStatus & WithState(ConfigurationState &&value)
Definition: ConfigurationStatus.h:70
Aws::IoTSiteWise::Model::ConfigurationStatus::WithError
ConfigurationStatus & WithError(const ConfigurationErrorDetails &value)
Definition: ConfigurationStatus.h:96
Aws::IoTSiteWise::Model::ConfigurationState
ConfigurationState
Definition: ConfigurationState.h:17
Aws::IoTSiteWise::Model::ConfigurationStatus
Definition: ConfigurationStatus.h:34
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::ConfigurationStatus::GetState
const ConfigurationState & GetState() const
Definition: ConfigurationStatus.h:45
Aws::IoTSiteWise::Model::ConfigurationStatus::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: ConfigurationStatus.h:81
Aws::IoTSiteWise::Model::ConfigurationErrorDetails
Definition: ConfigurationErrorDetails.h:34
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
ConfigurationState.h
Aws::IoTSiteWise::Model::ConfigurationStatus::GetError
const ConfigurationErrorDetails & GetError() const
Definition: ConfigurationStatus.h:76
Aws::IoTSiteWise::Model::ConfigurationStatus::SetState
void SetState(ConfigurationState &&value)
Definition: ConfigurationStatus.h:60
Aws::IoTSiteWise::Model::ConfigurationStatus::StateHasBeenSet
bool StateHasBeenSet() const
Definition: ConfigurationStatus.h:50
Aws::IoTSiteWise::Model::ConfigurationStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ConfigurationErrorDetails.h