@Generated(value="software.amazon.awssdk:codegen") public final class Service extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Service.Builder,Service>
A complex type that contains information about the specified service.
Modifier and Type | Class and Description |
---|---|
static interface |
Service.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the service when you create it.
|
static Service.Builder |
builder() |
Instant |
createDate()
The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC).
|
String |
creatorRequestId()
A unique string that identifies the request and that allows failed requests to be retried without the risk of
executing the operation twice.
|
String |
description()
The description of the service.
|
DnsConfig |
dnsConfig()
A complex type that contains information about the Route 53 DNS 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) |
int |
hashCode() |
HealthCheckConfig |
healthCheckConfig()
Public DNS namespaces only. A complex type that contains settings for an optional health check.
|
HealthCheckCustomConfig |
healthCheckCustomConfig()
A complex type that contains information about an optional custom health check.
|
String |
id()
The ID that AWS Cloud Map assigned to the service when you created it.
|
Integer |
instanceCount()
The number of instances that are currently associated with the service.
|
String |
name()
The name of the service.
|
String |
namespaceId()
The ID of the namespace that was used to create the service.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Service.Builder> |
serializableBuilderClass() |
Service.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The ID that AWS Cloud Map assigned to the service when you created it.
public String arn()
The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the service when you create it.
public String name()
The name of the service.
public String namespaceId()
The ID of the namespace that was used to create the service.
public String description()
The description of the service.
public Integer instanceCount()
The number of instances that are currently associated with the service. Instances that were previously associated with the service but that have been deleted are not included in the count.
public DnsConfig dnsConfig()
A complex type that contains information about the Route 53 DNS 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 health check. If you
specify settings for a health check, AWS Cloud Map associates the health check with the records that you specify
in DnsConfig
.
For information about the charges for health checks, see Amazon Route 53 Pricing.
DnsConfig
.
For information about the charges for health checks, see Amazon Route 53 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 Instant createDate()
The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreateDate
is accurate to milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
CreateDate
is accurate to milliseconds. For example, the value
1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.public String creatorRequestId()
A unique string that identifies the request and that allows failed 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
can be any unique string, for
example, a date/time stamp.public Service.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Service.Builder,Service>
public static Service.Builder builder()
public static Class<? extends Service.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.