AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InvalidParameterException.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/shield/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/shield/model/ValidationExceptionField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Shield
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_SHIELD_API InvalidParameterException();
42 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline InvalidParameterException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline InvalidParameterException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline InvalidParameterException& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
61 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
62 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
63 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
64 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
65 inline InvalidParameterException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
66 inline InvalidParameterException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
68
70
73 inline const Aws::Vector<ValidationExceptionField>& GetFields() const{ return m_fields; }
74 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
75 inline void SetFields(const Aws::Vector<ValidationExceptionField>& value) { m_fieldsHasBeenSet = true; m_fields = value; }
76 inline void SetFields(Aws::Vector<ValidationExceptionField>&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
78 inline InvalidParameterException& WithFields(Aws::Vector<ValidationExceptionField>&& value) { SetFields(std::move(value)); return *this;}
79 inline InvalidParameterException& AddFields(const ValidationExceptionField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; }
80 inline InvalidParameterException& AddFields(ValidationExceptionField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; }
82 private:
83
84 Aws::String m_message;
85 bool m_messageHasBeenSet = false;
86
88 bool m_reasonHasBeenSet = false;
89
91 bool m_fieldsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Shield
96} // namespace Aws
const Aws::Vector< ValidationExceptionField > & GetFields() const
void SetFields(Aws::Vector< ValidationExceptionField > &&value)
InvalidParameterException & AddFields(const ValidationExceptionField &value)
InvalidParameterException & WithMessage(const char *value)
AWS_SHIELD_API InvalidParameterException(Aws::Utils::Json::JsonView jsonValue)
InvalidParameterException & WithMessage(const Aws::String &value)
InvalidParameterException & WithReason(ValidationExceptionReason &&value)
void SetReason(const ValidationExceptionReason &value)
InvalidParameterException & WithFields(const Aws::Vector< ValidationExceptionField > &value)
void SetReason(ValidationExceptionReason &&value)
InvalidParameterException & WithReason(const ValidationExceptionReason &value)
InvalidParameterException & AddFields(ValidationExceptionField &&value)
InvalidParameterException & WithFields(Aws::Vector< ValidationExceptionField > &&value)
AWS_SHIELD_API InvalidParameterException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFields(const Aws::Vector< ValidationExceptionField > &value)
InvalidParameterException & WithMessage(Aws::String &&value)
const ValidationExceptionReason & GetReason() 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