Class TrafficPolicyInstance
- java.lang.Object
-
- software.amazon.awssdk.services.route53.model.TrafficPolicyInstance
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance>
@Generated("software.amazon.awssdk:codegen") public final class TrafficPolicyInstance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance>
A complex type that contains settings for the new traffic policy instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTrafficPolicyInstance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrafficPolicyInstance.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhostedZoneId()The ID of the hosted zone that Amazon Route 53 created resource record sets in.Stringid()The ID that Amazon Route 53 assigned to the new traffic policy instance.Stringmessage()IfStateisFailed, an explanation of the reason for the failure.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.List<SdkField<?>>sdkFields()static Class<? extends TrafficPolicyInstance.Builder>serializableBuilderClass()Stringstate()The value ofStateis one of the following values:TrafficPolicyInstance.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringtrafficPolicyId()The ID of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.RRTypetrafficPolicyType()The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.StringtrafficPolicyTypeAsString()The DNS type that Amazon Route 53 assigned to all of the resource record sets that it created for this traffic policy instance.IntegertrafficPolicyVersion()The version of the traffic policy that Amazon Route 53 used to create resource record sets in the specified hosted zone.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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final String 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
public final String 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
public 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.
- 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
public 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.
- Returns:
- The TTL that Amazon Route 53 assigned to all of the resource record sets that it created in the specified hosted zone.
-
state
public final String 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
public final String 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
public final String 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
public final Integer 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
public final 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,
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:
RRType
-
trafficPolicyTypeAsString
public final String 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:
RRType
-
toBuilder
public TrafficPolicyInstance.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TrafficPolicyInstance.Builder,TrafficPolicyInstance>
-
builder
public static TrafficPolicyInstance.Builder builder()
-
serializableBuilderClass
public static Class<? extends TrafficPolicyInstance.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
-