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

An individual Firewall Manager application.

See Also:

AWS API * Reference

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

The application's name.

*/ inline const Aws::String& GetAppName() const{ return m_appName; } /** *

The application's name.

*/ inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; } /** *

The application's name.

*/ inline void SetAppName(const Aws::String& value) { m_appNameHasBeenSet = true; m_appName = value; } /** *

The application's name.

*/ inline void SetAppName(Aws::String&& value) { m_appNameHasBeenSet = true; m_appName = std::move(value); } /** *

The application's name.

*/ inline void SetAppName(const char* value) { m_appNameHasBeenSet = true; m_appName.assign(value); } /** *

The application's name.

*/ inline App& WithAppName(const Aws::String& value) { SetAppName(value); return *this;} /** *

The application's name.

*/ inline App& WithAppName(Aws::String&& value) { SetAppName(std::move(value)); return *this;} /** *

The application's name.

*/ inline App& WithAppName(const char* value) { SetAppName(value); return *this;} /** *

The IP protocol name or number. The name can be one of tcp, * udp, or icmp. For information on possible numbers, see * Protocol * Numbers.

*/ inline const Aws::String& GetProtocol() const{ return m_protocol; } /** *

The IP protocol name or number. The name can be one of tcp, * udp, or icmp. For information on possible numbers, see * Protocol * Numbers.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

The IP protocol name or number. The name can be one of tcp, * udp, or icmp. For information on possible numbers, see * Protocol * Numbers.

*/ inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *

The IP protocol name or number. The name can be one of tcp, * udp, or icmp. For information on possible numbers, see * Protocol * Numbers.

*/ inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *

The IP protocol name or number. The name can be one of tcp, * udp, or icmp. For information on possible numbers, see * Protocol * Numbers.

*/ inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); } /** *

The IP protocol name or number. The name can be one of tcp, * udp, or icmp. For information on possible numbers, see * Protocol * Numbers.

*/ inline App& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *

The IP protocol name or number. The name can be one of tcp, * udp, or icmp. For information on possible numbers, see * Protocol * Numbers.

*/ inline App& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *

The IP protocol name or number. The name can be one of tcp, * udp, or icmp. For information on possible numbers, see * Protocol * Numbers.

*/ inline App& WithProtocol(const char* value) { SetProtocol(value); return *this;} /** *

The application's port number, for example 80.

*/ inline long long GetPort() const{ return m_port; } /** *

The application's port number, for example 80.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The application's port number, for example 80.

*/ inline void SetPort(long long value) { m_portHasBeenSet = true; m_port = value; } /** *

The application's port number, for example 80.

*/ inline App& WithPort(long long value) { SetPort(value); return *this;} private: Aws::String m_appName; bool m_appNameHasBeenSet = false; Aws::String m_protocol; bool m_protocolHasBeenSet = false; long long m_port; bool m_portHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws