@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficPolicy extends Object implements Serializable, Cloneable
A complex type that contains settings for a traffic policy.
| Constructor and Description |
|---|
TrafficPolicy() |
| Modifier and Type | Method and Description |
|---|---|
TrafficPolicy |
clone() |
boolean |
equals(Object obj) |
String |
getComment()
The comment that you specify in the
CreateTrafficPolicy request, if any. |
String |
getDocument()
The definition of a traffic policy in JSON format.
|
String |
getId()
The ID that Amazon Route 53 assigned to a traffic policy when you created it.
|
String |
getName()
The name that you specified when you created the traffic policy.
|
String |
getType()
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a
traffic policy instance.
|
Integer |
getVersion()
The version number that Amazon Route 53 assigns to a traffic policy.
|
int |
hashCode() |
void |
setComment(String comment)
The comment that you specify in the
CreateTrafficPolicy request, if any. |
void |
setDocument(String document)
The definition of a traffic policy in JSON format.
|
void |
setId(String id)
The ID that Amazon Route 53 assigned to a traffic policy when you created it.
|
void |
setName(String name)
The name that you specified when you created the traffic policy.
|
void |
setType(RRType type)
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a
traffic policy instance.
|
void |
setType(String type)
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a
traffic policy instance.
|
void |
setVersion(Integer version)
The version number that Amazon Route 53 assigns to a traffic policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TrafficPolicy |
withComment(String comment)
The comment that you specify in the
CreateTrafficPolicy request, if any. |
TrafficPolicy |
withDocument(String document)
The definition of a traffic policy in JSON format.
|
TrafficPolicy |
withId(String id)
The ID that Amazon Route 53 assigned to a traffic policy when you created it.
|
TrafficPolicy |
withName(String name)
The name that you specified when you created the traffic policy.
|
TrafficPolicy |
withType(RRType type)
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a
traffic policy instance.
|
TrafficPolicy |
withType(String type)
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a
traffic policy instance.
|
TrafficPolicy |
withVersion(Integer version)
The version number that Amazon Route 53 assigns to a traffic policy.
|
public void setId(String id)
The ID that Amazon Route 53 assigned to a traffic policy when you created it.
id - The ID that Amazon Route 53 assigned to a traffic policy when you created it.public String getId()
The ID that Amazon Route 53 assigned to a traffic policy when you created it.
public TrafficPolicy withId(String id)
The ID that Amazon Route 53 assigned to a traffic policy when you created it.
id - The ID that Amazon Route 53 assigned to a traffic policy when you created it.public void setVersion(Integer version)
The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of
Version is always 1.
version - The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value
of Version is always 1.public Integer getVersion()
The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of
Version is always 1.
Version is always 1.public TrafficPolicy withVersion(Integer version)
The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of
Version is always 1.
version - The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value
of Version is always 1.public void setName(String name)
The name that you specified when you created the traffic policy.
name - The name that you specified when you created the traffic policy.public String getName()
The name that you specified when you created the traffic policy.
public TrafficPolicy withName(String name)
The name that you specified when you created the traffic policy.
name - The name that you specified when you created the traffic policy.public void setType(String type)
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
type - The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to
create a traffic policy instance.RRTypepublic String getType()
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
RRTypepublic TrafficPolicy withType(String type)
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
type - The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to
create a traffic policy instance.RRTypepublic void setType(RRType type)
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
type - The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to
create a traffic policy instance.RRTypepublic TrafficPolicy withType(RRType type)
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
type - The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to
create a traffic policy instance.RRTypepublic void setDocument(String document)
The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy
in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.
document - The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic
policy in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.public String getDocument()
The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy
in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.
CreateTrafficPolicy request. For more information about the JSON format, see
Traffic Policy Document Format.public TrafficPolicy withDocument(String document)
The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy
in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.
document - The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic
policy in the CreateTrafficPolicy request. For more information about the JSON format, see Traffic Policy Document Format.public void setComment(String comment)
The comment that you specify in the CreateTrafficPolicy request, if any.
comment - The comment that you specify in the CreateTrafficPolicy request, if any.public String getComment()
The comment that you specify in the CreateTrafficPolicy request, if any.
CreateTrafficPolicy request, if any.public TrafficPolicy withComment(String comment)
The comment that you specify in the CreateTrafficPolicy request, if any.
comment - The comment that you specify in the CreateTrafficPolicy request, if any.public String toString()
toString in class ObjectObject.toString()public TrafficPolicy clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.