116 lines
3.1 KiB
C
116 lines
3.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elasticache/ElastiCache_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Xml
|
|||
|
|
{
|
|||
|
|
class XmlNode;
|
|||
|
|
} // namespace Xml
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace ElastiCache
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Represents the information required for client programs to connect to a cache
|
|||
|
|
* node.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Endpoint">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICACHE_API Endpoint
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
Endpoint();
|
|||
|
|
Endpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
Endpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
|
|||
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|||
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The DNS hostname of the cache node.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetAddress() const{ return m_address; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The DNS hostname of the cache node.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The DNS hostname of the cache node.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The DNS hostname of the cache node.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The DNS hostname of the cache node.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The DNS hostname of the cache node.</p>
|
|||
|
|
*/
|
|||
|
|
inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The DNS hostname of the cache node.</p>
|
|||
|
|
*/
|
|||
|
|
inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The DNS hostname of the cache node.</p>
|
|||
|
|
*/
|
|||
|
|
inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port number that the cache engine is listening on.</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetPort() const{ return m_port; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port number that the cache engine is listening on.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port number that the cache engine is listening on.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port number that the cache engine is listening on.</p>
|
|||
|
|
*/
|
|||
|
|
inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_address;
|
|||
|
|
bool m_addressHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_port;
|
|||
|
|
bool m_portHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElastiCache
|
|||
|
|
} // namespace Aws
|