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/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pipes/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 Pipes
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PIPES_API ValidationException() = default;
40 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const Aws::String& GetMessage() const { return m_message; }
46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 template<typename MessageT = Aws::String>
48 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
49 template<typename MessageT = Aws::String>
50 ValidationException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
52
54
58 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const { return m_fieldList; }
59 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
60 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
61 void SetFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::forward<FieldListT>(value); }
62 template<typename FieldListT = Aws::Vector<ValidationExceptionField>>
63 ValidationException& WithFieldList(FieldListT&& value) { SetFieldList(std::forward<FieldListT>(value)); return *this;}
64 template<typename FieldListT = ValidationExceptionField>
65 ValidationException& AddFieldList(FieldListT&& value) { m_fieldListHasBeenSet = true; m_fieldList.emplace_back(std::forward<FieldListT>(value)); return *this; }
67 private:
68
69 Aws::String m_message;
70 bool m_messageHasBeenSet = false;
71
73 bool m_fieldListHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Pipes
78} // namespace Aws
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithFieldList(FieldListT &&value)
AWS_PIPES_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & WithMessage(MessageT &&value)
AWS_PIPES_API ValidationException()=default
ValidationException & AddFieldList(FieldListT &&value)
AWS_PIPES_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