@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()
A unique string that identifies the request and that allows failed
CreateService requests to be
retried without the risk of executing the operation twice. |
String |
description()
A description for the service.
|
DnsConfig |
dnsConfig()
A complex type that contains information about the Amazon Route 53 records that you want AWS Cloud Map 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 Route 53 health check.
|
HealthCheckCustomConfig |
healthCheckCustomConfig()
A complex type that contains information about an optional custom health check.
|
String |
name()
The name that you want to assign to the service.
|
String |
namespaceId()
The ID of the namespace that you want to use to create the service.
|
List<SdkField<?>> |
sdkFields() |
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 namespaceId()
The ID of the namespace that you want to use to create the service.
public String creatorRequestId()
A unique string that identifies the request and that allows failed CreateService
requests to be
retried without the risk of executing the operation twice. CreatorRequestId
can be any unique
string, for example, a date/time stamp.
CreateService
requests to
be retried without the risk of executing the operation twice. CreatorRequestId
can be any
unique string, for example, a date/time stamp.public String description()
A description for the service.
public DnsConfig dnsConfig()
A complex type that contains information about the Amazon Route 53 records that you want AWS Cloud Map to create when you register an instance.
public HealthCheckConfig healthCheckConfig()
Public DNS namespaces only. A complex type that contains settings for an optional Route 53 health check.
If you specify settings for a health check, AWS Cloud Map associates the health check with all the Route 53 DNS
records that you specify in DnsConfig
.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or
HealthCheckConfig
but not both.
For information about the charges for health checks, see AWS Cloud Map Pricing.
DnsConfig
.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or HealthCheckConfig
but not both.
For information about the charges for health checks, see AWS Cloud Map Pricing.
public HealthCheckCustomConfig healthCheckCustomConfig()
A complex type that contains information about an optional custom health check.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or
HealthCheckConfig
but not both.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or HealthCheckConfig
but not both.
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.