@Generated(value="software.amazon.awssdk:codegen") public final class TrafficPolicy extends Object implements ToCopyableBuilder<TrafficPolicy.Builder,TrafficPolicy>
A complex type that contains settings for a traffic policy.
Modifier and Type | Class and Description |
---|---|
static interface |
TrafficPolicy.Builder |
Modifier and Type | Method and Description |
---|---|
static TrafficPolicy.Builder |
builder() |
String |
comment()
The comment that you specify in the
CreateTrafficPolicy request, if any. |
String |
document()
The definition of a traffic policy in JSON format.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID that Amazon Route 53 assigned to a traffic policy when you created it.
|
String |
name()
The name that you specified when you created the traffic policy.
|
static Class<? extends TrafficPolicy.Builder> |
serializableBuilderClass() |
TrafficPolicy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
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.
|
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.
|
Integer |
version()
The version number that Amazon Route 53 assigns to a traffic policy.
|
copy
public String id()
The ID that Amazon Route 53 assigned to a traffic policy when you created it.
public Integer version()
The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic policy, the value of
Version
is always 1.
Version
is always 1.public String name()
The name that you specified when you created the traffic policy.
public 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, type
will return
RRType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
RRType
public 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, type
will return
RRType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
RRType
public 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 CreateTrafficPolicy
request. For more information about the JSON format, see Traffic Policy Document Format.
CreateTrafficPolicy
request. For more information about the JSON format, see
Traffic Policy Document Format.public String comment()
The comment that you specify in the CreateTrafficPolicy
request, if any.
CreateTrafficPolicy
request, if any.public TrafficPolicy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TrafficPolicy.Builder,TrafficPolicy>
public static TrafficPolicy.Builder builder()
public static Class<? extends TrafficPolicy.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.