/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Panorama { namespace Model { /** *

A node input port.

See Also:

AWS * API Reference

*/ class NodeInputPort { public: AWS_PANORAMA_API NodeInputPort(); AWS_PANORAMA_API NodeInputPort(Aws::Utils::Json::JsonView jsonValue); AWS_PANORAMA_API NodeInputPort& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The input port's default value.

*/ inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } /** *

The input port's default value.

*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *

The input port's default value.

*/ inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *

The input port's default value.

*/ inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *

The input port's default value.

*/ inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } /** *

The input port's default value.

*/ inline NodeInputPort& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} /** *

The input port's default value.

*/ inline NodeInputPort& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} /** *

The input port's default value.

*/ inline NodeInputPort& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} /** *

The input port's description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The input port's description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The input port's description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The input port's description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The input port's description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The input port's description.

*/ inline NodeInputPort& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The input port's description.

*/ inline NodeInputPort& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The input port's description.

*/ inline NodeInputPort& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The input port's max connections.

*/ inline int GetMaxConnections() const{ return m_maxConnections; } /** *

The input port's max connections.

*/ inline bool MaxConnectionsHasBeenSet() const { return m_maxConnectionsHasBeenSet; } /** *

The input port's max connections.

*/ inline void SetMaxConnections(int value) { m_maxConnectionsHasBeenSet = true; m_maxConnections = value; } /** *

The input port's max connections.

*/ inline NodeInputPort& WithMaxConnections(int value) { SetMaxConnections(value); return *this;} /** *

The input port's name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The input port's name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The input port's name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The input port's name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The input port's name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The input port's name.

*/ inline NodeInputPort& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The input port's name.

*/ inline NodeInputPort& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The input port's name.

*/ inline NodeInputPort& WithName(const char* value) { SetName(value); return *this;} /** *

The input port's type.

*/ inline const PortType& GetType() const{ return m_type; } /** *

The input port's type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The input port's type.

*/ inline void SetType(const PortType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The input port's type.

*/ inline void SetType(PortType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The input port's type.

*/ inline NodeInputPort& WithType(const PortType& value) { SetType(value); return *this;} /** *

The input port's type.

*/ inline NodeInputPort& WithType(PortType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; int m_maxConnections; bool m_maxConnectionsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; PortType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Panorama } // namespace Aws