/** * 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 GroundStation { namespace Model { /** *

Information about the socket address.

See Also:

AWS * API Reference

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

Name of a socket address.

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

Name of a socket address.

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

Name of a socket address.

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

Name of a socket address.

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

Name of a socket address.

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

Name of a socket address.

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

Name of a socket address.

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

Name of a socket address.

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

Port of a socket address.

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

Port of a socket address.

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

Port of a socket address.

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

Port of a socket address.

*/ inline SocketAddress& WithPort(int value) { SetPort(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; }; } // namespace Model } // namespace GroundStation } // namespace Aws