AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ValidationExceptionError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
9#include <aws/partnercentral-selling/model/ValidationExceptionErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralSelling {
21namespace Model {
22
50 public:
51 AWS_PARTNERCENTRALSELLING_API ValidationExceptionError() = default;
52 AWS_PARTNERCENTRALSELLING_API ValidationExceptionError(Aws::Utils::Json::JsonView jsonValue);
53 AWS_PARTNERCENTRALSELLING_API ValidationExceptionError& operator=(Aws::Utils::Json::JsonView jsonValue);
54 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
55
57
60 inline const Aws::String& GetFieldName() const { return m_fieldName; }
61 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
62 template <typename FieldNameT = Aws::String>
63 void SetFieldName(FieldNameT&& value) {
64 m_fieldNameHasBeenSet = true;
65 m_fieldName = std::forward<FieldNameT>(value);
66 }
67 template <typename FieldNameT = Aws::String>
69 SetFieldName(std::forward<FieldNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetMessage() const { return m_message; }
79 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
80 template <typename MessageT = Aws::String>
81 void SetMessage(MessageT&& value) {
82 m_messageHasBeenSet = true;
83 m_message = std::forward<MessageT>(value);
84 }
85 template <typename MessageT = Aws::String>
87 SetMessage(std::forward<MessageT>(value));
88 return *this;
89 }
91
93
96 inline ValidationExceptionErrorCode GetCode() const { return m_code; }
97 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
99 m_codeHasBeenSet = true;
100 m_code = value;
101 }
103 SetCode(value);
104 return *this;
105 }
107 private:
108 Aws::String m_fieldName;
109
110 Aws::String m_message;
111
113 bool m_fieldNameHasBeenSet = false;
114 bool m_messageHasBeenSet = false;
115 bool m_codeHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace PartnerCentralSelling
120} // namespace Aws
ValidationExceptionError & WithFieldName(FieldNameT &&value)
ValidationExceptionError & WithCode(ValidationExceptionErrorCode value)
AWS_PARTNERCENTRALSELLING_API ValidationExceptionError()=default
AWS_PARTNERCENTRALSELLING_API ValidationExceptionError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALSELLING_API ValidationExceptionError(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue