@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 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
running 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 Cloud Map to create when
you register an instance.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HealthCheckConfig |
healthCheckConfig()
Public DNS and HTTP 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 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() |
String |
toString()
Returns a string representation of this object.
|
ServiceType |
type()
Describes the systems that can be used to discover the service instances.
|
String |
typeAsString()
Describes the systems that can be used to discover the service instances.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID that Cloud Map assigned to the service when you created it.
public final String arn()
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
public final String name()
The name of the service.
public final String namespaceId()
The ID of the namespace that was used to create the service.
public final String description()
The description of the service.
public final Integer instanceCount()
The number of instances that are currently associated with the service. Instances that were previously associated with the service but that are deleted aren't included in the count. The count might not reflect pending registrations and deregistrations.
public final DnsConfig dnsConfig()
A complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.
The record types of a service can only be changed by deleting the service and recreating it with a new
Dnsconfig.
The record types of a service can only be changed by deleting the service and recreating it with a new
Dnsconfig.
public final ServiceType type()
Describes the systems that can be used to discover the service instances.
The service instances can be discovered using either DNS queries or the DiscoverInstances API
operation.
The service instances can only be discovered using the DiscoverInstances API operation.
Reserved.
If the service returns an enum value that is not available in the current SDK version, type will return
ServiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
The service instances can be discovered using either DNS queries or the DiscoverInstances
API operation.
The service instances can only be discovered using the DiscoverInstances API operation.
Reserved.
ServiceTypepublic final String typeAsString()
Describes the systems that can be used to discover the service instances.
The service instances can be discovered using either DNS queries or the DiscoverInstances API
operation.
The service instances can only be discovered using the DiscoverInstances API operation.
Reserved.
If the service returns an enum value that is not available in the current SDK version, type will return
ServiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
The service instances can be discovered using either DNS queries or the DiscoverInstances
API operation.
The service instances can only be discovered using the DiscoverInstances API operation.
Reserved.
ServiceTypepublic final HealthCheckConfig healthCheckConfig()
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.
If you specify settings for a health check, 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 final 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 final 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 final String creatorRequestId()
A unique string that identifies the request and that allows failed requests to be retried without the risk of
running the operation twice. CreatorRequestId can be any unique string (for example, a
date/timestamp).
CreatorRequestId can be any unique string (for example,
a date/timestamp).public Service.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Service.Builder,Service>public static Service.Builder builder()
public static Class<? extends Service.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.