/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

A complex type that contains the response to a TestDNSAnswer * request.

See Also:

AWS * API Reference

*/ class TestDNSAnswerResult { public: AWS_ROUTE53_API TestDNSAnswerResult(); AWS_ROUTE53_API TestDNSAnswerResult(const Aws::AmazonWebServiceResult& result); AWS_ROUTE53_API TestDNSAnswerResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Route 53 name server used to respond to the request.

*/ inline const Aws::String& GetNameserver() const{ return m_nameserver; } /** *

The Amazon Route 53 name server used to respond to the request.

*/ inline void SetNameserver(const Aws::String& value) { m_nameserver = value; } /** *

The Amazon Route 53 name server used to respond to the request.

*/ inline void SetNameserver(Aws::String&& value) { m_nameserver = std::move(value); } /** *

The Amazon Route 53 name server used to respond to the request.

*/ inline void SetNameserver(const char* value) { m_nameserver.assign(value); } /** *

The Amazon Route 53 name server used to respond to the request.

*/ inline TestDNSAnswerResult& WithNameserver(const Aws::String& value) { SetNameserver(value); return *this;} /** *

The Amazon Route 53 name server used to respond to the request.

*/ inline TestDNSAnswerResult& WithNameserver(Aws::String&& value) { SetNameserver(std::move(value)); return *this;} /** *

The Amazon Route 53 name server used to respond to the request.

*/ inline TestDNSAnswerResult& WithNameserver(const char* value) { SetNameserver(value); return *this;} /** *

The name of the resource record set that you submitted a request for.

*/ inline const Aws::String& GetRecordName() const{ return m_recordName; } /** *

The name of the resource record set that you submitted a request for.

*/ inline void SetRecordName(const Aws::String& value) { m_recordName = value; } /** *

The name of the resource record set that you submitted a request for.

*/ inline void SetRecordName(Aws::String&& value) { m_recordName = std::move(value); } /** *

The name of the resource record set that you submitted a request for.

*/ inline void SetRecordName(const char* value) { m_recordName.assign(value); } /** *

The name of the resource record set that you submitted a request for.

*/ inline TestDNSAnswerResult& WithRecordName(const Aws::String& value) { SetRecordName(value); return *this;} /** *

The name of the resource record set that you submitted a request for.

*/ inline TestDNSAnswerResult& WithRecordName(Aws::String&& value) { SetRecordName(std::move(value)); return *this;} /** *

The name of the resource record set that you submitted a request for.

*/ inline TestDNSAnswerResult& WithRecordName(const char* value) { SetRecordName(value); return *this;} /** *

The type of the resource record set that you submitted a request for.

*/ inline const RRType& GetRecordType() const{ return m_recordType; } /** *

The type of the resource record set that you submitted a request for.

*/ inline void SetRecordType(const RRType& value) { m_recordType = value; } /** *

The type of the resource record set that you submitted a request for.

*/ inline void SetRecordType(RRType&& value) { m_recordType = std::move(value); } /** *

The type of the resource record set that you submitted a request for.

*/ inline TestDNSAnswerResult& WithRecordType(const RRType& value) { SetRecordType(value); return *this;} /** *

The type of the resource record set that you submitted a request for.

*/ inline TestDNSAnswerResult& WithRecordType(RRType&& value) { SetRecordType(std::move(value)); return *this;} /** *

A list that contains values that Amazon Route 53 returned for this resource * record set.

*/ inline const Aws::Vector& GetRecordData() const{ return m_recordData; } /** *

A list that contains values that Amazon Route 53 returned for this resource * record set.

*/ inline void SetRecordData(const Aws::Vector& value) { m_recordData = value; } /** *

A list that contains values that Amazon Route 53 returned for this resource * record set.

*/ inline void SetRecordData(Aws::Vector&& value) { m_recordData = std::move(value); } /** *

A list that contains values that Amazon Route 53 returned for this resource * record set.

*/ inline TestDNSAnswerResult& WithRecordData(const Aws::Vector& value) { SetRecordData(value); return *this;} /** *

A list that contains values that Amazon Route 53 returned for this resource * record set.

*/ inline TestDNSAnswerResult& WithRecordData(Aws::Vector&& value) { SetRecordData(std::move(value)); return *this;} /** *

A list that contains values that Amazon Route 53 returned for this resource * record set.

*/ inline TestDNSAnswerResult& AddRecordData(const Aws::String& value) { m_recordData.push_back(value); return *this; } /** *

A list that contains values that Amazon Route 53 returned for this resource * record set.

*/ inline TestDNSAnswerResult& AddRecordData(Aws::String&& value) { m_recordData.push_back(std::move(value)); return *this; } /** *

A list that contains values that Amazon Route 53 returned for this resource * record set.

*/ inline TestDNSAnswerResult& AddRecordData(const char* value) { m_recordData.push_back(value); return *this; } /** *

A code that indicates whether the request is valid or not. The most common * response code is NOERROR, meaning that the request is valid. If the * response is not valid, Amazon Route 53 returns a response code that describes * the error. For a list of possible response codes, see DNS * RCODES on the IANA website.

*/ inline const Aws::String& GetResponseCode() const{ return m_responseCode; } /** *

A code that indicates whether the request is valid or not. The most common * response code is NOERROR, meaning that the request is valid. If the * response is not valid, Amazon Route 53 returns a response code that describes * the error. For a list of possible response codes, see DNS * RCODES on the IANA website.

*/ inline void SetResponseCode(const Aws::String& value) { m_responseCode = value; } /** *

A code that indicates whether the request is valid or not. The most common * response code is NOERROR, meaning that the request is valid. If the * response is not valid, Amazon Route 53 returns a response code that describes * the error. For a list of possible response codes, see DNS * RCODES on the IANA website.

*/ inline void SetResponseCode(Aws::String&& value) { m_responseCode = std::move(value); } /** *

A code that indicates whether the request is valid or not. The most common * response code is NOERROR, meaning that the request is valid. If the * response is not valid, Amazon Route 53 returns a response code that describes * the error. For a list of possible response codes, see DNS * RCODES on the IANA website.

*/ inline void SetResponseCode(const char* value) { m_responseCode.assign(value); } /** *

A code that indicates whether the request is valid or not. The most common * response code is NOERROR, meaning that the request is valid. If the * response is not valid, Amazon Route 53 returns a response code that describes * the error. For a list of possible response codes, see DNS * RCODES on the IANA website.

*/ inline TestDNSAnswerResult& WithResponseCode(const Aws::String& value) { SetResponseCode(value); return *this;} /** *

A code that indicates whether the request is valid or not. The most common * response code is NOERROR, meaning that the request is valid. If the * response is not valid, Amazon Route 53 returns a response code that describes * the error. For a list of possible response codes, see DNS * RCODES on the IANA website.

*/ inline TestDNSAnswerResult& WithResponseCode(Aws::String&& value) { SetResponseCode(std::move(value)); return *this;} /** *

A code that indicates whether the request is valid or not. The most common * response code is NOERROR, meaning that the request is valid. If the * response is not valid, Amazon Route 53 returns a response code that describes * the error. For a list of possible response codes, see DNS * RCODES on the IANA website.

*/ inline TestDNSAnswerResult& WithResponseCode(const char* value) { SetResponseCode(value); return *this;} /** *

The protocol that Amazon Route 53 used to respond to the request, either * UDP or TCP.

*/ inline const Aws::String& GetProtocol() const{ return m_protocol; } /** *

The protocol that Amazon Route 53 used to respond to the request, either * UDP or TCP.

*/ inline void SetProtocol(const Aws::String& value) { m_protocol = value; } /** *

The protocol that Amazon Route 53 used to respond to the request, either * UDP or TCP.

*/ inline void SetProtocol(Aws::String&& value) { m_protocol = std::move(value); } /** *

The protocol that Amazon Route 53 used to respond to the request, either * UDP or TCP.

*/ inline void SetProtocol(const char* value) { m_protocol.assign(value); } /** *

The protocol that Amazon Route 53 used to respond to the request, either * UDP or TCP.

*/ inline TestDNSAnswerResult& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *

The protocol that Amazon Route 53 used to respond to the request, either * UDP or TCP.

*/ inline TestDNSAnswerResult& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *

The protocol that Amazon Route 53 used to respond to the request, either * UDP or TCP.

*/ inline TestDNSAnswerResult& WithProtocol(const char* value) { SetProtocol(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline TestDNSAnswerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline TestDNSAnswerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline TestDNSAnswerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_nameserver; Aws::String m_recordName; RRType m_recordType; Aws::Vector m_recordData; Aws::String m_responseCode; Aws::String m_protocol; Aws::String m_requestId; }; } // namespace Model } // namespace Route53 } // namespace Aws