@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTrafficPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A complex type that contains information about the traffic policy that you want to create.
NOOP
Constructor and Description |
---|
CreateTrafficPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTrafficPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getComment()
(Optional) 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)
(Optional) 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)
(Optional) 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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the traffic policy.
name
- The name of the traffic policy.public String getName()
The name of the traffic policy.
public CreateTrafficPolicyRequest withName(String name)
The name of the traffic policy.
name
- The name of the traffic policy.public void setDocument(String document)
The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.
document
- The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.public String getDocument()
The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.
public CreateTrafficPolicyRequest withDocument(String document)
The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.
document
- The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.public void setComment(String comment)
(Optional) Any comments that you want to include about the traffic policy.
comment
- (Optional) Any comments that you want to include about the traffic policy.public String getComment()
(Optional) Any comments that you want to include about the traffic policy.
public CreateTrafficPolicyRequest withComment(String comment)
(Optional) Any comments that you want to include about the traffic policy.
comment
- (Optional) Any comments that you want to include about the traffic policy.public String toString()
toString
in class Object
Object.toString()
public CreateTrafficPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.