AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
50 void SetFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::forward<FieldListT>(value); }
51 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
52 ValidationException& WithFieldList(FieldListT&& value) { SetFieldList(std::forward<FieldListT>(value)); return *this;}
53 template<typename FieldListT = ValidationExceptionField>
54 ValidationException& AddFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList.emplace_back(std::forward<FieldListT>(value)); return *this; }
56
58
59 inline const Aws::String& GetMessage() const { return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 template<typename MessageT = Aws::String>
62 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
63 template<typename MessageT = Aws::String>
64 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
66 private:
67
69 bool m_fieldListHasBeenSet = false;
70
71 Aws::String m_message;
72 bool m_messageHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ResourceExplorer2
77} // namespace Aws
ValidationException & WithMessage(MessageT &&value)
ValidationException & AddFieldList(FieldListT &&value)
AWS_RESOURCEEXPLORER2_API ValidationException()=default
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
AWS_RESOURCEEXPLORER2_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithFieldList(FieldListT &&value)
AWS_RESOURCEEXPLORER2_API ValidationException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue