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/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();
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
49 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
50 inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
51 inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
52 inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;}
54
56
60 inline const Aws::Vector<ValidationExceptionField>& GetFieldList() const{ return m_fieldList; }
61 inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; }
62 inline void SetFieldList(const Aws::Vector<ValidationExceptionField>& value) { m_fieldListHasBeenSet = true; m_fieldList = value; }
63 inline void SetFieldList(Aws::Vector<ValidationExceptionField>&& value) { m_fieldListHasBeenSet = true; m_fieldList = std::move(value); }
65 inline ValidationException& WithFieldList(Aws::Vector<ValidationExceptionField>&& value) { SetFieldList(std::move(value)); return *this;}
66 inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; }
67 inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::String m_message;
72 bool m_messageHasBeenSet = false;
73
75 bool m_fieldListHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Pipes
80} // namespace Aws
void SetMessage(const Aws::String &value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationException & WithMessage(const Aws::String &value)
void SetFieldList(const Aws::Vector< ValidationExceptionField > &value)
AWS_PIPES_API ValidationException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ValidationExceptionField > & GetFieldList() const
ValidationException & AddFieldList(const ValidationExceptionField &value)
ValidationException & WithFieldList(const Aws::Vector< ValidationExceptionField > &value)
ValidationException & AddFieldList(ValidationExceptionField &&value)
ValidationException & WithMessage(Aws::String &&value)
ValidationException & WithFieldList(Aws::Vector< ValidationExceptionField > &&value)
void SetFieldList(Aws::Vector< ValidationExceptionField > &&value)
ValidationException & WithMessage(const char *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