public class CreateTrafficPolicyInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateTrafficPolicyInstance operation.
Creates resource record sets in a specified hosted zone based on the
settings in a specified traffic policy version. In addition,
CreateTrafficPolicyInstance associates the resource
record sets with a specified domain name (such as example.com) or
subdomain name (such as www.example.com). Amazon Route 53 responds to
DNS queries for the domain or subdomain name by using the resource
record sets that CreateTrafficPolicyInstance created.
To create a traffic policy instance, send a POST request
to the 2013-04-01/trafficpolicyinstance resource. The
request body must include an XML document with a
CreateTrafficPolicyRequest element. The response returns
the CreateTrafficPolicyInstanceResponse element, which
contains information about the traffic policy instance.
NOOP| Constructor and Description |
|---|
CreateTrafficPolicyInstanceRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateTrafficPolicyInstanceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getHostedZoneId()
The ID of the hosted zone in which you want Amazon Route 53 to create
resource record sets by using the configuration in a traffic policy.
|
String |
getName()
The domain name (such as example.com) or subdomain name (such as
www.example.com) for which Amazon Route 53 responds to DNS queries by
using the resource record sets that Amazon Route 53 creates for this
traffic policy instance.
|
String |
getTrafficPolicyId()
The ID of the traffic policy that you want to use to create resource
record sets in the specified hosted zone.
|
Integer |
getTrafficPolicyVersion()
The version of the traffic policy that you want to use to create
resource record sets in the specified hosted zone.
|
Long |
getTTL()
The TTL that you want Amazon Route 53 to assign to all of the resource
record sets that it creates in the specified hosted zone.
|
int |
hashCode() |
void |
setHostedZoneId(String hostedZoneId)
The ID of the hosted zone in which you want Amazon Route 53 to create
resource record sets by using the configuration in a traffic policy.
|
void |
setName(String name)
The domain name (such as example.com) or subdomain name (such as
www.example.com) for which Amazon Route 53 responds to DNS queries by
using the resource record sets that Amazon Route 53 creates for this
traffic policy instance.
|
void |
setTrafficPolicyId(String trafficPolicyId)
The ID of the traffic policy that you want to use to create resource
record sets in the specified hosted zone.
|
void |
setTrafficPolicyVersion(Integer trafficPolicyVersion)
The version of the traffic policy that you want to use to create
resource record sets in the specified hosted zone.
|
void |
setTTL(Long tTL)
The TTL that you want Amazon Route 53 to assign to all of the resource
record sets that it creates in the specified hosted zone.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTrafficPolicyInstanceRequest |
withHostedZoneId(String hostedZoneId)
The ID of the hosted zone in which you want Amazon Route 53 to create
resource record sets by using the configuration in a traffic policy.
|
CreateTrafficPolicyInstanceRequest |
withName(String name)
The domain name (such as example.com) or subdomain name (such as
www.example.com) for which Amazon Route 53 responds to DNS queries by
using the resource record sets that Amazon Route 53 creates for this
traffic policy instance.
|
CreateTrafficPolicyInstanceRequest |
withTrafficPolicyId(String trafficPolicyId)
The ID of the traffic policy that you want to use to create resource
record sets in the specified hosted zone.
|
CreateTrafficPolicyInstanceRequest |
withTrafficPolicyVersion(Integer trafficPolicyVersion)
The version of the traffic policy that you want to use to create
resource record sets in the specified hosted zone.
|
CreateTrafficPolicyInstanceRequest |
withTTL(Long tTL)
The TTL that you want Amazon Route 53 to assign to all of the resource
record sets that it creates in the specified hosted zone.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getHostedZoneId()
Constraints:
Length: 0 - 32
public void setHostedZoneId(String hostedZoneId)
Constraints:
Length: 0 - 32
hostedZoneId - The ID of the hosted zone in which you want Amazon Route 53 to create
resource record sets by using the configuration in a traffic policy.public CreateTrafficPolicyInstanceRequest withHostedZoneId(String hostedZoneId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32
hostedZoneId - The ID of the hosted zone in which you want Amazon Route 53 to create
resource record sets by using the configuration in a traffic policy.public String getName()
Constraints:
Length: 0 - 1024
public void setName(String name)
Constraints:
Length: 0 - 1024
name - The domain name (such as example.com) or subdomain name (such as
www.example.com) for which Amazon Route 53 responds to DNS queries by
using the resource record sets that Amazon Route 53 creates for this
traffic policy instance.public CreateTrafficPolicyInstanceRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
name - The domain name (such as example.com) or subdomain name (such as
www.example.com) for which Amazon Route 53 responds to DNS queries by
using the resource record sets that Amazon Route 53 creates for this
traffic policy instance.public Long getTTL()
Constraints:
Range: 0 - 2147483647
public void setTTL(Long tTL)
Constraints:
Range: 0 - 2147483647
tTL - The TTL that you want Amazon Route 53 to assign to all of the resource
record sets that it creates in the specified hosted zone.public CreateTrafficPolicyInstanceRequest withTTL(Long tTL)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 2147483647
tTL - The TTL that you want Amazon Route 53 to assign to all of the resource
record sets that it creates in the specified hosted zone.public String getTrafficPolicyId()
Constraints:
Length: 0 - 36
public void setTrafficPolicyId(String trafficPolicyId)
Constraints:
Length: 0 - 36
trafficPolicyId - The ID of the traffic policy that you want to use to create resource
record sets in the specified hosted zone.public CreateTrafficPolicyInstanceRequest withTrafficPolicyId(String trafficPolicyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 36
trafficPolicyId - The ID of the traffic policy that you want to use to create resource
record sets in the specified hosted zone.public Integer getTrafficPolicyVersion()
Constraints:
Range: 1 - 1000
public void setTrafficPolicyVersion(Integer trafficPolicyVersion)
Constraints:
Range: 1 - 1000
trafficPolicyVersion - The version of the traffic policy that you want to use to create
resource record sets in the specified hosted zone.public CreateTrafficPolicyInstanceRequest withTrafficPolicyVersion(Integer trafficPolicyVersion)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 1000
trafficPolicyVersion - The version of the traffic policy that you want to use to create
resource record sets in the specified hosted zone.public String toString()
toString in class ObjectObject.toString()public CreateTrafficPolicyInstanceRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.