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

Represents the information required for client programs to connect to the * endpoint for a DAX cluster.

See Also:

AWS API * Reference

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

The DNS hostname of the endpoint.

*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *

The DNS hostname of the endpoint.

*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *

The DNS hostname of the endpoint.

*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *

The DNS hostname of the endpoint.

*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *

The DNS hostname of the endpoint.

*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *

The DNS hostname of the endpoint.

*/ inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *

The DNS hostname of the endpoint.

*/ inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *

The DNS hostname of the endpoint.

*/ inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;} /** *

The port number that applications should use to connect to the endpoint.

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

The port number that applications should use to connect to the endpoint.

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

The port number that applications should use to connect to the endpoint.

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

The port number that applications should use to connect to the endpoint.

*/ inline Endpoint& WithPort(int value) { SetPort(value); return *this;} /** *

The URL that applications should use to connect to the endpoint. The default * ports are 8111 for the "dax" protocol and 9111 for the "daxs" protocol.

*/ inline const Aws::String& GetURL() const{ return m_uRL; } /** *

The URL that applications should use to connect to the endpoint. The default * ports are 8111 for the "dax" protocol and 9111 for the "daxs" protocol.

*/ inline bool URLHasBeenSet() const { return m_uRLHasBeenSet; } /** *

The URL that applications should use to connect to the endpoint. The default * ports are 8111 for the "dax" protocol and 9111 for the "daxs" protocol.

*/ inline void SetURL(const Aws::String& value) { m_uRLHasBeenSet = true; m_uRL = value; } /** *

The URL that applications should use to connect to the endpoint. The default * ports are 8111 for the "dax" protocol and 9111 for the "daxs" protocol.

*/ inline void SetURL(Aws::String&& value) { m_uRLHasBeenSet = true; m_uRL = std::move(value); } /** *

The URL that applications should use to connect to the endpoint. The default * ports are 8111 for the "dax" protocol and 9111 for the "daxs" protocol.

*/ inline void SetURL(const char* value) { m_uRLHasBeenSet = true; m_uRL.assign(value); } /** *

The URL that applications should use to connect to the endpoint. The default * ports are 8111 for the "dax" protocol and 9111 for the "daxs" protocol.

*/ inline Endpoint& WithURL(const Aws::String& value) { SetURL(value); return *this;} /** *

The URL that applications should use to connect to the endpoint. The default * ports are 8111 for the "dax" protocol and 9111 for the "daxs" protocol.

*/ inline Endpoint& WithURL(Aws::String&& value) { SetURL(std::move(value)); return *this;} /** *

The URL that applications should use to connect to the endpoint. The default * ports are 8111 for the "dax" protocol and 9111 for the "daxs" protocol.

*/ inline Endpoint& WithURL(const char* value) { SetURL(value); return *this;} private: Aws::String m_address; bool m_addressHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_uRL; bool m_uRLHasBeenSet = false; }; } // namespace Model } // namespace DAX } // namespace Aws