@Generated(value="software.amazon.awssdk:codegen") public class TrafficPolicyInstance extends Object implements ToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance>
A complex type that contains settings for the new traffic policy instance.
Modifier and Type | Class and Description |
---|---|
static interface |
TrafficPolicyInstance.Builder |
Modifier and Type | Method and Description |
---|---|
static TrafficPolicyInstance.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
hostedZoneId()
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
|
String |
id()
The ID that Amazon Route 53 assigned to the new traffic policy instance.
|
String |
message()
If
State is Failed , an explanation of the reason for the failure. |
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.
|
static Class<? extends TrafficPolicyInstance.Builder> |
serializableBuilderClass() |
String |
state()
The value of
State is one of the following values: |
TrafficPolicyInstance.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
trafficPolicyId()
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted
zone.
|
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.
|
String |
trafficPolicyTypeString()
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic
policy instance.
|
Integer |
trafficPolicyVersion()
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified
hosted zone.
|
Long |
ttl()
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted
zone.
|
copy
public String id()
The ID that Amazon Route 53 assigned to the new traffic policy instance.
public String hostedZoneId()
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
public 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.
public 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 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
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 message()
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 String trafficPolicyId()
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
public Integer trafficPolicyVersion()
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
public 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.
If the service returns an enum value that is not available in the current SDK version, trafficPolicyType
will return RRType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
trafficPolicyTypeString()
.
RRType
public String trafficPolicyTypeString()
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
If the service returns an enum value that is not available in the current SDK version, trafficPolicyType
will return RRType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
trafficPolicyTypeString()
.
RRType
public TrafficPolicyInstance.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance>
public static TrafficPolicyInstance.Builder builder()
public static Class<? extends TrafficPolicyInstance.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.