AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ValidationExceptionError.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/model/ValidationExceptionErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralSelling
23{
24namespace Model
25{
26
52 {
53 public:
54 AWS_PARTNERCENTRALSELLING_API ValidationExceptionError() = default;
55 AWS_PARTNERCENTRALSELLING_API ValidationExceptionError(Aws::Utils::Json::JsonView jsonValue);
56 AWS_PARTNERCENTRALSELLING_API ValidationExceptionError& operator=(Aws::Utils::Json::JsonView jsonValue);
57 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
58
59
61
64 inline ValidationExceptionErrorCode GetCode() const { return m_code; }
65 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
66 inline void SetCode(ValidationExceptionErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
69
71
74 inline const Aws::String& GetFieldName() const { return m_fieldName; }
75 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
76 template<typename FieldNameT = Aws::String>
77 void SetFieldName(FieldNameT&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::forward<FieldNameT>(value); }
78 template<typename FieldNameT = Aws::String>
79 ValidationExceptionError& WithFieldName(FieldNameT&& value) { SetFieldName(std::forward<FieldNameT>(value)); return *this;}
81
83
86 inline const Aws::String& GetMessage() const { return m_message; }
87 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
88 template<typename MessageT = Aws::String>
89 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
90 template<typename MessageT = Aws::String>
91 ValidationExceptionError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
93 private:
94
96 bool m_codeHasBeenSet = false;
97
98 Aws::String m_fieldName;
99 bool m_fieldNameHasBeenSet = false;
100
101 Aws::String m_message;
102 bool m_messageHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace PartnerCentralSelling
107} // 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