Interface ServiceSummary.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceSummary.Builder,
,ServiceSummary> SdkBuilder<ServiceSummary.Builder,
,ServiceSummary> SdkPojo
- Enclosing class:
ServiceSummary
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.createDate
(Instant createDate) The date and time that the service was created.description
(String description) The description that you specify when you create the service.default ServiceSummary.Builder
dnsConfig
(Consumer<DnsConfig.Builder> dnsConfig) Information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.Information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.default ServiceSummary.Builder
healthCheckConfig
(Consumer<HealthCheckConfig.Builder> healthCheckConfig) Public DNS and HTTP namespaces only. Settings for an optional health check.healthCheckConfig
(HealthCheckConfig healthCheckConfig) Public DNS and HTTP namespaces only. Settings for an optional health check.default ServiceSummary.Builder
healthCheckCustomConfig
(Consumer<HealthCheckCustomConfig.Builder> healthCheckCustomConfig) Information about an optional custom health check.healthCheckCustomConfig
(HealthCheckCustomConfig healthCheckCustomConfig) Information about an optional custom health check.The ID that Cloud Map assigned to the service when you created it.instanceCount
(Integer instanceCount) The number of instances that are currently associated with the service.The name of the service.Describes the systems that can be used to discover the service instances.type
(ServiceType type) Describes the systems that can be used to discover the service instances.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The ID that Cloud Map assigned to the service when you created it.
- Parameters:
id
- The ID that Cloud Map assigned to the service when you created it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
- Parameters:
arn
- The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the service.
- Parameters:
name
- The name of the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
DiscoverInstances
API operation. - HTTP
-
The service instances can only be discovered using the
DiscoverInstances
API operation. - DNS
-
Reserved.
- Parameters:
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
DiscoverInstances
API operation. - HTTP
-
The service instances can only be discovered using the
DiscoverInstances
API operation. - DNS
-
Reserved.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
DiscoverInstances
API operation. - HTTP
-
The service instances can only be discovered using the
DiscoverInstances
API operation. - DNS
-
Reserved.
- Parameters:
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
DiscoverInstances
API operation. - HTTP
-
The service instances can only be discovered using the
DiscoverInstances
API operation. - DNS
-
Reserved.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description that you specify when you create the service.
- Parameters:
description
- The description that you specify when you create the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
dnsConfig
Information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.
- Parameters:
dnsConfig
- Information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsConfig
Information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.
This is a convenience method that creates an instance of theDnsConfig.Builder
avoiding the need to create one manually viaDnsConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todnsConfig(DnsConfig)
.- Parameters:
dnsConfig
- a consumer that will call methods onDnsConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
healthCheckConfig
Public DNS and HTTP namespaces only. 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
.- Parameters:
healthCheckConfig
- Public DNS and HTTP namespaces only. 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 inDnsConfig
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheckConfig
default ServiceSummary.Builder healthCheckConfig(Consumer<HealthCheckConfig.Builder> healthCheckConfig) Public DNS and HTTP namespaces only. 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
This is a convenience method that creates an instance of theDnsConfig
.HealthCheckConfig.Builder
avoiding the need to create one manually viaHealthCheckConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheckConfig(HealthCheckConfig)
.- Parameters:
healthCheckConfig
- a consumer that will call methods onHealthCheckConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
healthCheckCustomConfig
Information about an optional custom health check. A custom health check, which requires that you use a third-party health checker to evaluate the health of your resources, is useful in the following circumstances:
-
You can't use a health check that's defined by
HealthCheckConfig
because the resource isn't available over the internet. For example, you can use a custom health check when the instance is in an Amazon VPC. (To check the health of resources in a VPC, the health checker must also be in the VPC.) -
You want to use a third-party health checker regardless of where your resources are located.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.- Parameters:
healthCheckCustomConfig
- Information about an optional custom health check. A custom health check, which requires that you use a third-party health checker to evaluate the health of your resources, is useful in the following circumstances:-
You can't use a health check that's defined by
HealthCheckConfig
because the resource isn't available over the internet. For example, you can use a custom health check when the instance is in an Amazon VPC. (To check the health of resources in a VPC, the health checker must also be in the VPC.) -
You want to use a third-party health checker regardless of where your resources are located.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
healthCheckCustomConfig
default ServiceSummary.Builder healthCheckCustomConfig(Consumer<HealthCheckCustomConfig.Builder> healthCheckCustomConfig) Information about an optional custom health check. A custom health check, which requires that you use a third-party health checker to evaluate the health of your resources, is useful in the following circumstances:
-
You can't use a health check that's defined by
HealthCheckConfig
because the resource isn't available over the internet. For example, you can use a custom health check when the instance is in an Amazon VPC. (To check the health of resources in a VPC, the health checker must also be in the VPC.) -
You want to use a third-party health checker regardless of where your resources are located.
If you specify a health check configuration, you can specify either
HealthCheckCustomConfig
orHealthCheckConfig
but not both.HealthCheckCustomConfig.Builder
avoiding the need to create one manually viaHealthCheckCustomConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheckCustomConfig(HealthCheckCustomConfig)
.- Parameters:
healthCheckCustomConfig
- a consumer that will call methods onHealthCheckCustomConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
createDate
The date and time that the service was created.
- Parameters:
createDate
- The date and time that the service was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-