AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
ConfigurationDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/ConfigurationStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
31 public:
32 AWS_IOT_API ConfigurationDetails() = default;
36
38
44 inline ConfigurationStatus GetConfigurationStatus() const { return m_configurationStatus; }
45 inline bool ConfigurationStatusHasBeenSet() const { return m_configurationStatusHasBeenSet; }
47 m_configurationStatusHasBeenSet = true;
48 m_configurationStatus = value;
49 }
52 return *this;
53 }
55
57
62 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
63 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
64 template <typename ErrorCodeT = Aws::String>
65 void SetErrorCode(ErrorCodeT&& value) {
66 m_errorCodeHasBeenSet = true;
67 m_errorCode = std::forward<ErrorCodeT>(value);
68 }
69 template <typename ErrorCodeT = Aws::String>
70 ConfigurationDetails& WithErrorCode(ErrorCodeT&& value) {
71 SetErrorCode(std::forward<ErrorCodeT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
82 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
83 template <typename ErrorMessageT = Aws::String>
84 void SetErrorMessage(ErrorMessageT&& value) {
85 m_errorMessageHasBeenSet = true;
86 m_errorMessage = std::forward<ErrorMessageT>(value);
87 }
88 template <typename ErrorMessageT = Aws::String>
89 ConfigurationDetails& WithErrorMessage(ErrorMessageT&& value) {
90 SetErrorMessage(std::forward<ErrorMessageT>(value));
91 return *this;
92 }
94 private:
96
97 Aws::String m_errorCode;
98
99 Aws::String m_errorMessage;
100 bool m_configurationStatusHasBeenSet = false;
101 bool m_errorCodeHasBeenSet = false;
102 bool m_errorMessageHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace IoT
107} // namespace Aws
void SetConfigurationStatus(ConfigurationStatus value)
void SetErrorMessage(ErrorMessageT &&value)
AWS_IOT_API ConfigurationDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API ConfigurationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationStatus GetConfigurationStatus() const
ConfigurationDetails & WithErrorCode(ErrorCodeT &&value)
const Aws::String & GetErrorCode() const
ConfigurationDetails & WithErrorMessage(ErrorMessageT &&value)
ConfigurationDetails & WithConfigurationStatus(ConfigurationStatus value)
AWS_IOT_API ConfigurationDetails()=default
const Aws::String & GetErrorMessage() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue