public class CreateTrafficPolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateTrafficPolicyVersion operation
.
Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version.
You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).
To create a new version, send a POST
request to the
2013-04-01/trafficpolicy/
resource. The request body
includes an XML document with a
CreateTrafficPolicyVersionRequest
element. The response
returns the CreateTrafficPolicyVersionResponse
element,
which contains information about the new version of the traffic
policy.
NOOP
Constructor and Description |
---|
CreateTrafficPolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTrafficPolicyVersionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getComment()
Any comments that you want to include about the new traffic policy
version.
|
String |
getDocument()
The definition of a new traffic policy version, in JSON format.
|
String |
getId()
The ID of the traffic policy for which you want to create a new
version.
|
int |
hashCode() |
void |
setComment(String comment)
Any comments that you want to include about the new traffic policy
version.
|
void |
setDocument(String document)
The definition of a new traffic policy version, in JSON format.
|
void |
setId(String id)
The ID of the traffic policy for which you want to create a new
version.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTrafficPolicyVersionRequest |
withComment(String comment)
Any comments that you want to include about the new traffic policy
version.
|
CreateTrafficPolicyVersionRequest |
withDocument(String document)
The definition of a new traffic policy version, in JSON format.
|
CreateTrafficPolicyVersionRequest |
withId(String id)
The ID of the traffic policy for which you want to create a new
version.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getId()
Constraints:
Length: 0 - 36
public void setId(String id)
Constraints:
Length: 0 - 36
id
- The ID of the traffic policy for which you want to create a new
version.public CreateTrafficPolicyVersionRequest 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 for which you want to create a new
version.public String getDocument()
Constraints:
Length: 0 - 102400
public void setDocument(String document)
Constraints:
Length: 0 - 102400
document
- The definition of a new traffic policy version, in JSON format. You
must specify the full definition of the new traffic policy. You cannot
specify just the differences between the new version and a previous
version.public CreateTrafficPolicyVersionRequest withDocument(String document)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 102400
document
- The definition of a new traffic policy version, in JSON format. You
must specify the full definition of the new traffic policy. You cannot
specify just the differences between the new version and a previous
version.public String getComment()
Constraints:
Length: 0 - 1024
public void setComment(String comment)
Constraints:
Length: 0 - 1024
comment
- Any comments that you want to include about the new traffic policy
version.public CreateTrafficPolicyVersionRequest withComment(String comment)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
comment
- Any comments that you want to include about the new traffic policy
version.public String toString()
toString
in class Object
Object.toString()
public CreateTrafficPolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.