AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
ValidationExceptionField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
9#include <aws/partnercentral-benefits/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 PartnerCentralBenefits {
21namespace Model {
22
30 public:
31 AWS_PARTNERCENTRALBENEFITS_API ValidationExceptionField() = default;
32 AWS_PARTNERCENTRALBENEFITS_API ValidationExceptionField(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PARTNERCENTRALBENEFITS_API ValidationExceptionField& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMessage() const { return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 template <typename MessageT = Aws::String>
61 void SetMessage(MessageT&& value) {
62 m_messageHasBeenSet = true;
63 m_message = std::forward<MessageT>(value);
64 }
65 template <typename MessageT = Aws::String>
67 SetMessage(std::forward<MessageT>(value));
68 return *this;
69 }
71
73
76 inline ValidationExceptionErrorCode GetCode() const { return m_code; }
77 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
79 m_codeHasBeenSet = true;
80 m_code = value;
81 }
83 SetCode(value);
84 return *this;
85 }
87 private:
88 Aws::String m_name;
89
90 Aws::String m_message;
91
93 bool m_nameHasBeenSet = false;
94 bool m_messageHasBeenSet = false;
95 bool m_codeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace PartnerCentralBenefits
100} // namespace Aws
AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALBENEFITS_API ValidationExceptionField & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationExceptionField & WithCode(ValidationExceptionErrorCode value)
AWS_PARTNERCENTRALBENEFITS_API ValidationExceptionField(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALBENEFITS_API ValidationExceptionField()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue