AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomerNodeEndpoint.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICACHE_API CustomerNodeEndpoint();
36 AWS_ELASTICACHE_API CustomerNodeEndpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICACHE_API CustomerNodeEndpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetAddress() const{ return m_address; }
48 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
49 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
50 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
51 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
52 inline CustomerNodeEndpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
53 inline CustomerNodeEndpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
54 inline CustomerNodeEndpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
56
58
61 inline int GetPort() const{ return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
64 inline CustomerNodeEndpoint& WithPort(int value) { SetPort(value); return *this;}
66 private:
67
68 Aws::String m_address;
69 bool m_addressHasBeenSet = false;
70
71 int m_port;
72 bool m_portHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ElastiCache
77} // namespace Aws
CustomerNodeEndpoint & WithAddress(Aws::String &&value)
AWS_ELASTICACHE_API CustomerNodeEndpoint(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 CustomerNodeEndpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CustomerNodeEndpoint & WithAddress(const Aws::String &value)
CustomerNodeEndpoint & WithAddress(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream