AWS SDK for C++  1.9.155
AWS SDK for C++
ValidationException.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AccessAnalyzer
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
47 
51  inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
52 
56  inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
57 
61  inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
62 
66  inline ValidationException& WithFieldList(const Aws::Vector<ValidationExceptionField>& value) { SetFieldList(value); return *this;}
67 
71  inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
72 
76  inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
77 
81  inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
82 
83 
84 
85  inline const Aws::String& GetMessage() const{ return m_message; }
86 
87 
88  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
89 
90 
91  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
92 
93 
94  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
95 
96 
97  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
98 
99 
100  inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
101 
102 
103  inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
104 
105 
106  inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
107 
108 
112  inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
113 
117  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
118 
122  inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
123 
127  inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
128 
132  inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
133 
137  inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
138 
139  private:
140 
142  bool m_fieldListHasBeenSet;
143 
144  Aws::String m_message;
145  bool m_messageHasBeenSet;
146 
147  ValidationExceptionReason m_reason;
148  bool m_reasonHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace AccessAnalyzer
153 } // namespace Aws
Aws::AccessAnalyzer::Model::ValidationException::WithMessage
ValidationException & WithMessage(const char *value)
Definition: ValidationException.h:106
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::ValidationException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ValidationException.h:88
Aws::AccessAnalyzer::Model::ValidationException::SetReason
void SetReason(ValidationExceptionReason &&value)
Definition: ValidationException.h:127
Aws::AccessAnalyzer::Model::ValidationException::GetFieldList
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
Definition: ValidationException.h:46
Aws::AccessAnalyzer::Model::ValidationExceptionField
Definition: ValidationExceptionField.h:33
Aws::AccessAnalyzer::Model::ValidationException::WithMessage
ValidationException & WithMessage(Aws::String &&value)
Definition: ValidationException.h:103
Aws::AccessAnalyzer::Model::ValidationException::AddFieldList
ValidationException & AddFieldList(ValidationExceptionField &&value)
Definition: ValidationException.h:81
Aws::AccessAnalyzer::Model::ValidationException::FieldListHasBeenSet
bool FieldListHasBeenSet() const
Definition: ValidationException.h:51
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::ValidationException::WithMessage
ValidationException & WithMessage(const Aws::String &value)
Definition: ValidationException.h:100
AWSVector.h
Aws::AccessAnalyzer::Model::ValidationException::WithReason
ValidationException & WithReason(const ValidationExceptionReason &value)
Definition: ValidationException.h:132
Aws::AccessAnalyzer::Model::ValidationException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ValidationException.h:94
Aws::AccessAnalyzer::Model::ValidationException::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: ValidationException.h:117
Aws::AccessAnalyzer::Model::ValidationException::SetFieldList
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
Definition: ValidationException.h:56
Aws::AccessAnalyzer::Model::ValidationException::SetFieldList
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
Definition: ValidationException.h:61
Aws::AccessAnalyzer::Model::ValidationException::AddFieldList
ValidationException & AddFieldList(const ValidationExceptionField &value)
Definition: ValidationException.h:76
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AccessAnalyzer::Model::ValidationException::WithReason
ValidationException & WithReason(ValidationExceptionReason &&value)
Definition: ValidationException.h:137
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
ValidationExceptionField.h
Aws::AccessAnalyzer::Model::ValidationException::operator=
ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::ValidationException::WithFieldList
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
Definition: ValidationException.h:71
Aws::AccessAnalyzer::Model::ValidationException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::ValidationException::GetMessage
const Aws::String & GetMessage() const
Definition: ValidationException.h:85
Aws::AccessAnalyzer::Model::ValidationException::SetMessage
void SetMessage(const char *value)
Definition: ValidationException.h:97
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ValidationException::ValidationException
ValidationException(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ValidationExceptionReason
ValidationExceptionReason
Definition: ValidationExceptionReason.h:17
ValidationExceptionReason.h
Aws::AccessAnalyzer::Model::ValidationException::WithFieldList
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
Definition: ValidationException.h:66
Aws::AccessAnalyzer::Model::ValidationException::SetReason
void SetReason(const ValidationExceptionReason &value)
Definition: ValidationException.h:122
Aws::AccessAnalyzer::Model::ValidationException::GetReason
const ValidationExceptionReason & GetReason() const
Definition: ValidationException.h:112
Aws::AccessAnalyzer::Model::ValidationException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ValidationException.h:91
Aws::AccessAnalyzer::Model::ValidationException::ValidationException
ValidationException()
Aws::AccessAnalyzer::Model::ValidationException
Definition: ValidationException.h:35