AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
BatchPutPropertyError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
9#include <aws/iottwinmaker/model/PropertyValueEntry.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTTwinMaker {
21namespace Model {
22
30 public:
31 AWS_IOTTWINMAKER_API BatchPutPropertyError() = default;
32 AWS_IOTTWINMAKER_API BatchPutPropertyError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
41 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
42 template <typename ErrorCodeT = Aws::String>
43 void SetErrorCode(ErrorCodeT&& value) {
44 m_errorCodeHasBeenSet = true;
45 m_errorCode = std::forward<ErrorCodeT>(value);
46 }
47 template <typename ErrorCodeT = Aws::String>
48 BatchPutPropertyError& WithErrorCode(ErrorCodeT&& value) {
49 SetErrorCode(std::forward<ErrorCodeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 template <typename ErrorMessageT = Aws::String>
61 void SetErrorMessage(ErrorMessageT&& value) {
62 m_errorMessageHasBeenSet = true;
63 m_errorMessage = std::forward<ErrorMessageT>(value);
64 }
65 template <typename ErrorMessageT = Aws::String>
66 BatchPutPropertyError& WithErrorMessage(ErrorMessageT&& value) {
67 SetErrorMessage(std::forward<ErrorMessageT>(value));
68 return *this;
69 }
71
73
77 inline const PropertyValueEntry& GetEntry() const { return m_entry; }
78 inline bool EntryHasBeenSet() const { return m_entryHasBeenSet; }
79 template <typename EntryT = PropertyValueEntry>
80 void SetEntry(EntryT&& value) {
81 m_entryHasBeenSet = true;
82 m_entry = std::forward<EntryT>(value);
83 }
84 template <typename EntryT = PropertyValueEntry>
86 SetEntry(std::forward<EntryT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_errorCode;
92
93 Aws::String m_errorMessage;
94
95 PropertyValueEntry m_entry;
96 bool m_errorCodeHasBeenSet = false;
97 bool m_errorMessageHasBeenSet = false;
98 bool m_entryHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace IoTTwinMaker
103} // namespace Aws
AWS_IOTTWINMAKER_API BatchPutPropertyError & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchPutPropertyError & WithErrorMessage(ErrorMessageT &&value)
BatchPutPropertyError & WithEntry(EntryT &&value)
AWS_IOTTWINMAKER_API BatchPutPropertyError()=default
BatchPutPropertyError & WithErrorCode(ErrorCodeT &&value)
AWS_IOTTWINMAKER_API BatchPutPropertyError(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue