AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ValidationError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datapipeline/DataPipeline_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataPipeline {
21namespace Model {
22
31 public:
32 AWS_DATAPIPELINE_API ValidationError() = default;
33 AWS_DATAPIPELINE_API ValidationError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAPIPELINE_API ValidationError& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 ValidationError& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
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) {
63 m_errorsHasBeenSet = true;
64 m_errors = std::forward<ErrorsT>(value);
65 }
66 template <typename ErrorsT = Aws::Vector<Aws::String>>
67 ValidationError& WithErrors(ErrorsT&& value) {
68 SetErrors(std::forward<ErrorsT>(value));
69 return *this;
70 }
71 template <typename ErrorsT = Aws::String>
72 ValidationError& AddErrors(ErrorsT&& value) {
73 m_errorsHasBeenSet = true;
74 m_errors.emplace_back(std::forward<ErrorsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_id;
80
82 bool m_idHasBeenSet = false;
83 bool m_errorsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace DataPipeline
88} // 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