AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
51 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
52 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
53 inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
54 inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
55 inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
57
59
62 inline int GetPort() const{ return m_port; }
63 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
64 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
65 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
67
69
73 inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
74 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
75 inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
76 inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
77 inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
78 inline Endpoint& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
79 inline Endpoint& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
80 inline Endpoint& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
82 private:
83
84 Aws::String m_address;
85 bool m_addressHasBeenSet = false;
86
87 int m_port;
88 bool m_portHasBeenSet = false;
89
90 Aws::String m_hostedZoneId;
91 bool m_hostedZoneIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Neptune
96} // namespace Aws
bool HostedZoneIdHasBeenSet() const
Definition Endpoint.h:74
const Aws::String & GetAddress() const
Definition Endpoint.h:48
const Aws::String & GetHostedZoneId() const
Definition Endpoint.h:73
void SetPort(int value)
Definition Endpoint.h:64
Endpoint & WithHostedZoneId(const char *value)
Definition Endpoint.h:80
void SetAddress(Aws::String &&value)
Definition Endpoint.h:51
void SetAddress(const char *value)
Definition Endpoint.h:52
Endpoint & WithAddress(const char *value)
Definition Endpoint.h:55
void SetAddress(const Aws::String &value)
Definition Endpoint.h:50
void SetHostedZoneId(const char *value)
Definition Endpoint.h:77
AWS_NEPTUNE_API Endpoint()
Endpoint & WithHostedZoneId(Aws::String &&value)
Definition Endpoint.h:79
void SetHostedZoneId(const Aws::String &value)
Definition Endpoint.h:75
bool AddressHasBeenSet() const
Definition Endpoint.h:49
Endpoint & WithAddress(Aws::String &&value)
Definition Endpoint.h:54
AWS_NEPTUNE_API Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHostedZoneId(Aws::String &&value)
Definition Endpoint.h:76
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Endpoint & WithPort(int value)
Definition Endpoint.h:65
Endpoint & WithAddress(const Aws::String &value)
Definition Endpoint.h:53
Endpoint & WithHostedZoneId(const Aws::String &value)
Definition Endpoint.h:78
AWS_NEPTUNE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
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