Class CreateTrafficPolicyVersionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.route53.model.CreateTrafficPolicyVersionRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateTrafficPolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A complex type that contains information about the traffic policy for which you want to create a new version.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateTrafficPolicyVersionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setId
public void setId(String id)
The ID of the traffic policy for which you want to create a new version.
- Parameters:
id
- The ID of the traffic policy for which you want to create a new version.
-
getId
public String getId()
The ID of the traffic policy for which you want to create a new version.
- Returns:
- The ID of the traffic policy for which you want to create a new version.
-
withId
public CreateTrafficPolicyVersionRequest withId(String id)
The ID of the traffic policy for which you want to create a new version.
- Parameters:
id
- The ID of the traffic policy for which you want to create a new version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDocument
public void setDocument(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.
- Parameters:
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.
-
getDocument
public 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.
- Returns:
- 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.
-
withDocument
public CreateTrafficPolicyVersionRequest withDocument(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setComment
public void setComment(String comment)
Any comments that you want to include about the new traffic policy version.
- Parameters:
comment
- Any comments that you want to include about the new traffic policy version.
-
getComment
public String getComment()
Any comments that you want to include about the new traffic policy version.
- Returns:
- Any comments that you want to include about the new traffic policy version.
-
withComment
public CreateTrafficPolicyVersionRequest withComment(String comment)
Any comments that you want to include about the new traffic policy version.
- Parameters:
comment
- Any comments that you want to include about the new traffic policy version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateTrafficPolicyVersionRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-