AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/neptune/Neptune_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 Neptune
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_NEPTUNE_API Endpoint() = default;
37 AWS_NEPTUNE_API Endpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_NEPTUNE_API Endpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_NEPTUNE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetAddress() const { return m_address; }
49 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
50 template<typename AddressT = Aws::String>
51 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
52 template<typename AddressT = Aws::String>
53 Endpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
55
57
60 inline int GetPort() const { return m_port; }
61 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
62 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
63 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
65
67
71 inline const Aws::String& GetHostedZoneId() const { return m_hostedZoneId; }
72 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
73 template<typename HostedZoneIdT = Aws::String>
74 void SetHostedZoneId(HostedZoneIdT&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::forward<HostedZoneIdT>(value); }
75 template<typename HostedZoneIdT = Aws::String>
76 Endpoint& WithHostedZoneId(HostedZoneIdT&& value) { SetHostedZoneId(std::forward<HostedZoneIdT>(value)); return *this;}
78 private:
79
80 Aws::String m_address;
81 bool m_addressHasBeenSet = false;
82
83 int m_port{0};
84 bool m_portHasBeenSet = false;
85
86 Aws::String m_hostedZoneId;
87 bool m_hostedZoneIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Neptune
92} // namespace Aws
bool HostedZoneIdHasBeenSet() const
Definition Endpoint.h:72
const Aws::String & GetAddress() const
Definition Endpoint.h:48
const Aws::String & GetHostedZoneId() const
Definition Endpoint.h:71
void SetPort(int value)
Definition Endpoint.h:62
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:53
bool AddressHasBeenSet() const
Definition Endpoint.h:49
Endpoint & WithHostedZoneId(HostedZoneIdT &&value)
Definition Endpoint.h:76
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:51
Endpoint & WithPort(int value)
Definition Endpoint.h:63
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetHostedZoneId(HostedZoneIdT &&value)
Definition Endpoint.h:74
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