AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NodeInterface.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/panorama/Panorama_EXPORTS.h>
9#include <aws/panorama/model/NodeInputPort.h>
10#include <aws/panorama/model/NodeOutputPort.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Panorama {
22namespace Model {
23
30 public:
31 AWS_PANORAMA_API NodeInterface() = default;
32 AWS_PANORAMA_API NodeInterface(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<NodeInputPort>& GetInputs() const { return m_inputs; }
41 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
42 template <typename InputsT = Aws::Vector<NodeInputPort>>
43 void SetInputs(InputsT&& value) {
44 m_inputsHasBeenSet = true;
45 m_inputs = std::forward<InputsT>(value);
46 }
47 template <typename InputsT = Aws::Vector<NodeInputPort>>
48 NodeInterface& WithInputs(InputsT&& value) {
49 SetInputs(std::forward<InputsT>(value));
50 return *this;
51 }
52 template <typename InputsT = NodeInputPort>
53 NodeInterface& AddInputs(InputsT&& value) {
54 m_inputsHasBeenSet = true;
55 m_inputs.emplace_back(std::forward<InputsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<NodeOutputPort>& GetOutputs() const { return m_outputs; }
65 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
66 template <typename OutputsT = Aws::Vector<NodeOutputPort>>
67 void SetOutputs(OutputsT&& value) {
68 m_outputsHasBeenSet = true;
69 m_outputs = std::forward<OutputsT>(value);
70 }
71 template <typename OutputsT = Aws::Vector<NodeOutputPort>>
72 NodeInterface& WithOutputs(OutputsT&& value) {
73 SetOutputs(std::forward<OutputsT>(value));
74 return *this;
75 }
76 template <typename OutputsT = NodeOutputPort>
77 NodeInterface& AddOutputs(OutputsT&& value) {
78 m_outputsHasBeenSet = true;
79 m_outputs.emplace_back(std::forward<OutputsT>(value));
80 return *this;
81 }
83 private:
85
87 bool m_inputsHasBeenSet = false;
88 bool m_outputsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Panorama
93} // namespace Aws
NodeInterface & AddOutputs(OutputsT &&value)
AWS_PANORAMA_API NodeInterface(Aws::Utils::Json::JsonView jsonValue)
void SetOutputs(OutputsT &&value)
const Aws::Vector< NodeInputPort > & GetInputs() const
const Aws::Vector< NodeOutputPort > & GetOutputs() const
NodeInterface & WithOutputs(OutputsT &&value)
NodeInterface & AddInputs(InputsT &&value)
NodeInterface & WithInputs(InputsT &&value)
AWS_PANORAMA_API NodeInterface()=default
AWS_PANORAMA_API NodeInterface & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue