@Generated(value="software.amazon.awssdk:codegen") public final class RenewDomainRequest extends Route53DomainsRequest implements ToCopyableBuilder<RenewDomainRequest.Builder,RenewDomainRequest>
A RenewDomain
request includes the number of years that you want to renew for and the current expiration
year.
Modifier and Type | Class and Description |
---|---|
static interface |
RenewDomainRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static RenewDomainRequest.Builder |
builder() |
Integer |
currentExpiryYear()
The year when the registration for the domain is set to expire.
|
String |
domainName()
The name of the domain that you want to renew.
|
Integer |
durationInYears()
The number of years that you want to renew the domain for.
|
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() |
static Class<? extends RenewDomainRequest.Builder> |
serializableBuilderClass() |
RenewDomainRequest.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 domainName()
The name of the domain that you want to renew.
public Integer durationInYears()
The number of years that you want to renew the domain for. The maximum number of years depends on the top-level domain. For the range of valid values for your domain, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.
Default: 1
Default: 1
public Integer currentExpiryYear()
The year when the registration for the domain is set to expire. This value must match the current expiration date for the domain.
public RenewDomainRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RenewDomainRequest.Builder,RenewDomainRequest>
toBuilder
in class Route53DomainsRequest
public static RenewDomainRequest.Builder builder()
public static Class<? extends RenewDomainRequest.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.