AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ValidationError.h
1
6#pragma once
7#include <aws/datapipeline/DataPipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataPipeline
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_DATAPIPELINE_API ValidationError() = default;
38 AWS_DATAPIPELINE_API ValidationError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAPIPELINE_API ValidationError& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 ValidationError& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetErrors() const { return m_errors; }
60 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
61 template<typename ErrorsT = Aws::Vector<Aws::String>>
62 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
63 template<typename ErrorsT = Aws::Vector<Aws::String>>
64 ValidationError& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
65 template<typename ErrorsT = Aws::String>
66 ValidationError& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
68 private:
69
70 Aws::String m_id;
71 bool m_idHasBeenSet = false;
72
74 bool m_errorsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace DataPipeline
79} // namespace Aws
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAPIPELINE_API ValidationError()=default
AWS_DATAPIPELINE_API ValidationError(Aws::Utils::Json::JsonView jsonValue)
ValidationError & AddErrors(ErrorsT &&value)
ValidationError & WithErrors(ErrorsT &&value)
AWS_DATAPIPELINE_API ValidationError & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetErrors() const
ValidationError & WithId(IdT &&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