AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline ValidationError& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline ValidationError& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline ValidationError& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetErrors() const{ return m_errors; }
62 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
63 inline void SetErrors(const Aws::Vector<Aws::String>& value) { m_errorsHasBeenSet = true; m_errors = value; }
64 inline void SetErrors(Aws::Vector<Aws::String>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
65 inline ValidationError& WithErrors(const Aws::Vector<Aws::String>& value) { SetErrors(value); return *this;}
66 inline ValidationError& WithErrors(Aws::Vector<Aws::String>&& value) { SetErrors(std::move(value)); return *this;}
67 inline ValidationError& AddErrors(const Aws::String& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
68 inline ValidationError& AddErrors(Aws::String&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; }
69 inline ValidationError& AddErrors(const char* value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
71 private:
72
73 Aws::String m_id;
74 bool m_idHasBeenSet = false;
75
77 bool m_errorsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace DataPipeline
82} // namespace Aws
ValidationError & WithId(const char *value)
void SetErrors(Aws::Vector< Aws::String > &&value)
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationError & WithId(Aws::String &&value)
void SetErrors(const Aws::Vector< Aws::String > &value)
ValidationError & WithErrors(Aws::Vector< Aws::String > &&value)
ValidationError & AddErrors(Aws::String &&value)
AWS_DATAPIPELINE_API ValidationError(Aws::Utils::Json::JsonView jsonValue)
ValidationError & WithErrors(const Aws::Vector< Aws::String > &value)
ValidationError & WithId(const Aws::String &value)
ValidationError & AddErrors(const char *value)
void SetId(const Aws::String &value)
AWS_DATAPIPELINE_API ValidationError & operator=(Aws::Utils::Json::JsonView jsonValue)
ValidationError & AddErrors(const Aws::String &value)
const Aws::Vector< Aws::String > & GetErrors() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue