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

A collection of TCP/UDP ports for a custom or service app.

See * Also:

AWS * API Reference

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

The TCP/UDP port number of the running app. SimSpace Weaver dynamically * assigns this port number when the app starts. SimSpace Weaver maps the * Declared port to the Actual port. Clients connect to * the app using the app's IP address and the Actual port number.

*/ inline int GetActual() const{ return m_actual; } /** *

The TCP/UDP port number of the running app. SimSpace Weaver dynamically * assigns this port number when the app starts. SimSpace Weaver maps the * Declared port to the Actual port. Clients connect to * the app using the app's IP address and the Actual port number.

*/ inline bool ActualHasBeenSet() const { return m_actualHasBeenSet; } /** *

The TCP/UDP port number of the running app. SimSpace Weaver dynamically * assigns this port number when the app starts. SimSpace Weaver maps the * Declared port to the Actual port. Clients connect to * the app using the app's IP address and the Actual port number.

*/ inline void SetActual(int value) { m_actualHasBeenSet = true; m_actual = value; } /** *

The TCP/UDP port number of the running app. SimSpace Weaver dynamically * assigns this port number when the app starts. SimSpace Weaver maps the * Declared port to the Actual port. Clients connect to * the app using the app's IP address and the Actual port number.

*/ inline SimulationAppPortMapping& WithActual(int value) { SetActual(value); return *this;} /** *

The TCP/UDP port number of the app, declared in the simulation schema. * SimSpace Weaver maps the Declared port to the Actual * port. The source code for the app should bind to the Declared * port.

*/ inline int GetDeclared() const{ return m_declared; } /** *

The TCP/UDP port number of the app, declared in the simulation schema. * SimSpace Weaver maps the Declared port to the Actual * port. The source code for the app should bind to the Declared * port.

*/ inline bool DeclaredHasBeenSet() const { return m_declaredHasBeenSet; } /** *

The TCP/UDP port number of the app, declared in the simulation schema. * SimSpace Weaver maps the Declared port to the Actual * port. The source code for the app should bind to the Declared * port.

*/ inline void SetDeclared(int value) { m_declaredHasBeenSet = true; m_declared = value; } /** *

The TCP/UDP port number of the app, declared in the simulation schema. * SimSpace Weaver maps the Declared port to the Actual * port. The source code for the app should bind to the Declared * port.

*/ inline SimulationAppPortMapping& WithDeclared(int value) { SetDeclared(value); return *this;} private: int m_actual; bool m_actualHasBeenSet = false; int m_declared; bool m_declaredHasBeenSet = false; }; } // namespace Model } // namespace SimSpaceWeaver } // namespace Aws