AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PipelineObject.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#include <aws/datapipeline/model/Field.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataPipeline {
22namespace Model {
23
32 public:
33 AWS_DATAPIPELINE_API PipelineObject() = default;
34 AWS_DATAPIPELINE_API PipelineObject(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATAPIPELINE_API PipelineObject& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 PipelineObject& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
68 PipelineObject& WithName(NameT&& value) {
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Field>& GetFields() const { return m_fields; }
79 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
80 template <typename FieldsT = Aws::Vector<Field>>
81 void SetFields(FieldsT&& value) {
82 m_fieldsHasBeenSet = true;
83 m_fields = std::forward<FieldsT>(value);
84 }
85 template <typename FieldsT = Aws::Vector<Field>>
86 PipelineObject& WithFields(FieldsT&& value) {
87 SetFields(std::forward<FieldsT>(value));
88 return *this;
89 }
90 template <typename FieldsT = Field>
91 PipelineObject& AddFields(FieldsT&& value) {
92 m_fieldsHasBeenSet = true;
93 m_fields.emplace_back(std::forward<FieldsT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_id;
99
100 Aws::String m_name;
101
102 Aws::Vector<Field> m_fields;
103 bool m_idHasBeenSet = false;
104 bool m_nameHasBeenSet = false;
105 bool m_fieldsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace DataPipeline
110} // namespace Aws
const Aws::Vector< Field > & GetFields() const
AWS_DATAPIPELINE_API PipelineObject & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAPIPELINE_API PipelineObject(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
PipelineObject & WithFields(FieldsT &&value)
const Aws::String & GetName() const
PipelineObject & WithName(NameT &&value)
PipelineObject & WithId(IdT &&value)
const Aws::String & GetId() const
AWS_DATAPIPELINE_API PipelineObject()=default
PipelineObject & AddFields(FieldsT &&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