@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Service extends Object implements Serializable, Cloneable, StructuredPojo
A complex type that contains information about the specified service.
Constructor and Description |
---|
Service() |
Modifier and Type | Method and Description |
---|---|
Service |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
|
Date |
getCreateDate()
The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC).
|
String |
getCreatorRequestId()
A unique string that identifies the request and that allows failed requests to be retried without the risk of
running the operation twice.
|
String |
getDescription()
The description of the service.
|
DnsConfig |
getDnsConfig()
A complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when
you register an instance.
|
HealthCheckConfig |
getHealthCheckConfig()
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.
|
HealthCheckCustomConfig |
getHealthCheckCustomConfig()
A complex type that contains information about an optional custom health check.
|
String |
getId()
The ID that Cloud Map assigned to the service when you created it.
|
Integer |
getInstanceCount()
The number of instances that are currently associated with the service.
|
String |
getName()
The name of the service.
|
String |
getNamespaceId()
The ID of the namespace that was used to create the service.
|
String |
getType()
Describes the systems that can be used to discover the service instances.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
|
void |
setCreateDate(Date createDate)
The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC).
|
void |
setCreatorRequestId(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.
|
void |
setDescription(String description)
The description of the service.
|
void |
setDnsConfig(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.
|
void |
setHealthCheckConfig(HealthCheckConfig healthCheckConfig)
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.
|
void |
setHealthCheckCustomConfig(HealthCheckCustomConfig healthCheckCustomConfig)
A complex type that contains information about an optional custom health check.
|
void |
setId(String id)
The ID that Cloud Map assigned to the service when you created it.
|
void |
setInstanceCount(Integer instanceCount)
The number of instances that are currently associated with the service.
|
void |
setName(String name)
The name of the service.
|
void |
setNamespaceId(String namespaceId)
The ID of the namespace that was used to create the service.
|
void |
setType(String type)
Describes the systems that can be used to discover the service instances.
|
String |
toString()
Returns a string representation of this object.
|
Service |
withArn(String arn)
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
|
Service |
withCreateDate(Date createDate)
The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC).
|
Service |
withCreatorRequestId(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.
|
Service |
withDescription(String description)
The description of the service.
|
Service |
withDnsConfig(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.
|
Service |
withHealthCheckConfig(HealthCheckConfig healthCheckConfig)
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional health check.
|
Service |
withHealthCheckCustomConfig(HealthCheckCustomConfig healthCheckCustomConfig)
A complex type that contains information about an optional custom health check.
|
Service |
withId(String id)
The ID that Cloud Map assigned to the service when you created it.
|
Service |
withInstanceCount(Integer instanceCount)
The number of instances that are currently associated with the service.
|
Service |
withName(String name)
The name of the service.
|
Service |
withNamespaceId(String namespaceId)
The ID of the namespace that was used to create the service.
|
Service |
withType(ServiceType type)
Describes the systems that can be used to discover the service instances.
|
Service |
withType(String type)
Describes the systems that can be used to discover the service instances.
|
public void setId(String id)
The ID that Cloud Map assigned to the service when you created it.
id
- The ID that Cloud Map assigned to the service when you created it.public String getId()
The ID that Cloud Map assigned to the service when you created it.
public Service withId(String id)
The ID that Cloud Map assigned to the service when you created it.
id
- The ID that Cloud Map assigned to the service when you created it.public void setArn(String arn)
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
arn
- The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.public String getArn()
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
public Service withArn(String arn)
The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.
arn
- The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.public void setName(String name)
The name of the service.
name
- The name of the service.public String getName()
The name of the service.
public Service withName(String name)
The name of the service.
name
- The name of the service.public void setNamespaceId(String namespaceId)
The ID of the namespace that was used to create the service.
namespaceId
- The ID of the namespace that was used to create the service.public String getNamespaceId()
The ID of the namespace that was used to create the service.
public Service withNamespaceId(String namespaceId)
The ID of the namespace that was used to create the service.
namespaceId
- The ID of the namespace that was used to create the service.public void setDescription(String description)
The description of the service.
description
- The description of the service.public String getDescription()
The description of the service.
public Service withDescription(String description)
The description of the service.
description
- The description of the service.public void setInstanceCount(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.
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 Integer getInstanceCount()
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 Service withInstanceCount(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.
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 void setDnsConfig(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
.
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
.
public DnsConfig getDnsConfig()
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 Service withDnsConfig(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
.
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
.
public void setType(String 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.
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.
ServiceType
public String getType()
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.
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.
ServiceType
public Service withType(String 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.
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.
ServiceType
public Service withType(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.
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.
ServiceType
public void setHealthCheckConfig(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.
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.
public HealthCheckConfig getHealthCheckConfig()
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 Service withHealthCheckConfig(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.
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.
public void setHealthCheckCustomConfig(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.
public HealthCheckCustomConfig getHealthCheckCustomConfig()
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 Service withHealthCheckCustomConfig(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.
public void setCreateDate(Date 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
- 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.public Date getCreateDate()
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 Service withCreateDate(Date 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
- 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.public void setCreatorRequestId(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
- 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).public String getCreatorRequestId()
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 withCreatorRequestId(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
- 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).public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.