AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ValidationExceptionError.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-selling/model/ValidationExceptionErrorCode.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 const Aws::String& GetFieldName() const { return m_fieldName; }
65 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
66 template<typename FieldNameT = Aws::String>
67 void SetFieldName(FieldNameT&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::forward<FieldNameT>(value); }
68 template<typename FieldNameT = Aws::String>
69 ValidationExceptionError& WithFieldName(FieldNameT&& value) { SetFieldName(std::forward<FieldNameT>(value)); return *this;}
71
73
76 inline const Aws::String& GetMessage() const { return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 template<typename MessageT = Aws::String>
79 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
80 template<typename MessageT = Aws::String>
81 ValidationExceptionError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
83
85
88 inline ValidationExceptionErrorCode GetCode() const { return m_code; }
89 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
90 inline void SetCode(ValidationExceptionErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
93 private:
94
95 Aws::String m_fieldName;
96 bool m_fieldNameHasBeenSet = false;
97
98 Aws::String m_message;
99 bool m_messageHasBeenSet = false;
100
102 bool m_codeHasBeenSet = 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