Class CreateHostedZoneRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.route53.model.CreateHostedZoneRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateHostedZoneRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A complex type that contains information about the request to create a hosted zone.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateHostedZoneRequest()
Default constructor for CreateHostedZoneRequest object.CreateHostedZoneRequest(String name, String callerReference)
Constructs a new CreateHostedZoneRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateHostedZoneRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCallerReference()
A unique string that identifies the request and that allows failedCreateHostedZone
requests to be retried without the risk of executing the operation twice.String
getDelegationSetId()
The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.HostedZoneConfig
getHostedZoneConfig()
A complex type that contains an optional comment about your hosted zone.String
getName()
The name of the domain.VPC
getVPC()
The VPC that you want your hosted zone to be associated with.int
hashCode()
void
setCallerReference(String callerReference)
A unique string that identifies the request and that allows failedCreateHostedZone
requests to be retried without the risk of executing the operation twice.void
setDelegationSetId(String delegationSetId)
The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.void
setHostedZoneConfig(HostedZoneConfig hostedZoneConfig)
A complex type that contains an optional comment about your hosted zone.void
setName(String name)
The name of the domain.void
setVPC(VPC vPC)
The VPC that you want your hosted zone to be associated with.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateHostedZoneRequest
withCallerReference(String callerReference)
A unique string that identifies the request and that allows failedCreateHostedZone
requests to be retried without the risk of executing the operation twice.CreateHostedZoneRequest
withDelegationSetId(String delegationSetId)
The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.CreateHostedZoneRequest
withHostedZoneConfig(HostedZoneConfig hostedZoneConfig)
A complex type that contains an optional comment about your hosted zone.CreateHostedZoneRequest
withName(String name)
The name of the domain.CreateHostedZoneRequest
withVPC(VPC vPC)
The VPC that you want your hosted zone to be associated with.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
CreateHostedZoneRequest
public CreateHostedZoneRequest()
Default constructor for CreateHostedZoneRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
CreateHostedZoneRequest
public CreateHostedZoneRequest(String name, String callerReference)
Constructs a new CreateHostedZoneRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
name
- The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of
NameServers
elements returned inDelegationSet
.callerReference
- A unique string that identifies the request and that allows failedCreateHostedZone
requests to be retried without the risk of executing the operation twice. You must use a uniqueCallerReference
string every time you create a hosted zone.CallerReference
can be any unique string; you might choose to use a string that identifies your project, such asDNSMigration_01
.Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.
-
-
Method Detail
-
setName
public void setName(String name)
The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.
This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of
NameServers
elements returned inDelegationSet
.- Parameters:
name
- The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of
NameServers
elements returned inDelegationSet
.
-
getName
public String getName()
The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.
This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of
NameServers
elements returned inDelegationSet
.- Returns:
- The name of the domain. This must be a fully-specified domain,
for example, www.example.com. The trailing dot is optional;
Amazon Route 53 assumes that the domain name is fully qualified.
This means that Amazon Route 53 treats www.example.com (without a
trailing dot) and www.example.com. (with a trailing dot) as
identical.
This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of
NameServers
elements returned inDelegationSet
.
-
withName
public CreateHostedZoneRequest withName(String name)
The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.
This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of
NameServers
elements returned inDelegationSet
.- Parameters:
name
- The name of the domain. This must be a fully-specified domain, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Amazon Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.This is the name you have registered with your DNS registrar. You should ask your registrar to change the authoritative name servers for your domain to the set of
NameServers
elements returned inDelegationSet
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVPC
public void setVPC(VPC vPC)
The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.
- Parameters:
vPC
- The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.
-
getVPC
public VPC getVPC()
The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.
- Returns:
- The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.
-
withVPC
public CreateHostedZoneRequest withVPC(VPC vPC)
The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.
- Parameters:
vPC
- The VPC that you want your hosted zone to be associated with. By providing this parameter, your newly created hosted cannot be resolved anywhere other than the given VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCallerReference
public void setCallerReference(String callerReference)
A unique string that identifies the request and that allows failed
CreateHostedZone
requests to be retried without the risk of executing the operation twice. You must use a uniqueCallerReference
string every time you create a hosted zone.CallerReference
can be any unique string; you might choose to use a string that identifies your project, such asDNSMigration_01
.Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.
- Parameters:
callerReference
- A unique string that identifies the request and that allows failedCreateHostedZone
requests to be retried without the risk of executing the operation twice. You must use a uniqueCallerReference
string every time you create a hosted zone.CallerReference
can be any unique string; you might choose to use a string that identifies your project, such asDNSMigration_01
.Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.
-
getCallerReference
public String getCallerReference()
A unique string that identifies the request and that allows failed
CreateHostedZone
requests to be retried without the risk of executing the operation twice. You must use a uniqueCallerReference
string every time you create a hosted zone.CallerReference
can be any unique string; you might choose to use a string that identifies your project, such asDNSMigration_01
.Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.
- Returns:
- A unique string that identifies the request and that allows
failed
CreateHostedZone
requests to be retried without the risk of executing the operation twice. You must use a uniqueCallerReference
string every time you create a hosted zone.CallerReference
can be any unique string; you might choose to use a string that identifies your project, such asDNSMigration_01
.Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.
-
withCallerReference
public CreateHostedZoneRequest withCallerReference(String callerReference)
A unique string that identifies the request and that allows failed
CreateHostedZone
requests to be retried without the risk of executing the operation twice. You must use a uniqueCallerReference
string every time you create a hosted zone.CallerReference
can be any unique string; you might choose to use a string that identifies your project, such asDNSMigration_01
.Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.
- Parameters:
callerReference
- A unique string that identifies the request and that allows failedCreateHostedZone
requests to be retried without the risk of executing the operation twice. You must use a uniqueCallerReference
string every time you create a hosted zone.CallerReference
can be any unique string; you might choose to use a string that identifies your project, such asDNSMigration_01
.Valid characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHostedZoneConfig
public void setHostedZoneConfig(HostedZoneConfig hostedZoneConfig)
A complex type that contains an optional comment about your hosted zone.
- Parameters:
hostedZoneConfig
- A complex type that contains an optional comment about your hosted zone.
-
getHostedZoneConfig
public HostedZoneConfig getHostedZoneConfig()
A complex type that contains an optional comment about your hosted zone.
- Returns:
- A complex type that contains an optional comment about your hosted zone.
-
withHostedZoneConfig
public CreateHostedZoneRequest withHostedZoneConfig(HostedZoneConfig hostedZoneConfig)
A complex type that contains an optional comment about your hosted zone.
- Parameters:
hostedZoneConfig
- A complex type that contains an optional comment about your hosted zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDelegationSetId
public void setDelegationSetId(String delegationSetId)
The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.
- Parameters:
delegationSetId
- The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.
-
getDelegationSetId
public String getDelegationSetId()
The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.
- Returns:
- The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.
-
withDelegationSetId
public CreateHostedZoneRequest withDelegationSetId(String delegationSetId)
The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.
- Parameters:
delegationSetId
- The delegation set id of the reusable delgation set whose NS records you want to assign to the new hosted zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateHostedZoneRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-