Class Service
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Service.Builder,Service>
A complex type that contains information about the specified service.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringarn()The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.static Service.Builderbuilder()final InstantThe date and time that the service was created, in Unix format and Coordinated Universal Time (UTC).final StringThe ID of the Amazon Web Services account that created the service.final StringA unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice.final StringThe description of the service.final DnsConfigA complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final HealthCheckConfigPublic DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.final HealthCheckCustomConfigA complex type that contains information about an optional custom health check.final Stringid()The ID that Cloud Map assigned to the service when you created it.final IntegerThe number of instances that are currently associated with the service.final Stringname()The name of the service.final StringThe ID of the namespace that was used to create the service.final StringThe ID of the Amazon Web Services account that created the namespace with which the service is associated.static Class<? extends Service.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final ServiceTypetype()Describes the systems that can be used to discover the service instances.final StringDescribes the systems that can be used to discover the service instances.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The ID that Cloud Map assigned to the service when you created it.
- Returns:
- The ID that Cloud Map assigned to the service when you created it.
-
arn
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
- Returns:
- The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
-
resourceOwner
The ID of the Amazon Web Services account that created the namespace with which the service is associated. If this isn't your account ID, it is the ID of the account that shared the namespace with your account. For more information about shared namespaces, see Cross-account Cloud Map namespace sharing in the Cloud Map Developer Guide.
- Returns:
- The ID of the Amazon Web Services account that created the namespace with which the service is associated. If this isn't your account ID, it is the ID of the account that shared the namespace with your account. For more information about shared namespaces, see Cross-account Cloud Map namespace sharing in the Cloud Map Developer Guide.
-
name
-
namespaceId
The ID of the namespace that was used to create the service.
- Returns:
- The ID of the namespace that was used to create the service.
-
description
The description of the service.
- Returns:
- The description of the service.
-
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.
- Returns:
- 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.
-
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.- Returns:
- 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.
-
type
Describes the systems that can be used to discover the service instances.
- DNS_HTTP
-
The service instances can be discovered using either DNS queries or the
DiscoverInstancesAPI operation. - HTTP
-
The service instances can only be discovered using the
DiscoverInstancesAPI operation. - DNS
-
Reserved.
If the service returns an enum value that is not available in the current SDK version,
typewill returnServiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Describes the systems that can be used to discover the service instances.
- DNS_HTTP
-
The service instances can be discovered using either DNS queries or the
DiscoverInstancesAPI operation. - HTTP
-
The service instances can only be discovered using the
DiscoverInstancesAPI operation. - DNS
-
Reserved.
- See Also:
-
typeAsString
Describes the systems that can be used to discover the service instances.
- DNS_HTTP
-
The service instances can be discovered using either DNS queries or the
DiscoverInstancesAPI operation. - HTTP
-
The service instances can only be discovered using the
DiscoverInstancesAPI operation. - DNS
-
Reserved.
If the service returns an enum value that is not available in the current SDK version,
typewill returnServiceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Describes the systems that can be used to discover the service instances.
- DNS_HTTP
-
The service instances can be discovered using either DNS queries or the
DiscoverInstancesAPI operation. - HTTP
-
The service instances can only be discovered using the
DiscoverInstancesAPI operation. - DNS
-
Reserved.
- See Also:
-
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.
- Returns:
- 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.
-
healthCheckCustomConfig
A complex type that contains information about an optional custom health check.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfigorHealthCheckConfigbut not both.- Returns:
- A complex type that contains information about an optional custom health check.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfigorHealthCheckConfigbut not both.
-
createDate
The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreateDateis accurate to milliseconds. For example, the value1516925490.087represents Friday, January 26, 2018 12:11:30.087 AM.- Returns:
- The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The
value of
CreateDateis accurate to milliseconds. For example, the value1516925490.087represents Friday, January 26, 2018 12:11:30.087 AM.
-
creatorRequestId
A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice.
CreatorRequestIdcan be any unique string (for example, a date/timestamp).- Returns:
- A unique string that identifies the request and that allows failed requests to be retried without the
risk of running the operation twice.
CreatorRequestIdcan be any unique string (for example, a date/timestamp).
-
createdByAccount
The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is the ID of account of the namespace owner or of another account with which the namespace has been shared. For more information about shared namespaces, see Cross-account Cloud Map namespace sharing in the Cloud Map Developer Guide.
- Returns:
- The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is the ID of account of the namespace owner or of another account with which the namespace has been shared. For more information about shared namespaces, see Cross-account Cloud Map namespace sharing in the Cloud Map Developer Guide.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Service.Builder,Service> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-