AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ValidationException.h
1
6#pragma once
7#include <aws/artifact/Artifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/artifact/model/ValidationExceptionReason.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/artifact/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 Artifact
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ARTIFACT_API ValidationException();
41 AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
46 inline const Aws::String& GetMessage() const{ return m_message; }
47 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
48 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
50 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
51 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
52 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
53 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
55
57
60 inline const ValidationExceptionReason& GetReason() const{ return m_reason; }
61 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
62 inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
63 inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
64 inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;}
65 inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;}
67
69
72 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
73 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
74 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
75 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
77 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
78 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
79 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85
87 bool m_reasonHasBeenSet = false;
88
90 bool m_fieldListHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Artifact
95} // namespace Aws
AWS_ARTIFACT_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
void SetReason(const ValidationExceptionReason &value)
void SetMessage(const Aws::String &value)
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
AWS_ARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
const ValidationExceptionReason & GetReason() const
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithMessage(const char *value)
AWS_ARTIFACT_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationException & AddFieldList(ValidationExceptionField &&value)
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithMessage(Aws::String &&value)
ValidationException & WithReason(const ValidationExceptionReason &value)
ValidationException & WithReason(ValidationExceptionReason &&value)
ValidationException & WithMessage(const Aws::String &value)
void SetReason(ValidationExceptionReason &&value)
ValidationException & AddFieldList(const ValidationExceptionField &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue