public class CreateTrafficPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateTrafficPolicy operation.
Creates a traffic policy, which you use 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 traffic policy, send a POST request to the
2013-04-01/trafficpolicy resource. The request body must
include an XML document with a CreateTrafficPolicyRequest
element. The response includes the
CreateTrafficPolicyResponse element, which contains
information about the new traffic policy.
NOOP| Constructor and Description |
|---|
CreateTrafficPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateTrafficPolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getComment()
Any comments that you want to include about the traffic policy.
|
String |
getDocument()
The definition of this traffic policy in JSON format.
|
String |
getName()
The name of the traffic policy.
|
int |
hashCode() |
void |
setComment(String comment)
Any comments that you want to include about the traffic policy.
|
void |
setDocument(String document)
The definition of this traffic policy in JSON format.
|
void |
setName(String name)
The name of the traffic policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTrafficPolicyRequest |
withComment(String comment)
Any comments that you want to include about the traffic policy.
|
CreateTrafficPolicyRequest |
withDocument(String document)
The definition of this traffic policy in JSON format.
|
CreateTrafficPolicyRequest |
withName(String name)
The name of the traffic policy.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getName()
Constraints:
Length: 0 - 512
public void setName(String name)
Constraints:
Length: 0 - 512
name - The name of the traffic policy.public CreateTrafficPolicyRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 512
name - The name of the traffic policy.public String getDocument()
Constraints:
Length: 0 - 102400
public void setDocument(String document)
Constraints:
Length: 0 - 102400
document - The definition of this traffic policy in JSON format.public CreateTrafficPolicyRequest 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 this traffic policy in JSON format.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 traffic policy.public CreateTrafficPolicyRequest 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 traffic policy.public String toString()
toString in class ObjectObject.toString()public CreateTrafficPolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.