@Generated(value="software.amazon.awssdk:codegen") public final class CreateTrafficPolicyVersionRequest extends Route53Request implements ToCopyableBuilder<CreateTrafficPolicyVersionRequest.Builder,CreateTrafficPolicyVersionRequest>
A complex type that contains information about the traffic policy that you want to create a new version for.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateTrafficPolicyVersionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateTrafficPolicyVersionRequest.Builder |
builder() |
String |
comment()
The comment that you specified in the
CreateTrafficPolicyVersion request, if any. |
String |
document()
The definition of this version of the traffic policy, in JSON format.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
id()
The ID of the traffic policy for which you want to create a new version.
|
static Class<? extends CreateTrafficPolicyVersionRequest.Builder> |
serializableBuilderClass() |
CreateTrafficPolicyVersionRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String id()
The ID of the traffic policy for which you want to create a new version.
public String document()
The definition of this version of the traffic policy, in JSON format. You specified the JSON in the
CreateTrafficPolicyVersion
request. For more information about the JSON format, see
CreateTrafficPolicy.
CreateTrafficPolicyVersion
request. For more information about the JSON format, see
CreateTrafficPolicy.public String comment()
The comment that you specified in the CreateTrafficPolicyVersion
request, if any.
CreateTrafficPolicyVersion
request, if any.public CreateTrafficPolicyVersionRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateTrafficPolicyVersionRequest.Builder,CreateTrafficPolicyVersionRequest>
toBuilder
in class Route53Request
public static CreateTrafficPolicyVersionRequest.Builder builder()
public static Class<? extends CreateTrafficPolicyVersionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.