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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(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 inthashCode()final StringThe ID of the hosted zone that Amazon Route 53 created resource record sets in.final Stringid()The ID that Amazon Route 53 assigned to the new traffic policy instance.final Stringmessage()IfStateisFailed, an explanation of the reason for the failure.final Stringname()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 Stringstate()The value ofStateis one of the following values:Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.final RRTypeThe DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.final StringThe DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.final IntegerThe version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.final Longttl()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
Stateis 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
GetTrafficPolicyInstanceto confirm that theCreateTrafficPolicyInstancerequest completed successfully. - Failed
-
Route 53 wasn't able to create or update the resource record sets. When the value of
StateisFailed, seeMessagefor an explanation of what caused the request to fail.
- Returns:
- The value of
Stateis 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
GetTrafficPolicyInstanceto confirm that theCreateTrafficPolicyInstancerequest completed successfully. - Failed
-
Route 53 wasn't able to create or update the resource record sets. When the value of
StateisFailed, seeMessagefor an explanation of what caused the request to fail.
-
message
If
StateisFailed, an explanation of the reason for the failure. IfStateis another value,Messageis empty.- Returns:
- If
StateisFailed, an explanation of the reason for the failure. IfStateis another value,Messageis 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,
trafficPolicyTypewill 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,
trafficPolicyTypewill 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-