@Generated(value="software.amazon.awssdk:codegen") public final class CreateServiceRequest extends ServiceDiscoveryRequest implements ToCopyableBuilder<CreateServiceRequest.Builder,CreateServiceRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateServiceRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateServiceRequest.Builder |
builder() |
String |
creatorRequestId()
An optional parameter that you can use to resolve concurrent creation requests.
|
String |
description()
A description for the service.
|
DnsConfig |
dnsConfig()
A complex type that contains information about the resource record sets that you want Amazon Route 53 to create
when you register an instance.
|
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() |
HealthCheckConfig |
healthCheckConfig()
Public DNS namespaces only. A complex type that contains settings for an optional health check.
|
String |
name()
The name that you want to assign to the service.
|
static Class<? extends CreateServiceRequest.Builder> |
serializableBuilderClass() |
CreateServiceRequest.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 name()
The name that you want to assign to the service.
public String creatorRequestId()
An optional parameter that you can use to resolve concurrent creation requests. CreatorRequestId
helps to determine if a specific client owns the namespace.
CreatorRequestId
helps to determine if a specific client owns the namespace.public String description()
A description for the service.
public DnsConfig dnsConfig()
A complex type that contains information about the resource record sets that you want Amazon Route 53 to create when you register an instance.
public HealthCheckConfig healthCheckConfig()
Public DNS namespaces only. A complex type that contains settings for an optional health check. If you
specify settings for a health check, Amazon Route 53 associates the health check with all the resource record
sets that you specify in DnsConfig
.
The health check uses 30 seconds as the request interval. This is the number of seconds between the time that each Amazon Route 53 health checker gets a response from your endpoint and the time that it sends the next health check request. A health checker in each data center around the world sends your endpoint a health check request every 30 seconds. On average, your endpoint receives a health check request about every two seconds. Health checkers in different data centers don't coordinate with one another, so you'll sometimes see several requests per second followed by a few seconds with no health checks at all.
For information about the charges for health checks, see Amazon Route 53 Pricing.
DnsConfig
. The health check uses 30 seconds as the request interval. This is the number of seconds between the time that each Amazon Route 53 health checker gets a response from your endpoint and the time that it sends the next health check request. A health checker in each data center around the world sends your endpoint a health check request every 30 seconds. On average, your endpoint receives a health check request about every two seconds. Health checkers in different data centers don't coordinate with one another, so you'll sometimes see several requests per second followed by a few seconds with no health checks at all.
For information about the charges for health checks, see Amazon Route 53 Pricing.
public CreateServiceRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateServiceRequest.Builder,CreateServiceRequest>
toBuilder
in class ServiceDiscoveryRequest
public static CreateServiceRequest.Builder builder()
public static Class<? extends CreateServiceRequest.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.