AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ConfigurationStatus.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/model/ConfigurationError.h>
9#include <aws/iot-managed-integrations/model/ConfigurationState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTManagedIntegrations {
21namespace Model {
22
30 public:
31 AWS_IOTMANAGEDINTEGRATIONS_API ConfigurationStatus() = default;
32 AWS_IOTMANAGEDINTEGRATIONS_API ConfigurationStatus(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTMANAGEDINTEGRATIONS_API ConfigurationStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const ConfigurationError& GetError() const { return m_error; }
42 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
43 template <typename ErrorT = ConfigurationError>
44 void SetError(ErrorT&& value) {
45 m_errorHasBeenSet = true;
46 m_error = std::forward<ErrorT>(value);
47 }
48 template <typename ErrorT = ConfigurationError>
49 ConfigurationStatus& WithError(ErrorT&& value) {
50 SetError(std::forward<ErrorT>(value));
51 return *this;
52 }
54
56
59 inline ConfigurationState GetState() const { return m_state; }
60 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
61 inline void SetState(ConfigurationState value) {
62 m_stateHasBeenSet = true;
63 m_state = value;
64 }
66 SetState(value);
67 return *this;
68 }
70 private:
71 ConfigurationError m_error;
72
74 bool m_errorHasBeenSet = false;
75 bool m_stateHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace IoTManagedIntegrations
80} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTMANAGEDINTEGRATIONS_API ConfigurationStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API ConfigurationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationStatus & WithState(ConfigurationState value)
AWS_IOTMANAGEDINTEGRATIONS_API ConfigurationStatus()=default
Aws::Utils::Json::JsonValue JsonValue