AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
InvalidParameterException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/shield/Shield_EXPORTS.h>
10#include <aws/shield/model/ValidationExceptionField.h>
11#include <aws/shield/model/ValidationExceptionReason.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Shield {
23namespace Model {
24
33 public:
34 AWS_SHIELD_API InvalidParameterException() = default;
37 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
41 inline const Aws::String& GetMessage() const { return m_message; }
42 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
43 template <typename MessageT = Aws::String>
44 void SetMessage(MessageT&& value) {
45 m_messageHasBeenSet = true;
46 m_message = std::forward<MessageT>(value);
47 }
48 template <typename MessageT = Aws::String>
50 SetMessage(std::forward<MessageT>(value));
51 return *this;
52 }
54
56
59 inline ValidationExceptionReason GetReason() const { return m_reason; }
60 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 m_reasonHasBeenSet = true;
63 m_reason = value;
64 }
66 SetReason(value);
67 return *this;
68 }
70
72
75 inline const Aws::Vector<ValidationExceptionField>& GetFields() const { return m_fields; }
76 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
77 template <typename FieldsT = Aws::Vector<ValidationExceptionField>>
78 void SetFields(FieldsT&& value) {
79 m_fieldsHasBeenSet = true;
80 m_fields = std::forward<FieldsT>(value);
81 }
82 template <typename FieldsT = Aws::Vector<ValidationExceptionField>>
84 SetFields(std::forward<FieldsT>(value));
85 return *this;
86 }
87 template <typename FieldsT = ValidationExceptionField>
89 m_fieldsHasBeenSet = true;
90 m_fields.emplace_back(std::forward<FieldsT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_message;
96
98
100 bool m_messageHasBeenSet = false;
101 bool m_reasonHasBeenSet = false;
102 bool m_fieldsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Shield
107} // namespace Aws
const Aws::Vector< ValidationExceptionField > & GetFields() const
void SetReason(ValidationExceptionReason value)
AWS_SHIELD_API InvalidParameterException(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API InvalidParameterException()=default
InvalidParameterException & WithReason(ValidationExceptionReason value)
InvalidParameterException & AddFields(FieldsT &&value)
InvalidParameterException & WithMessage(MessageT &&value)
InvalidParameterException & WithFields(FieldsT &&value)
AWS_SHIELD_API InvalidParameterException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue