AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElastiCache {
20namespace Model {
21
28class Endpoint {
29 public:
30 AWS_ELASTICACHE_API Endpoint() = default;
31 AWS_ELASTICACHE_API Endpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICACHE_API Endpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetAddress() const { return m_address; }
42 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
43 template <typename AddressT = Aws::String>
44 void SetAddress(AddressT&& value) {
45 m_addressHasBeenSet = true;
46 m_address = std::forward<AddressT>(value);
47 }
48 template <typename AddressT = Aws::String>
49 Endpoint& WithAddress(AddressT&& value) {
50 SetAddress(std::forward<AddressT>(value));
51 return *this;
52 }
54
56
59 inline int GetPort() const { return m_port; }
60 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
61 inline void SetPort(int value) {
62 m_portHasBeenSet = true;
63 m_port = value;
64 }
65 inline Endpoint& WithPort(int value) {
66 SetPort(value);
67 return *this;
68 }
70 private:
71 Aws::String m_address;
72
73 int m_port{0};
74 bool m_addressHasBeenSet = false;
75 bool m_portHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ElastiCache
80} // namespace Aws
void SetAddress(AddressT &&value)
Definition Endpoint.h:44
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:49
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICACHE_API Endpoint()=default
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICACHE_API Endpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAddress() const
Definition Endpoint.h:41
Endpoint & WithPort(int value)
Definition Endpoint.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream