public class CreateTrafficPolicyVersionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
A complex type that contains information about the traffic policy for which you want to create a new version.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
comment
Any comments that you want to include about the new traffic policy
version.
|
private java.lang.String |
document
The definition of a new traffic policy version, in JSON format.
|
private java.lang.String |
id
The ID of the traffic policy for which you want to create a new version.
|
NOOP
Constructor and Description |
---|
CreateTrafficPolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTrafficPolicyVersionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getComment()
Any comments that you want to include about the new traffic policy
version.
|
java.lang.String |
getDocument()
The definition of a new traffic policy version, in JSON format.
|
java.lang.String |
getId()
The ID of the traffic policy for which you want to create a new version.
|
int |
hashCode() |
void |
setComment(java.lang.String comment)
Any comments that you want to include about the new traffic policy
version.
|
void |
setDocument(java.lang.String document)
The definition of a new traffic policy version, in JSON format.
|
void |
setId(java.lang.String id)
The ID of the traffic policy for which you want to create a new version.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTrafficPolicyVersionRequest |
withComment(java.lang.String comment)
Any comments that you want to include about the new traffic policy
version.
|
CreateTrafficPolicyVersionRequest |
withDocument(java.lang.String document)
The definition of a new traffic policy version, in JSON format.
|
CreateTrafficPolicyVersionRequest |
withId(java.lang.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, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String id
The ID of the traffic policy for which you want to create a new version.
private java.lang.String 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.
private java.lang.String comment
Any comments that you want to include about the new traffic policy version.
public void setId(java.lang.String id)
The ID of the traffic policy for which you want to create a new version.
id
- The ID of the traffic policy for which you want to create a new
version.public java.lang.String getId()
The ID of the traffic policy for which you want to create a new version.
public CreateTrafficPolicyVersionRequest withId(java.lang.String id)
The ID of the traffic policy for which you want to create a new version.
id
- The ID of the traffic policy for which you want to create a new
version.public void setDocument(java.lang.String 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.
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 java.lang.String getDocument()
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(java.lang.String 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.
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 void setComment(java.lang.String comment)
Any comments that you want to include about the new traffic policy version.
comment
- Any comments that you want to include about the new traffic policy
version.public java.lang.String getComment()
Any comments that you want to include about the new traffic policy version.
public CreateTrafficPolicyVersionRequest withComment(java.lang.String comment)
Any comments that you want to include about the new traffic policy version.
comment
- Any comments that you want to include about the new traffic policy
version.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateTrafficPolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()