AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TestDNSAnswerResult.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53/model/RRType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace Route53
26{
27namespace Model
28{
36 {
37 public:
38 AWS_ROUTE53_API TestDNSAnswerResult() = default;
41
42
44
47 inline const Aws::String& GetNameserver() const { return m_nameserver; }
48 template<typename NameserverT = Aws::String>
49 void SetNameserver(NameserverT&& value) { m_nameserverHasBeenSet = true; m_nameserver = std::forward<NameserverT>(value); }
50 template<typename NameserverT = Aws::String>
51 TestDNSAnswerResult& WithNameserver(NameserverT&& value) { SetNameserver(std::forward<NameserverT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRecordName() const { return m_recordName; }
59 template<typename RecordNameT = Aws::String>
60 void SetRecordName(RecordNameT&& value) { m_recordNameHasBeenSet = true; m_recordName = std::forward<RecordNameT>(value); }
61 template<typename RecordNameT = Aws::String>
62 TestDNSAnswerResult& WithRecordName(RecordNameT&& value) { SetRecordName(std::forward<RecordNameT>(value)); return *this;}
64
66
69 inline RRType GetRecordType() const { return m_recordType; }
70 inline void SetRecordType(RRType value) { m_recordTypeHasBeenSet = true; m_recordType = value; }
71 inline TestDNSAnswerResult& WithRecordType(RRType value) { SetRecordType(value); return *this;}
73
75
79 inline const Aws::Vector<Aws::String>& GetRecordData() const { return m_recordData; }
80 template<typename RecordDataT = Aws::Vector<Aws::String>>
81 void SetRecordData(RecordDataT&& value) { m_recordDataHasBeenSet = true; m_recordData = std::forward<RecordDataT>(value); }
82 template<typename RecordDataT = Aws::Vector<Aws::String>>
83 TestDNSAnswerResult& WithRecordData(RecordDataT&& value) { SetRecordData(std::forward<RecordDataT>(value)); return *this;}
84 template<typename RecordDataT = Aws::String>
85 TestDNSAnswerResult& AddRecordData(RecordDataT&& value) { m_recordDataHasBeenSet = true; m_recordData.emplace_back(std::forward<RecordDataT>(value)); return *this; }
87
89
97 inline const Aws::String& GetResponseCode() const { return m_responseCode; }
98 template<typename ResponseCodeT = Aws::String>
99 void SetResponseCode(ResponseCodeT&& value) { m_responseCodeHasBeenSet = true; m_responseCode = std::forward<ResponseCodeT>(value); }
100 template<typename ResponseCodeT = Aws::String>
101 TestDNSAnswerResult& WithResponseCode(ResponseCodeT&& value) { SetResponseCode(std::forward<ResponseCodeT>(value)); return *this;}
103
105
109 inline const Aws::String& GetProtocol() const { return m_protocol; }
110 template<typename ProtocolT = Aws::String>
111 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
112 template<typename ProtocolT = Aws::String>
113 TestDNSAnswerResult& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template<typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
121 template<typename RequestIdT = Aws::String>
122 TestDNSAnswerResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
124 private:
125
126 Aws::String m_nameserver;
127 bool m_nameserverHasBeenSet = false;
128
129 Aws::String m_recordName;
130 bool m_recordNameHasBeenSet = false;
131
132 RRType m_recordType{RRType::NOT_SET};
133 bool m_recordTypeHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_recordData;
136 bool m_recordDataHasBeenSet = false;
137
138 Aws::String m_responseCode;
139 bool m_responseCodeHasBeenSet = false;
140
141 Aws::String m_protocol;
142 bool m_protocolHasBeenSet = false;
143
144 Aws::String m_requestId;
145 bool m_requestIdHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Route53
150} // namespace Aws
void SetResponseCode(ResponseCodeT &&value)
TestDNSAnswerResult & WithNameserver(NameserverT &&value)
AWS_ROUTE53_API TestDNSAnswerResult()=default
const Aws::Vector< Aws::String > & GetRecordData() const
TestDNSAnswerResult & WithResponseCode(ResponseCodeT &&value)
TestDNSAnswerResult & WithProtocol(ProtocolT &&value)
const Aws::String & GetResponseCode() const
TestDNSAnswerResult & WithRecordType(RRType value)
TestDNSAnswerResult & WithRecordData(RecordDataT &&value)
TestDNSAnswerResult & WithRequestId(RequestIdT &&value)
TestDNSAnswerResult & AddRecordData(RecordDataT &&value)
TestDNSAnswerResult & WithRecordName(RecordNameT &&value)
AWS_ROUTE53_API TestDNSAnswerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_ROUTE53_API TestDNSAnswerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument