public class GetTrafficPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Gets information about a specific traffic policy version. To get the information, send a GET request to the /Route 53 API version/trafficpolicy resource, and specify the ID and the version of the traffic policy.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id
The ID of the traffic policy that you want to get information about.
|
private java.lang.Integer |
version
The version number of the traffic policy that you want to get information
about.
|
NOOP
Constructor and Description |
---|
GetTrafficPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
GetTrafficPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
The ID of the traffic policy that you want to get information about.
|
java.lang.Integer |
getVersion()
The version number of the traffic policy that you want to get information
about.
|
int |
hashCode() |
void |
setId(java.lang.String id)
The ID of the traffic policy that you want to get information about.
|
void |
setVersion(java.lang.Integer version)
The version number of the traffic policy that you want to get information
about.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetTrafficPolicyRequest |
withId(java.lang.String id)
The ID of the traffic policy that you want to get information about.
|
GetTrafficPolicyRequest |
withVersion(java.lang.Integer version)
The version number of the traffic policy that you want to get information
about.
|
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 that you want to get information about.
private java.lang.Integer version
The version number of the traffic policy that you want to get information about.
public void setId(java.lang.String id)
The ID of the traffic policy that you want to get information about.
id
- The ID of the traffic policy that you want to get information
about.public java.lang.String getId()
The ID of the traffic policy that you want to get information about.
public GetTrafficPolicyRequest withId(java.lang.String id)
The ID of the traffic policy that you want to get information about.
id
- The ID of the traffic policy that you want to get information
about.public void setVersion(java.lang.Integer version)
The version number of the traffic policy that you want to get information about.
version
- The version number of the traffic policy that you want to get
information about.public java.lang.Integer getVersion()
The version number of the traffic policy that you want to get information about.
public GetTrafficPolicyRequest withVersion(java.lang.Integer version)
The version number of the traffic policy that you want to get information about.
version
- The version number of the traffic policy that you want to get
information about.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 GetTrafficPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()