AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AttributeError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataZone {
20namespace Model {
21
28 public:
29 AWS_DATAZONE_API AttributeError() = default;
30 AWS_DATAZONE_API AttributeError(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAttributeIdentifier() const { return m_attributeIdentifier; }
39 inline bool AttributeIdentifierHasBeenSet() const { return m_attributeIdentifierHasBeenSet; }
40 template <typename AttributeIdentifierT = Aws::String>
41 void SetAttributeIdentifier(AttributeIdentifierT&& value) {
42 m_attributeIdentifierHasBeenSet = true;
43 m_attributeIdentifier = std::forward<AttributeIdentifierT>(value);
44 }
45 template <typename AttributeIdentifierT = Aws::String>
46 AttributeError& WithAttributeIdentifier(AttributeIdentifierT&& value) {
47 SetAttributeIdentifier(std::forward<AttributeIdentifierT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetCode() const { return m_code; }
57 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
58 template <typename CodeT = Aws::String>
59 void SetCode(CodeT&& value) {
60 m_codeHasBeenSet = true;
61 m_code = std::forward<CodeT>(value);
62 }
63 template <typename CodeT = Aws::String>
64 AttributeError& WithCode(CodeT&& value) {
65 SetCode(std::forward<CodeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetMessage() const { return m_message; }
75 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
76 template <typename MessageT = Aws::String>
77 void SetMessage(MessageT&& value) {
78 m_messageHasBeenSet = true;
79 m_message = std::forward<MessageT>(value);
80 }
81 template <typename MessageT = Aws::String>
82 AttributeError& WithMessage(MessageT&& value) {
83 SetMessage(std::forward<MessageT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_attributeIdentifier;
89
90 Aws::String m_code;
91
92 Aws::String m_message;
93 bool m_attributeIdentifierHasBeenSet = false;
94 bool m_codeHasBeenSet = false;
95 bool m_messageHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace DataZone
100} // namespace Aws
const Aws::String & GetAttributeIdentifier() const
AWS_DATAZONE_API AttributeError()=default
AttributeError & WithAttributeIdentifier(AttributeIdentifierT &&value)
AWS_DATAZONE_API AttributeError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API AttributeError(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCode() const
AttributeError & WithMessage(MessageT &&value)
const Aws::String & GetMessage() const
void SetAttributeIdentifier(AttributeIdentifierT &&value)
AttributeError & WithCode(CodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue