@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficPolicyInstance extends Object implements Serializable, Cloneable
A complex type that contains settings for the new traffic policy instance.
Constructor and Description |
---|
TrafficPolicyInstance() |
Modifier and Type | Method and Description |
---|---|
TrafficPolicyInstance |
clone() |
boolean |
equals(Object obj) |
String |
getHostedZoneId()
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
|
String |
getId()
The ID that Amazon Route 53 assigned to the new traffic policy instance.
|
String |
getMessage()
If
State is Failed , an explanation of the reason for the failure. |
String |
getName()
The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record
sets that are associated with this traffic policy instance.
|
String |
getState()
The value of
State is one of the following values: |
String |
getTrafficPolicyId()
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted
zone.
|
String |
getTrafficPolicyType()
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic
policy instance.
|
Integer |
getTrafficPolicyVersion()
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified
hosted zone.
|
Long |
getTTL()
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted
zone.
|
int |
hashCode() |
void |
setHostedZoneId(String hostedZoneId)
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
|
void |
setId(String id)
The ID that Amazon Route 53 assigned to the new traffic policy instance.
|
void |
setMessage(String message)
If
State is Failed , an explanation of the reason for the failure. |
void |
setName(String name)
The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record
sets that are associated with this traffic policy instance.
|
void |
setState(String state)
The value of
State is one of the following values: |
void |
setTrafficPolicyId(String trafficPolicyId)
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted
zone.
|
void |
setTrafficPolicyType(RRType trafficPolicyType)
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic
policy instance.
|
void |
setTrafficPolicyType(String trafficPolicyType)
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic
policy instance.
|
void |
setTrafficPolicyVersion(Integer trafficPolicyVersion)
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified
hosted zone.
|
void |
setTTL(Long tTL)
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted
zone.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TrafficPolicyInstance |
withHostedZoneId(String hostedZoneId)
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
|
TrafficPolicyInstance |
withId(String id)
The ID that Amazon Route 53 assigned to the new traffic policy instance.
|
TrafficPolicyInstance |
withMessage(String message)
If
State is Failed , an explanation of the reason for the failure. |
TrafficPolicyInstance |
withName(String name)
The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record
sets that are associated with this traffic policy instance.
|
TrafficPolicyInstance |
withState(String state)
The value of
State is one of the following values: |
TrafficPolicyInstance |
withTrafficPolicyId(String trafficPolicyId)
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted
zone.
|
TrafficPolicyInstance |
withTrafficPolicyType(RRType trafficPolicyType)
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic
policy instance.
|
TrafficPolicyInstance |
withTrafficPolicyType(String trafficPolicyType)
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic
policy instance.
|
TrafficPolicyInstance |
withTrafficPolicyVersion(Integer trafficPolicyVersion)
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified
hosted zone.
|
TrafficPolicyInstance |
withTTL(Long tTL)
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted
zone.
|
public void setId(String id)
The ID that Amazon Route 53 assigned to the new traffic policy instance.
id
- The ID that Amazon Route 53 assigned to the new traffic policy instance.public String getId()
The ID that Amazon Route 53 assigned to the new traffic policy instance.
public TrafficPolicyInstance withId(String id)
The ID that Amazon Route 53 assigned to the new traffic policy instance.
id
- The ID that Amazon Route 53 assigned to the new traffic policy instance.public void setHostedZoneId(String hostedZoneId)
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
hostedZoneId
- The ID of the hosted zone that Amazon Route 53 created resource record sets in.public String getHostedZoneId()
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
public TrafficPolicyInstance withHostedZoneId(String hostedZoneId)
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
hostedZoneId
- The ID of the hosted zone that Amazon Route 53 created resource record sets in.public void setName(String name)
The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.
name
- The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource
record sets that are associated with this traffic policy instance.public String getName()
The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.
public TrafficPolicyInstance withName(String name)
The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource record sets that are associated with this traffic policy instance.
name
- The DNS name, such as www.example.com, for which Amazon Route 53 responds to queries by using the resource
record sets that are associated with this traffic policy instance.public void setTTL(Long tTL)
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
tTL
- The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified
hosted zone.public Long getTTL()
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
public TrafficPolicyInstance withTTL(Long tTL)
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
tTL
- The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified
hosted zone.public void setState(String state)
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Amazon Route 53 edge locations.
Amazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance
to confirm that
the CreateTrafficPolicyInstance
request completed successfully.
Amazon Route 53 wasn't able to create or update the resource record sets. When the value of State
is
Failed
, see Message
for an explanation of what caused the request to fail.
state
- The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Amazon Route 53 edge locations.
Amazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance
to confirm
that the CreateTrafficPolicyInstance
request completed successfully.
Amazon Route 53 wasn't able to create or update the resource record sets. When the value of
State
is Failed
, see Message
for an explanation of what caused the
request to fail.
public String getState()
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Amazon Route 53 edge locations.
Amazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance
to confirm that
the CreateTrafficPolicyInstance
request completed successfully.
Amazon Route 53 wasn't able to create or update the resource record sets. When the value of State
is
Failed
, see Message
for an explanation of what caused the request to fail.
State
is one of the following values:
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Amazon Route 53 edge locations.
Amazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance
to
confirm that the CreateTrafficPolicyInstance
request completed successfully.
Amazon Route 53 wasn't able to create or update the resource record sets. When the value of
State
is Failed
, see Message
for an explanation of what caused the
request to fail.
public TrafficPolicyInstance withState(String state)
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Amazon Route 53 edge locations.
Amazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance
to confirm that
the CreateTrafficPolicyInstance
request completed successfully.
Amazon Route 53 wasn't able to create or update the resource record sets. When the value of State
is
Failed
, see Message
for an explanation of what caused the request to fail.
state
- The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Amazon Route 53 edge locations.
Amazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance
to confirm
that the CreateTrafficPolicyInstance
request completed successfully.
Amazon Route 53 wasn't able to create or update the resource record sets. When the value of
State
is Failed
, see Message
for an explanation of what caused the
request to fail.
public void setMessage(String message)
If State
is Failed
, an explanation of the reason for the failure. If State
is another value, Message
is empty.
message
- If State
is Failed
, an explanation of the reason for the failure. If
State
is another value, Message
is empty.public String getMessage()
If State
is Failed
, an explanation of the reason for the failure. If State
is another value, Message
is empty.
State
is Failed
, an explanation of the reason for the failure. If
State
is another value, Message
is empty.public TrafficPolicyInstance withMessage(String message)
If State
is Failed
, an explanation of the reason for the failure. If State
is another value, Message
is empty.
message
- If State
is Failed
, an explanation of the reason for the failure. If
State
is another value, Message
is empty.public void setTrafficPolicyId(String trafficPolicyId)
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
trafficPolicyId
- The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified
hosted zone.public String getTrafficPolicyId()
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
public TrafficPolicyInstance withTrafficPolicyId(String trafficPolicyId)
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
trafficPolicyId
- The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified
hosted zone.public void setTrafficPolicyVersion(Integer trafficPolicyVersion)
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
trafficPolicyVersion
- The version of the traffic policy that Amazon Route 53 used to create resource record sets in the
specified hosted zone.public Integer getTrafficPolicyVersion()
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
public TrafficPolicyInstance withTrafficPolicyVersion(Integer trafficPolicyVersion)
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
trafficPolicyVersion
- The version of the traffic policy that Amazon Route 53 used to create resource record sets in the
specified hosted zone.public void setTrafficPolicyType(String trafficPolicyType)
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
trafficPolicyType
- The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this
traffic policy instance.RRType
public String getTrafficPolicyType()
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
RRType
public TrafficPolicyInstance withTrafficPolicyType(String trafficPolicyType)
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
trafficPolicyType
- The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this
traffic policy instance.RRType
public void setTrafficPolicyType(RRType trafficPolicyType)
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
trafficPolicyType
- The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this
traffic policy instance.RRType
public TrafficPolicyInstance withTrafficPolicyType(RRType trafficPolicyType)
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
trafficPolicyType
- The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this
traffic policy instance.RRType
public String toString()
toString
in class Object
Object.toString()
public TrafficPolicyInstance clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.