Class TrafficPolicyInstance
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TrafficPolicyInstance.Builder,
TrafficPolicyInstance>
A complex type that contains settings for the new traffic policy instance.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
The ID of the hosted zone that Amazon Route 53 created resource record sets in.final String
id()
The ID that Amazon Route 53 assigned to the new traffic policy instance.final String
message()
IfState
isFailed
, an explanation of the reason for the failure.final 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> final String
state()
The value ofState
is one of the following values:Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.final RRType
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.final String
The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.final Integer
The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.final Long
ttl()
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID that Amazon Route 53 assigned to the new traffic policy instance.
- Returns:
- The ID that Amazon Route 53 assigned to the new traffic policy instance.
-
hostedZoneId
The ID of the hosted zone that Amazon Route 53 created resource record sets in.
- Returns:
- The ID of the hosted zone that Amazon Route 53 created resource record sets in.
-
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.
- Returns:
- 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.
-
ttl
The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
- Returns:
- The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
-
state
The value of
State
is one of the following values:- Applied
-
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Route 53 edge locations.
- Creating
-
Route 53 is creating the resource record sets. Use
GetTrafficPolicyInstance
to confirm that theCreateTrafficPolicyInstance
request completed successfully. - Failed
-
Route 53 wasn't able to create or update the resource record sets. When the value of
State
isFailed
, seeMessage
for an explanation of what caused the request to fail.
- Returns:
- The value of
State
is one of the following values:- Applied
-
Amazon Route 53 has finished creating resource record sets, and changes have propagated to all Route 53 edge locations.
- Creating
-
Route 53 is creating the resource record sets. Use
GetTrafficPolicyInstance
to confirm that theCreateTrafficPolicyInstance
request completed successfully. - Failed
-
Route 53 wasn't able to create or update the resource record sets. When the value of
State
isFailed
, seeMessage
for an explanation of what caused the request to fail.
-
message
If
State
isFailed
, an explanation of the reason for the failure. IfState
is another value,Message
is empty.- Returns:
- If
State
isFailed
, an explanation of the reason for the failure. IfState
is another value,Message
is empty.
-
trafficPolicyId
The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
- Returns:
- The ID 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.
- Returns:
- The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.
-
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 returnRRType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtrafficPolicyTypeAsString()
.- Returns:
- The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
- See Also:
-
trafficPolicyTypeAsString
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 returnRRType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtrafficPolicyTypeAsString()
.- Returns:
- The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<TrafficPolicyInstance.Builder,
TrafficPolicyInstance> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-