/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

The endpoint from which data should be migrated.

See Also:

* AWS * API Reference

*/ class CustomerNodeEndpoint { public: AWS_ELASTICACHE_API CustomerNodeEndpoint(); AWS_ELASTICACHE_API CustomerNodeEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API CustomerNodeEndpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The address of the node endpoint

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

The address of the node endpoint

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

The address of the node endpoint

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

The address of the node endpoint

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

The address of the node endpoint

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

The address of the node endpoint

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

The address of the node endpoint

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

The address of the node endpoint

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

The port of the node endpoint

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

The port of the node endpoint

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

The port of the node endpoint

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

The port of the node endpoint

*/ inline CustomerNodeEndpoint& WithPort(int value) { SetPort(value); return *this;} private: Aws::String m_address; bool m_addressHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws