@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateServiceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateServiceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateServiceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCreatorRequestId()
A unique string that identifies the request and that allows failed
CreateService requests to be
retried without the risk of running the operation twice. |
String |
getDescription()
A description for the service.
|
DnsConfig |
getDnsConfig()
A complex type that contains information about the Amazon Route 53 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 Route 53 health
check.
|
HealthCheckCustomConfig |
getHealthCheckCustomConfig()
A complex type that contains information about an optional custom health check.
|
String |
getName()
The name that you want to assign to the service.
|
String |
getNamespaceId()
The ID of the namespace that you want to use to create the service.
|
List<Tag> |
getTags()
The tags to add to the service.
|
String |
getType()
If present, specifies that the service instances are only discoverable using the
DiscoverInstances
API operation. |
int |
hashCode() |
void |
setCreatorRequestId(String creatorRequestId)
A unique string that identifies the request and that allows failed
CreateService requests to be
retried without the risk of running the operation twice. |
void |
setDescription(String description)
A description for the service.
|
void |
setDnsConfig(DnsConfig dnsConfig)
A complex type that contains information about the Amazon Route 53 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 Route 53 health
check.
|
void |
setHealthCheckCustomConfig(HealthCheckCustomConfig healthCheckCustomConfig)
A complex type that contains information about an optional custom health check.
|
void |
setName(String name)
The name that you want to assign to the service.
|
void |
setNamespaceId(String namespaceId)
The ID of the namespace that you want to use to create the service.
|
void |
setTags(Collection<Tag> tags)
The tags to add to the service.
|
void |
setType(String type)
If present, specifies that the service instances are only discoverable using the
DiscoverInstances
API operation. |
String |
toString()
Returns a string representation of this object.
|
CreateServiceRequest |
withCreatorRequestId(String creatorRequestId)
A unique string that identifies the request and that allows failed
CreateService requests to be
retried without the risk of running the operation twice. |
CreateServiceRequest |
withDescription(String description)
A description for the service.
|
CreateServiceRequest |
withDnsConfig(DnsConfig dnsConfig)
A complex type that contains information about the Amazon Route 53 records that you want Cloud Map to create when
you register an instance.
|
CreateServiceRequest |
withHealthCheckConfig(HealthCheckConfig healthCheckConfig)
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional Route 53 health
check.
|
CreateServiceRequest |
withHealthCheckCustomConfig(HealthCheckCustomConfig healthCheckCustomConfig)
A complex type that contains information about an optional custom health check.
|
CreateServiceRequest |
withName(String name)
The name that you want to assign to the service.
|
CreateServiceRequest |
withNamespaceId(String namespaceId)
The ID of the namespace that you want to use to create the service.
|
CreateServiceRequest |
withTags(Collection<Tag> tags)
The tags to add to the service.
|
CreateServiceRequest |
withTags(Tag... tags)
The tags to add to the service.
|
CreateServiceRequest |
withType(ServiceTypeOption type)
If present, specifies that the service instances are only discoverable using the
DiscoverInstances
API operation. |
CreateServiceRequest |
withType(String type)
If present, specifies that the service instances are only discoverable using the
DiscoverInstances
API operation. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name that you want to assign to the service.
Do not include sensitive information in the name if the namespace is discoverable by public DNS queries.
If you want Cloud Map to create an SRV
record when you register an instance and you're using a
system that requires a specific SRV
format, such as HAProxy,
specify the following for Name
:
Start the name with an underscore (_), such as _exampleservice
.
End the name with ._protocol, such as ._tcp
.
When you register an instance, Cloud Map creates an SRV
record and assigns a name to the record by
concatenating the service name and the namespace name (for example,
_exampleservice._tcp.example.com
).
For services that are accessible by DNS queries, you can't create multiple services with names that differ only by case (such as EXAMPLE and example). Otherwise, these services have the same DNS name and can't be distinguished. However, if you use a namespace that's only accessible by API calls, then you can create services that with names that differ only by case.
name
- The name that you want to assign to the service. Do not include sensitive information in the name if the namespace is discoverable by public DNS queries.
If you want Cloud Map to create an SRV
record when you register an instance and you're using
a system that requires a specific SRV
format, such as HAProxy, specify the following for Name
:
Start the name with an underscore (_), such as _exampleservice
.
End the name with ._protocol, such as ._tcp
.
When you register an instance, Cloud Map creates an SRV
record and assigns a name to the
record by concatenating the service name and the namespace name (for example,
_exampleservice._tcp.example.com
).
For services that are accessible by DNS queries, you can't create multiple services with names that differ only by case (such as EXAMPLE and example). Otherwise, these services have the same DNS name and can't be distinguished. However, if you use a namespace that's only accessible by API calls, then you can create services that with names that differ only by case.
public String getName()
The name that you want to assign to the service.
Do not include sensitive information in the name if the namespace is discoverable by public DNS queries.
If you want Cloud Map to create an SRV
record when you register an instance and you're using a
system that requires a specific SRV
format, such as HAProxy,
specify the following for Name
:
Start the name with an underscore (_), such as _exampleservice
.
End the name with ._protocol, such as ._tcp
.
When you register an instance, Cloud Map creates an SRV
record and assigns a name to the record by
concatenating the service name and the namespace name (for example,
_exampleservice._tcp.example.com
).
For services that are accessible by DNS queries, you can't create multiple services with names that differ only by case (such as EXAMPLE and example). Otherwise, these services have the same DNS name and can't be distinguished. However, if you use a namespace that's only accessible by API calls, then you can create services that with names that differ only by case.
Do not include sensitive information in the name if the namespace is discoverable by public DNS queries.
If you want Cloud Map to create an SRV
record when you register an instance and you're using
a system that requires a specific SRV
format, such as HAProxy, specify the following for Name
:
Start the name with an underscore (_), such as _exampleservice
.
End the name with ._protocol, such as ._tcp
.
When you register an instance, Cloud Map creates an SRV
record and assigns a name to the
record by concatenating the service name and the namespace name (for example,
_exampleservice._tcp.example.com
).
For services that are accessible by DNS queries, you can't create multiple services with names that differ only by case (such as EXAMPLE and example). Otherwise, these services have the same DNS name and can't be distinguished. However, if you use a namespace that's only accessible by API calls, then you can create services that with names that differ only by case.
public CreateServiceRequest withName(String name)
The name that you want to assign to the service.
Do not include sensitive information in the name if the namespace is discoverable by public DNS queries.
If you want Cloud Map to create an SRV
record when you register an instance and you're using a
system that requires a specific SRV
format, such as HAProxy,
specify the following for Name
:
Start the name with an underscore (_), such as _exampleservice
.
End the name with ._protocol, such as ._tcp
.
When you register an instance, Cloud Map creates an SRV
record and assigns a name to the record by
concatenating the service name and the namespace name (for example,
_exampleservice._tcp.example.com
).
For services that are accessible by DNS queries, you can't create multiple services with names that differ only by case (such as EXAMPLE and example). Otherwise, these services have the same DNS name and can't be distinguished. However, if you use a namespace that's only accessible by API calls, then you can create services that with names that differ only by case.
name
- The name that you want to assign to the service. Do not include sensitive information in the name if the namespace is discoverable by public DNS queries.
If you want Cloud Map to create an SRV
record when you register an instance and you're using
a system that requires a specific SRV
format, such as HAProxy, specify the following for Name
:
Start the name with an underscore (_), such as _exampleservice
.
End the name with ._protocol, such as ._tcp
.
When you register an instance, Cloud Map creates an SRV
record and assigns a name to the
record by concatenating the service name and the namespace name (for example,
_exampleservice._tcp.example.com
).
For services that are accessible by DNS queries, you can't create multiple services with names that differ only by case (such as EXAMPLE and example). Otherwise, these services have the same DNS name and can't be distinguished. However, if you use a namespace that's only accessible by API calls, then you can create services that with names that differ only by case.
public void setNamespaceId(String namespaceId)
The ID of the namespace that you want to use to create the service. The namespace ID must be specified, but it
can be specified either here or in the DnsConfig
object.
namespaceId
- The ID of the namespace that you want to use to create the service. The namespace ID must be specified,
but it can be specified either here or in the DnsConfig
object.public String getNamespaceId()
The ID of the namespace that you want to use to create the service. The namespace ID must be specified, but it
can be specified either here or in the DnsConfig
object.
DnsConfig
object.public CreateServiceRequest withNamespaceId(String namespaceId)
The ID of the namespace that you want to use to create the service. The namespace ID must be specified, but it
can be specified either here or in the DnsConfig
object.
namespaceId
- The ID of the namespace that you want to use to create the service. The namespace ID must be specified,
but it can be specified either here or in the DnsConfig
object.public void setCreatorRequestId(String creatorRequestId)
A unique string that identifies the request and that allows failed CreateService
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 CreateService
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 CreateService
requests to be
retried without the risk of running the operation twice. CreatorRequestId
can be any unique string
(for example, a date/timestamp).
CreateService
requests to
be retried without the risk of running the operation twice. CreatorRequestId
can be any
unique string (for example, a date/timestamp).public CreateServiceRequest withCreatorRequestId(String creatorRequestId)
A unique string that identifies the request and that allows failed CreateService
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 CreateService
requests to
be retried without the risk of running the operation twice. CreatorRequestId
can be any
unique string (for example, a date/timestamp).public void setDescription(String description)
A description for the service.
description
- A description for the service.public String getDescription()
A description for the service.
public CreateServiceRequest withDescription(String description)
A description for the service.
description
- A description for the service.public void setDnsConfig(DnsConfig dnsConfig)
A complex type that contains information about the Amazon Route 53 records that you want Cloud Map to create when you register an instance.
dnsConfig
- A complex type that contains information about the Amazon Route 53 records that you want Cloud Map to
create when you register an instance.public DnsConfig getDnsConfig()
A complex type that contains information about the Amazon Route 53 records that you want Cloud Map to create when you register an instance.
public CreateServiceRequest withDnsConfig(DnsConfig dnsConfig)
A complex type that contains information about the Amazon Route 53 records that you want Cloud Map to create when you register an instance.
dnsConfig
- A complex type that contains information about the Amazon Route 53 records that you want Cloud Map to
create when you register an instance.public void setHealthCheckConfig(HealthCheckConfig healthCheckConfig)
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional Route 53 health
check. If you specify settings for a health check, Cloud Map associates the health check with all the Route 53
DNS records that you specify in DnsConfig
.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or
HealthCheckConfig
but not both.
For information about the charges for health checks, see Cloud Map Pricing.
healthCheckConfig
- Public DNS and HTTP namespaces only. A complex type that contains settings for an optional Route 53
health check. If you specify settings for a health check, Cloud Map associates the health check with all
the Route 53 DNS records that you specify in DnsConfig
.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or HealthCheckConfig
but not both.
For information about the charges for health checks, see Cloud Map Pricing.
public HealthCheckConfig getHealthCheckConfig()
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional Route 53 health
check. If you specify settings for a health check, Cloud Map associates the health check with all the Route 53
DNS records that you specify in DnsConfig
.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or
HealthCheckConfig
but not both.
For information about the charges for health checks, see Cloud Map Pricing.
DnsConfig
.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or HealthCheckConfig
but not both.
For information about the charges for health checks, see Cloud Map Pricing.
public CreateServiceRequest withHealthCheckConfig(HealthCheckConfig healthCheckConfig)
Public DNS and HTTP namespaces only. A complex type that contains settings for an optional Route 53 health
check. If you specify settings for a health check, Cloud Map associates the health check with all the Route 53
DNS records that you specify in DnsConfig
.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or
HealthCheckConfig
but not both.
For information about the charges for health checks, see Cloud Map Pricing.
healthCheckConfig
- Public DNS and HTTP namespaces only. A complex type that contains settings for an optional Route 53
health check. If you specify settings for a health check, Cloud Map associates the health check with all
the Route 53 DNS records that you specify in DnsConfig
.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or HealthCheckConfig
but not both.
For information about the charges for health checks, see Cloud Map 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.
You can't add, update, or delete a HealthCheckCustomConfig
configuration from an existing service.
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.
You can't add, update, or delete a HealthCheckCustomConfig
configuration from an existing
service.
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.
You can't add, update, or delete a HealthCheckCustomConfig
configuration from an existing service.
If you specify a health check configuration, you can specify either HealthCheckCustomConfig
or HealthCheckConfig
but not both.
You can't add, update, or delete a HealthCheckCustomConfig
configuration from an existing
service.
public CreateServiceRequest 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.
You can't add, update, or delete a HealthCheckCustomConfig
configuration from an existing service.
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.
You can't add, update, or delete a HealthCheckCustomConfig
configuration from an existing
service.
public List<Tag> getTags()
The tags to add to the service. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
public void setTags(Collection<Tag> tags)
The tags to add to the service. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
tags
- The tags to add to the service. Each tag consists of a key and an optional value that you define. Tags
keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.public CreateServiceRequest withTags(Tag... tags)
The tags to add to the service. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to add to the service. Each tag consists of a key and an optional value that you define. Tags
keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.public CreateServiceRequest withTags(Collection<Tag> tags)
The tags to add to the service. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.
tags
- The tags to add to the service. Each tag consists of a key and an optional value that you define. Tags
keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.public void setType(String type)
If present, specifies that the service instances are only discoverable using the DiscoverInstances
API operation. No DNS records is registered for the service instances. The only valid value is HTTP
.
type
- If present, specifies that the service instances are only discoverable using the
DiscoverInstances
API operation. No DNS records is registered for the service instances. The
only valid value is HTTP
.ServiceTypeOption
public String getType()
If present, specifies that the service instances are only discoverable using the DiscoverInstances
API operation. No DNS records is registered for the service instances. The only valid value is HTTP
.
DiscoverInstances
API operation. No DNS records is registered for the service instances. The
only valid value is HTTP
.ServiceTypeOption
public CreateServiceRequest withType(String type)
If present, specifies that the service instances are only discoverable using the DiscoverInstances
API operation. No DNS records is registered for the service instances. The only valid value is HTTP
.
type
- If present, specifies that the service instances are only discoverable using the
DiscoverInstances
API operation. No DNS records is registered for the service instances. The
only valid value is HTTP
.ServiceTypeOption
public CreateServiceRequest withType(ServiceTypeOption type)
If present, specifies that the service instances are only discoverable using the DiscoverInstances
API operation. No DNS records is registered for the service instances. The only valid value is HTTP
.
type
- If present, specifies that the service instances are only discoverable using the
DiscoverInstances
API operation. No DNS records is registered for the service instances. The
only valid value is HTTP
.ServiceTypeOption
public String toString()
toString
in class Object
Object.toString()
public CreateServiceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()