AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ValidationWarning.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 ValidationWarning() = default;
38 AWS_DATAPIPELINE_API ValidationWarning(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAPIPELINE_API ValidationWarning& 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 ValidationWarning& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetWarnings() const { return m_warnings; }
60 inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; }
61 template<typename WarningsT = Aws::Vector<Aws::String>>
62 void SetWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings = std::forward<WarningsT>(value); }
63 template<typename WarningsT = Aws::Vector<Aws::String>>
64 ValidationWarning& WithWarnings(WarningsT&& value) { SetWarnings(std::forward<WarningsT>(value)); return *this;}
65 template<typename WarningsT = Aws::String>
66 ValidationWarning& AddWarnings(WarningsT&& value) { m_warningsHasBeenSet = true; m_warnings.emplace_back(std::forward<WarningsT>(value)); return *this; }
68 private:
69
70 Aws::String m_id;
71 bool m_idHasBeenSet = false;
72
73 Aws::Vector<Aws::String> m_warnings;
74 bool m_warningsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace DataPipeline
79} // namespace Aws
ValidationWarning & WithWarnings(WarningsT &&value)
const Aws::Vector< Aws::String > & GetWarnings() const
AWS_DATAPIPELINE_API ValidationWarning(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAPIPELINE_API ValidationWarning & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationWarning & AddWarnings(WarningsT &&value)
ValidationWarning & WithId(IdT &&value)
AWS_DATAPIPELINE_API ValidationWarning()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue