Class TrafficPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.route53.model.TrafficPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TrafficPolicy.Builder,TrafficPolicy>
@Generated("software.amazon.awssdk:codegen") public final class TrafficPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrafficPolicy.Builder,TrafficPolicy>
A complex type that contains settings for a traffic policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTrafficPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TrafficPolicy.Builderbuilder()Stringcomment()The comment that you specify in theCreateTrafficPolicyrequest, if any.Stringdocument()The definition of a traffic policy in JSON format.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The ID that Amazon Route 53 assigned to a traffic policy when you created it.Stringname()The name that you specified when you created the traffic policy.List<SdkField<?>>sdkFields()static Class<? extends TrafficPolicy.Builder>serializableBuilderClass()TrafficPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.RRTypetype()The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.StringtypeAsString()The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.Integerversion()The version number that Amazon Route 53 assigns to a traffic policy.-
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 a traffic policy when you created it.
- Returns:
- The ID that Amazon Route 53 assigned to a traffic policy when you created it.
-
version
public final Integer version()
The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of
Versionis always 1.- Returns:
- The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value
of
Versionis always 1.
-
name
public final String name()
The name that you specified when you created the traffic policy.
- Returns:
- The name that you specified when you created the traffic policy.
-
type
public final RRType type()
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
If the service returns an enum value that is not available in the current SDK version,
typewill returnRRType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
- See Also:
RRType
-
typeAsString
public final String typeAsString()
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
If the service returns an enum value that is not available in the current SDK version,
typewill returnRRType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a traffic policy instance.
- See Also:
RRType
-
document
public final String document()
The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic policy in the
CreateTrafficPolicyrequest. For more information about the JSON format, see Traffic Policy Document Format.- Returns:
- The definition of a traffic policy in JSON format. You specify the JSON document to use for a new traffic
policy in the
CreateTrafficPolicyrequest. For more information about the JSON format, see Traffic Policy Document Format.
-
comment
public final String comment()
The comment that you specify in the
CreateTrafficPolicyrequest, if any.- Returns:
- The comment that you specify in the
CreateTrafficPolicyrequest, if any.
-
toBuilder
public TrafficPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TrafficPolicy.Builder,TrafficPolicy>
-
builder
public static TrafficPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends TrafficPolicy.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.
-
-