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/neptune/Neptune_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Neptune {
20namespace Model {
21
29class Endpoint {
30 public:
31 AWS_NEPTUNE_API Endpoint() = default;
32 AWS_NEPTUNE_API Endpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_NEPTUNE_API Endpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetAddress() const { return m_address; }
43 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
44 template <typename AddressT = Aws::String>
45 void SetAddress(AddressT&& value) {
46 m_addressHasBeenSet = true;
47 m_address = std::forward<AddressT>(value);
48 }
49 template <typename AddressT = Aws::String>
50 Endpoint& WithAddress(AddressT&& value) {
51 SetAddress(std::forward<AddressT>(value));
52 return *this;
53 }
55
57
60 inline int GetPort() const { return m_port; }
61 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
62 inline void SetPort(int value) {
63 m_portHasBeenSet = true;
64 m_port = value;
65 }
66 inline Endpoint& WithPort(int value) {
67 SetPort(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetHostedZoneId() const { return m_hostedZoneId; }
78 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
79 template <typename HostedZoneIdT = Aws::String>
80 void SetHostedZoneId(HostedZoneIdT&& value) {
81 m_hostedZoneIdHasBeenSet = true;
82 m_hostedZoneId = std::forward<HostedZoneIdT>(value);
83 }
84 template <typename HostedZoneIdT = Aws::String>
85 Endpoint& WithHostedZoneId(HostedZoneIdT&& value) {
86 SetHostedZoneId(std::forward<HostedZoneIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_address;
92
93 int m_port{0};
94
95 Aws::String m_hostedZoneId;
96 bool m_addressHasBeenSet = false;
97 bool m_portHasBeenSet = false;
98 bool m_hostedZoneIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Neptune
103} // namespace Aws
bool HostedZoneIdHasBeenSet() const
Definition Endpoint.h:78
const Aws::String & GetAddress() const
Definition Endpoint.h:42
const Aws::String & GetHostedZoneId() const
Definition Endpoint.h:77
void SetPort(int value)
Definition Endpoint.h:62
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:50
bool AddressHasBeenSet() const
Definition Endpoint.h:43
Endpoint & WithHostedZoneId(HostedZoneIdT &&value)
Definition Endpoint.h:85
AWS_NEPTUNE_API Endpoint()=default
AWS_NEPTUNE_API Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAddress(AddressT &&value)
Definition Endpoint.h:45
Endpoint & WithPort(int value)
Definition Endpoint.h:66
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetHostedZoneId(HostedZoneIdT &&value)
Definition Endpoint.h:80
AWS_NEPTUNE_API Endpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream