@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 executing 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 AWS 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.
|
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 executing 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 AWS 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.
|
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 executing 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 AWS 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.
|
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.
If you want AWS Cloud Map to create an SRV record when you register an instance, and if 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, AWS 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
name
- The name that you want to assign to the service.
If you want AWS Cloud Map to create an SRV record when you register an instance, and if 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, AWS 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
public String getName()
The name that you want to assign to the service.
If you want AWS Cloud Map to create an SRV record when you register an instance, and if 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, AWS 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
If you want AWS Cloud Map to create an SRV record when you register an instance, and if 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, AWS 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
public CreateServiceRequest withName(String name)
The name that you want to assign to the service.
If you want AWS Cloud Map to create an SRV record when you register an instance, and if 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, AWS 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
name
- The name that you want to assign to the service.
If you want AWS Cloud Map to create an SRV record when you register an instance, and if 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, AWS 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
public void setNamespaceId(String namespaceId)
The ID of the namespace that you want to use to create the service.
namespaceId
- The ID of the namespace that you want to use to create the service.public String getNamespaceId()
The ID of the namespace that you want to use to create the service.
public CreateServiceRequest withNamespaceId(String namespaceId)
The ID of the namespace that you want to use to create the service.
namespaceId
- The ID of the namespace that you want to use to create the service.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 executing the operation twice. CreatorRequestId
can be any unique
string, for example, a date/time stamp.
creatorRequestId
- A unique string that identifies the request and that allows failed CreateService
requests to
be retried without the risk of executing the operation twice. CreatorRequestId
can be any
unique string, for example, a date/time stamp.public String getCreatorRequestId()
A unique string that identifies the request and that allows failed CreateService
requests to be
retried without the risk of executing the operation twice. CreatorRequestId
can be any unique
string, for example, a date/time stamp.
CreateService
requests to
be retried without the risk of executing the operation twice. CreatorRequestId
can be any
unique string, for example, a date/time stamp.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 executing the operation twice. CreatorRequestId
can be any unique
string, for example, a date/time stamp.
creatorRequestId
- A unique string that identifies the request and that allows failed CreateService
requests to
be retried without the risk of executing the operation twice. CreatorRequestId
can be any
unique string, for example, a date/time stamp.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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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, AWS 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 AWS 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, AWS 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 AWS 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, AWS 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 AWS 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 AWS 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, AWS 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 AWS 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, AWS 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 AWS 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, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
public void setTags(Collection<Tag> tags)
The tags to add to the service. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
tags
- The tags to add to the service. Each tag consists of a key and an optional value, both of which you
define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum
length of 256 characters.public CreateServiceRequest withTags(Tag... tags)
The tags to add to the service. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
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, both of which you
define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum
length of 256 characters.public CreateServiceRequest withTags(Collection<Tag> tags)
The tags to add to the service. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
tags
- The tags to add to the service. Each tag consists of a key and an optional value, both of which you
define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum
length of 256 characters.public String toString()
toString
in class Object
Object.toString()
public CreateServiceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.