public static interface CreateServiceRequest.Builder extends ServiceDiscoveryRequest.Builder, SdkPojo, CopyableBuilder<CreateServiceRequest.Builder,CreateServiceRequest>
Modifier and Type | Method and Description |
---|---|
CreateServiceRequest.Builder |
creatorRequestId(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. |
CreateServiceRequest.Builder |
description(String description)
A description for the service.
|
default CreateServiceRequest.Builder |
dnsConfig(Consumer<DnsConfig.Builder> 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.
|
CreateServiceRequest.Builder |
dnsConfig(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.
|
default CreateServiceRequest.Builder |
healthCheckConfig(Consumer<HealthCheckConfig.Builder> healthCheckConfig)
Public DNS namespaces only. A complex type that contains settings for an optional Route 53 health
check.
|
CreateServiceRequest.Builder |
healthCheckConfig(HealthCheckConfig healthCheckConfig)
Public DNS namespaces only. A complex type that contains settings for an optional Route 53 health
check.
|
default CreateServiceRequest.Builder |
healthCheckCustomConfig(Consumer<HealthCheckCustomConfig.Builder> healthCheckCustomConfig)
A complex type that contains information about an optional custom health check.
|
CreateServiceRequest.Builder |
healthCheckCustomConfig(HealthCheckCustomConfig healthCheckCustomConfig)
A complex type that contains information about an optional custom health check.
|
CreateServiceRequest.Builder |
name(String name)
The name that you want to assign to the service.
|
CreateServiceRequest.Builder |
namespaceId(String namespaceId)
The ID of the namespace that you want to use to create the service.
|
CreateServiceRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateServiceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
build
overrideConfiguration
copy
applyMutation, build
CreateServiceRequest.Builder name(String name)
The name that you want to assign to the service.
name
- The name that you want to assign to the service.CreateServiceRequest.Builder namespaceId(String namespaceId)
The ID of the namespace that you want to use to create the service.
namespaceId
- The ID of the namespace that you want to use to create the service.CreateServiceRequest.Builder creatorRequestId(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.
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.CreateServiceRequest.Builder description(String description)
A description for the service.
description
- A description for the service.CreateServiceRequest.Builder dnsConfig(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.
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.default CreateServiceRequest.Builder dnsConfig(Consumer<DnsConfig.Builder> 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.
This is a convenience that creates an instance of theDnsConfig.Builder
avoiding the need to create
one manually via DnsConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to dnsConfig(DnsConfig)
.dnsConfig
- a consumer that will call methods on DnsConfig.Builder
dnsConfig(DnsConfig)
CreateServiceRequest.Builder healthCheckConfig(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.
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.
default CreateServiceRequest.Builder healthCheckConfig(Consumer<HealthCheckConfig.Builder> 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.
This is a convenience that creates an instance of theHealthCheckConfig.Builder
avoiding the need to
create one manually via HealthCheckConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to healthCheckConfig(HealthCheckConfig)
.healthCheckConfig
- a consumer that will call methods on HealthCheckConfig.Builder
healthCheckConfig(HealthCheckConfig)
CreateServiceRequest.Builder healthCheckCustomConfig(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.
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.
default CreateServiceRequest.Builder healthCheckCustomConfig(Consumer<HealthCheckCustomConfig.Builder> 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.
HealthCheckCustomConfig.Builder
avoiding the need to create one manually via HealthCheckCustomConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to healthCheckCustomConfig(HealthCheckCustomConfig)
.healthCheckCustomConfig
- a consumer that will call methods on HealthCheckCustomConfig.Builder
healthCheckCustomConfig(HealthCheckCustomConfig)
CreateServiceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateServiceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.