/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.route53.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* Gets the value that Amazon Route 53 returns in response to a DNS request for a specified record name and type. You * can optionally specify the IP address of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TestDNSAnswerRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. *
*/ private String hostedZoneId; /** ** The name of the resource record set that you want Amazon Route 53 to simulate a query for. *
*/ private String recordName; /** ** The type of the resource record set. *
*/ private String recordType; /** *
* If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you
* omit this value, TestDnsAnswer
uses the IP address of a DNS resolver in the Amazon Web Services US
* East (N. Virginia) Region (us-east-1
).
*
* If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in
* the applicable location, for example, 192.0.2.44
or 2001:db8:85a3::8a2e:370:7334
.
*
* If you specify an IP address for edns0clientsubnetip
, you can optionally specify the number of bits
* of the IP address that you want the checking tool to include in the DNS query. For example, if you specify
* 192.0.2.44
for edns0clientsubnetip
and 24
for
* edns0clientsubnetmask
, the checking tool will simulate a request from 192.0.2.0/24. The default
* value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
*
* The range of valid values depends on whether edns0clientsubnetip
is an IPv4 or an IPv6 address:
*
* IPv4: Specify a value between 0 and 32 *
** IPv6: Specify a value between 0 and 128 *
** The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. *
* * @param hostedZoneId * The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. */ public void setHostedZoneId(String hostedZoneId) { this.hostedZoneId = hostedZoneId; } /** ** The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. *
* * @return The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. */ public String getHostedZoneId() { return this.hostedZoneId; } /** ** The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. *
* * @param hostedZoneId * The ID of the hosted zone that you want Amazon Route 53 to simulate a query for. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerRequest withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; } /** ** The name of the resource record set that you want Amazon Route 53 to simulate a query for. *
* * @param recordName * The name of the resource record set that you want Amazon Route 53 to simulate a query for. */ public void setRecordName(String recordName) { this.recordName = recordName; } /** ** The name of the resource record set that you want Amazon Route 53 to simulate a query for. *
* * @return The name of the resource record set that you want Amazon Route 53 to simulate a query for. */ public String getRecordName() { return this.recordName; } /** ** The name of the resource record set that you want Amazon Route 53 to simulate a query for. *
* * @param recordName * The name of the resource record set that you want Amazon Route 53 to simulate a query for. * @return Returns a reference to this object so that method calls can be chained together. */ public TestDNSAnswerRequest withRecordName(String recordName) { setRecordName(recordName); return this; } /** ** The type of the resource record set. *
* * @param recordType * The type of the resource record set. * @see RRType */ public void setRecordType(String recordType) { this.recordType = recordType; } /** ** The type of the resource record set. *
* * @return The type of the resource record set. * @see RRType */ public String getRecordType() { return this.recordType; } /** ** The type of the resource record set. *
* * @param recordType * The type of the resource record set. * @return Returns a reference to this object so that method calls can be chained together. * @see RRType */ public TestDNSAnswerRequest withRecordType(String recordType) { setRecordType(recordType); return this; } /** ** The type of the resource record set. *
* * @param recordType * The type of the resource record set. * @see RRType */ public void setRecordType(RRType recordType) { withRecordType(recordType); } /** ** The type of the resource record set. *
* * @param recordType * The type of the resource record set. * @return Returns a reference to this object so that method calls can be chained together. * @see RRType */ public TestDNSAnswerRequest withRecordType(RRType recordType) { this.recordType = recordType.toString(); return this; } /** *
* If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you
* omit this value, TestDnsAnswer
uses the IP address of a DNS resolver in the Amazon Web Services US
* East (N. Virginia) Region (us-east-1
).
*
TestDnsAnswer
uses the IP address of a DNS resolver in the Amazon Web
* Services US East (N. Virginia) Region (us-east-1
).
*/
public void setResolverIP(String resolverIP) {
this.resolverIP = resolverIP;
}
/**
*
* If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you
* omit this value, TestDnsAnswer
uses the IP address of a DNS resolver in the Amazon Web Services US
* East (N. Virginia) Region (us-east-1
).
*
TestDnsAnswer
uses the IP address of a DNS resolver in the Amazon
* Web Services US East (N. Virginia) Region (us-east-1
).
*/
public String getResolverIP() {
return this.resolverIP;
}
/**
*
* If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you
* omit this value, TestDnsAnswer
uses the IP address of a DNS resolver in the Amazon Web Services US
* East (N. Virginia) Region (us-east-1
).
*
TestDnsAnswer
uses the IP address of a DNS resolver in the Amazon Web
* Services US East (N. Virginia) Region (us-east-1
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestDNSAnswerRequest withResolverIP(String resolverIP) {
setResolverIP(resolverIP);
return this;
}
/**
*
* If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in
* the applicable location, for example, 192.0.2.44
or 2001:db8:85a3::8a2e:370:7334
.
*
192.0.2.44
or
* 2001:db8:85a3::8a2e:370:7334
.
*/
public void setEDNS0ClientSubnetIP(String eDNS0ClientSubnetIP) {
this.eDNS0ClientSubnetIP = eDNS0ClientSubnetIP;
}
/**
*
* If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in
* the applicable location, for example, 192.0.2.44
or 2001:db8:85a3::8a2e:370:7334
.
*
192.0.2.44
or
* 2001:db8:85a3::8a2e:370:7334
.
*/
public String getEDNS0ClientSubnetIP() {
return this.eDNS0ClientSubnetIP;
}
/**
*
* If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in
* the applicable location, for example, 192.0.2.44
or 2001:db8:85a3::8a2e:370:7334
.
*
192.0.2.44
or
* 2001:db8:85a3::8a2e:370:7334
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestDNSAnswerRequest withEDNS0ClientSubnetIP(String eDNS0ClientSubnetIP) {
setEDNS0ClientSubnetIP(eDNS0ClientSubnetIP);
return this;
}
/**
*
* If you specify an IP address for edns0clientsubnetip
, you can optionally specify the number of bits
* of the IP address that you want the checking tool to include in the DNS query. For example, if you specify
* 192.0.2.44
for edns0clientsubnetip
and 24
for
* edns0clientsubnetmask
, the checking tool will simulate a request from 192.0.2.0/24. The default
* value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
*
* The range of valid values depends on whether edns0clientsubnetip
is an IPv4 or an IPv6 address:
*
* IPv4: Specify a value between 0 and 32 *
** IPv6: Specify a value between 0 and 128 *
*edns0clientsubnetip
, you can optionally specify the number
* of bits of the IP address that you want the checking tool to include in the DNS query. For example, if you
* specify 192.0.2.44
for edns0clientsubnetip
and 24
for
* edns0clientsubnetmask
, the checking tool will simulate a request from 192.0.2.0/24. The
* default value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
*
* The range of valid values depends on whether edns0clientsubnetip
is an IPv4 or an IPv6
* address:
*
* IPv4: Specify a value between 0 and 32 *
** IPv6: Specify a value between 0 and 128 *
*
* If you specify an IP address for edns0clientsubnetip
, you can optionally specify the number of bits
* of the IP address that you want the checking tool to include in the DNS query. For example, if you specify
* 192.0.2.44
for edns0clientsubnetip
and 24
for
* edns0clientsubnetmask
, the checking tool will simulate a request from 192.0.2.0/24. The default
* value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
*
* The range of valid values depends on whether edns0clientsubnetip
is an IPv4 or an IPv6 address:
*
* IPv4: Specify a value between 0 and 32 *
** IPv6: Specify a value between 0 and 128 *
*edns0clientsubnetip
, you can optionally specify the number
* of bits of the IP address that you want the checking tool to include in the DNS query. For example, if
* you specify 192.0.2.44
for edns0clientsubnetip
and 24
for
* edns0clientsubnetmask
, the checking tool will simulate a request from 192.0.2.0/24. The
* default value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
*
* The range of valid values depends on whether edns0clientsubnetip
is an IPv4 or an IPv6
* address:
*
* IPv4: Specify a value between 0 and 32 *
** IPv6: Specify a value between 0 and 128 *
*
* If you specify an IP address for edns0clientsubnetip
, you can optionally specify the number of bits
* of the IP address that you want the checking tool to include in the DNS query. For example, if you specify
* 192.0.2.44
for edns0clientsubnetip
and 24
for
* edns0clientsubnetmask
, the checking tool will simulate a request from 192.0.2.0/24. The default
* value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
*
* The range of valid values depends on whether edns0clientsubnetip
is an IPv4 or an IPv6 address:
*
* IPv4: Specify a value between 0 and 32 *
** IPv6: Specify a value between 0 and 128 *
*edns0clientsubnetip
, you can optionally specify the number
* of bits of the IP address that you want the checking tool to include in the DNS query. For example, if you
* specify 192.0.2.44
for edns0clientsubnetip
and 24
for
* edns0clientsubnetmask
, the checking tool will simulate a request from 192.0.2.0/24. The
* default value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.
*
* The range of valid values depends on whether edns0clientsubnetip
is an IPv4 or an IPv6
* address:
*
* IPv4: Specify a value between 0 and 32 *
** IPv6: Specify a value between 0 and 128 *
*