AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DnsEntry.h
1
6#pragma once
7#include <aws/ec2/EC2_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 EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API DnsEntry();
35 AWS_EC2_API DnsEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API DnsEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetDnsName() const{ return m_dnsName; }
47 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
48 inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; }
49 inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); }
50 inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); }
51 inline DnsEntry& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;}
52 inline DnsEntry& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;}
53 inline DnsEntry& WithDnsName(const char* value) { SetDnsName(value); return *this;}
55
57
60 inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
61 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
62 inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
63 inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
64 inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
65 inline DnsEntry& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
66 inline DnsEntry& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
67 inline DnsEntry& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
69 private:
70
71 Aws::String m_dnsName;
72 bool m_dnsNameHasBeenSet = false;
73
74 Aws::String m_hostedZoneId;
75 bool m_hostedZoneIdHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace EC2
80} // namespace Aws
Definition DnsEntry.h:32
const Aws::String & GetDnsName() const
Definition DnsEntry.h:46
DnsEntry & WithDnsName(Aws::String &&value)
Definition DnsEntry.h:52
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDnsName(const char *value)
Definition DnsEntry.h:50
void SetDnsName(Aws::String &&value)
Definition DnsEntry.h:49
DnsEntry & WithHostedZoneId(const char *value)
Definition DnsEntry.h:67
void SetHostedZoneId(Aws::String &&value)
Definition DnsEntry.h:63
void SetHostedZoneId(const Aws::String &value)
Definition DnsEntry.h:62
DnsEntry & WithDnsName(const char *value)
Definition DnsEntry.h:53
bool DnsNameHasBeenSet() const
Definition DnsEntry.h:47
void SetDnsName(const Aws::String &value)
Definition DnsEntry.h:48
AWS_EC2_API DnsEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API DnsEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DnsEntry & WithHostedZoneId(const Aws::String &value)
Definition DnsEntry.h:65
const Aws::String & GetHostedZoneId() const
Definition DnsEntry.h:60
bool HostedZoneIdHasBeenSet() const
Definition DnsEntry.h:61
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DnsEntry & WithDnsName(const Aws::String &value)
Definition DnsEntry.h:51
AWS_EC2_API DnsEntry()
DnsEntry & WithHostedZoneId(Aws::String &&value)
Definition DnsEntry.h:66
void SetHostedZoneId(const char *value)
Definition DnsEntry.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream