public class UpdateTrafficPolicyInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UpdateTrafficPolicyInstance operation.
Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.
IMPORTANT:The DNS type of the resource record sets that you're updating must match the DNS type in the JSON document that is associated with the traffic policy version that you're using to update the traffic policy instance.
When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Amazon Route 53 performs the following operations:
To update a traffic policy instance, send a POST request
to the /2013-04-01/trafficpolicyinstance/traffic policy ID
resource. The request body must include an XML document with
an UpdateTrafficPolicyInstanceRequest element.
NOOP| Constructor and Description |
|---|
UpdateTrafficPolicyInstanceRequest() |
| Modifier and Type | Method and Description |
|---|---|
UpdateTrafficPolicyInstanceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID of the traffic policy instance that you want to update.
|
String |
getTrafficPolicyId()
The ID of the traffic policy that you want Amazon Route 53 to use to
update resource record sets for the specified traffic policy instance.
|
Integer |
getTrafficPolicyVersion()
The version of the traffic policy that you want Amazon Route 53 to use
to update resource record sets for the specified traffic policy
instance.
|
Long |
getTTL()
The TTL that you want Amazon Route 53 to assign to all of the updated
resource record sets.
|
int |
hashCode() |
void |
setId(String id)
The ID of the traffic policy instance that you want to update.
|
void |
setTrafficPolicyId(String trafficPolicyId)
The ID of the traffic policy that you want Amazon Route 53 to use to
update resource record sets for the specified traffic policy instance.
|
void |
setTrafficPolicyVersion(Integer trafficPolicyVersion)
The version of the traffic policy that you want Amazon Route 53 to use
to update resource record sets for the specified traffic policy
instance.
|
void |
setTTL(Long tTL)
The TTL that you want Amazon Route 53 to assign to all of the updated
resource record sets.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateTrafficPolicyInstanceRequest |
withId(String id)
The ID of the traffic policy instance that you want to update.
|
UpdateTrafficPolicyInstanceRequest |
withTrafficPolicyId(String trafficPolicyId)
The ID of the traffic policy that you want Amazon Route 53 to use to
update resource record sets for the specified traffic policy instance.
|
UpdateTrafficPolicyInstanceRequest |
withTrafficPolicyVersion(Integer trafficPolicyVersion)
The version of the traffic policy that you want Amazon Route 53 to use
to update resource record sets for the specified traffic policy
instance.
|
UpdateTrafficPolicyInstanceRequest |
withTTL(Long tTL)
The TTL that you want Amazon Route 53 to assign to all of the updated
resource record sets.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getId()
Constraints:
Length: 0 - 36
public void setId(String id)
Constraints:
Length: 0 - 36
id - The ID of the traffic policy instance that you want to update.public UpdateTrafficPolicyInstanceRequest withId(String id)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 36
id - The ID of the traffic policy instance that you want to update.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 updated
resource record sets.public UpdateTrafficPolicyInstanceRequest 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 updated
resource record sets.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 Amazon Route 53 to use to
update resource record sets for the specified traffic policy instance.public UpdateTrafficPolicyInstanceRequest 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 Amazon Route 53 to use to
update resource record sets for the specified traffic policy instance.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 Amazon Route 53 to use
to update resource record sets for the specified traffic policy
instance.public UpdateTrafficPolicyInstanceRequest 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 Amazon Route 53 to use
to update resource record sets for the specified traffic policy
instance.public String toString()
toString in class ObjectObject.toString()public UpdateTrafficPolicyInstanceRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.