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/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-explorer-2/model/ValidationExceptionField.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ResourceExplorer2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_RESOURCEEXPLORER2_API ValidationException();
38 AWS_RESOURCEEXPLORER2_API ValidationException(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESOURCEEXPLORER2_API ValidationException& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
48 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
49 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
50 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
52 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
53 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
54 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
56
58
59 inline const Aws::String& GetMessage() const{ return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
62 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
63 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
65 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
66 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
68 private:
69
71 bool m_fieldListHasBeenSet = false;
72
73 Aws::String m_message;
74 bool m_messageHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ResourceExplorer2
79} // namespace Aws
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & WithMessage(const char *value)
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithMessage(Aws::String &&value)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & AddFieldList(ValidationExceptionField &&value)
AWS_RESOURCEEXPLORER2_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & AddFieldList(const ValidationExceptionField &value)
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESOURCEEXPLORER2_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
ValidationException & WithMessage(const Aws::String &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