AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
NodeInputPort.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/panorama/Panorama_EXPORTS.h>
9#include <aws/panorama/model/PortType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Panorama {
21namespace Model {
22
29 public:
30 AWS_PANORAMA_API NodeInputPort() = default;
31 AWS_PANORAMA_API NodeInputPort(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
40 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
41 template <typename DefaultValueT = Aws::String>
42 void SetDefaultValue(DefaultValueT&& value) {
43 m_defaultValueHasBeenSet = true;
44 m_defaultValue = std::forward<DefaultValueT>(value);
45 }
46 template <typename DefaultValueT = Aws::String>
47 NodeInputPort& WithDefaultValue(DefaultValueT&& value) {
48 SetDefaultValue(std::forward<DefaultValueT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 NodeInputPort& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline int GetMaxConnections() const { return m_maxConnections; }
76 inline bool MaxConnectionsHasBeenSet() const { return m_maxConnectionsHasBeenSet; }
77 inline void SetMaxConnections(int value) {
78 m_maxConnectionsHasBeenSet = true;
79 m_maxConnections = value;
80 }
81 inline NodeInputPort& WithMaxConnections(int value) {
82 SetMaxConnections(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetName() const { return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 template <typename NameT = Aws::String>
94 void SetName(NameT&& value) {
95 m_nameHasBeenSet = true;
96 m_name = std::forward<NameT>(value);
97 }
98 template <typename NameT = Aws::String>
99 NodeInputPort& WithName(NameT&& value) {
100 SetName(std::forward<NameT>(value));
101 return *this;
102 }
104
106
109 inline PortType GetType() const { return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(PortType value) {
112 m_typeHasBeenSet = true;
113 m_type = value;
114 }
116 SetType(value);
117 return *this;
118 }
120 private:
121 Aws::String m_defaultValue;
122
123 Aws::String m_description;
124
125 int m_maxConnections{0};
126
127 Aws::String m_name;
128
130 bool m_defaultValueHasBeenSet = false;
131 bool m_descriptionHasBeenSet = false;
132 bool m_maxConnectionsHasBeenSet = false;
133 bool m_nameHasBeenSet = false;
134 bool m_typeHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace Panorama
139} // namespace Aws
AWS_PANORAMA_API NodeInputPort & operator=(Aws::Utils::Json::JsonView jsonValue)
NodeInputPort & WithDescription(DescriptionT &&value)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
NodeInputPort & WithName(NameT &&value)
NodeInputPort & WithDefaultValue(DefaultValueT &&value)
NodeInputPort & WithType(PortType value)
const Aws::String & GetDefaultValue() const
NodeInputPort & WithMaxConnections(int value)
const Aws::String & GetName() const
void SetDefaultValue(DefaultValueT &&value)
AWS_PANORAMA_API NodeInputPort()=default
void SetDescription(DescriptionT &&value)
AWS_PANORAMA_API NodeInputPort(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue