AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ValidationExceptionField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/partnercentral-marketing/PartnerCentralMarketing_EXPORTS.h>
10#include <aws/partnercentral-marketing/model/ValidationExceptionFieldCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace PartnerCentralMarketing {
21namespace Model {
22
29 public:
30 AWS_PARTNERCENTRALMARKETING_API ValidationExceptionField() = default;
31 AWS_PARTNERCENTRALMARKETING_API ValidationExceptionField(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_PARTNERCENTRALMARKETING_API ValidationExceptionField& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetFieldId() const { return m_fieldId; }
63 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
64 template <typename FieldIdT = Aws::String>
65 void SetFieldId(FieldIdT&& value) {
66 m_fieldIdHasBeenSet = true;
67 m_fieldId = std::forward<FieldIdT>(value);
68 }
69 template <typename FieldIdT = Aws::String>
71 SetFieldId(std::forward<FieldIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetMessage() const { return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 template <typename MessageT = Aws::String>
83 void SetMessage(MessageT&& value) {
84 m_messageHasBeenSet = true;
85 m_message = std::forward<MessageT>(value);
86 }
87 template <typename MessageT = Aws::String>
89 SetMessage(std::forward<MessageT>(value));
90 return *this;
91 }
93
95
99 inline ValidationExceptionFieldCode GetCode() const { return m_code; }
100 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
102 m_codeHasBeenSet = true;
103 m_code = value;
104 }
106 SetCode(value);
107 return *this;
108 }
110 private:
111 Aws::String m_name;
112
113 Aws::String m_fieldId;
114
115 Aws::String m_message;
116
118 bool m_nameHasBeenSet = false;
119 bool m_fieldIdHasBeenSet = false;
120 bool m_messageHasBeenSet = false;
121 bool m_codeHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace PartnerCentralMarketing
126} // namespace Aws
ValidationExceptionField & WithCode(ValidationExceptionFieldCode value)
AWS_PARTNERCENTRALMARKETING_API ValidationExceptionField & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PARTNERCENTRALMARKETING_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_PARTNERCENTRALMARKETING_API ValidationExceptionField(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_PARTNERCENTRALMARKETING_API ValidationExceptionField()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String