@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceRegistry extends Object implements Serializable, Cloneable, StructuredPojo
The details for the service registry.
Each service may be associated with one service registry. Multiple service registries for each service are not supported.
When you add, update, or remove the service registries configuration, Amazon ECS starts a new deployment. New tasks are registered and deregistered to the updated service registry configuration.
Constructor and Description |
---|
ServiceRegistry() |
Modifier and Type | Method and Description |
---|---|
ServiceRegistry |
clone() |
boolean |
equals(Object obj) |
String |
getContainerName()
The container name value to be used for your service discovery service.
|
Integer |
getContainerPort()
The port value to be used for your service discovery service.
|
Integer |
getPort()
The port value used if your service discovery service specified an SRV record.
|
String |
getRegistryArn()
The Amazon Resource Name (ARN) of the service registry.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerName(String containerName)
The container name value to be used for your service discovery service.
|
void |
setContainerPort(Integer containerPort)
The port value to be used for your service discovery service.
|
void |
setPort(Integer port)
The port value used if your service discovery service specified an SRV record.
|
void |
setRegistryArn(String registryArn)
The Amazon Resource Name (ARN) of the service registry.
|
String |
toString()
Returns a string representation of this object.
|
ServiceRegistry |
withContainerName(String containerName)
The container name value to be used for your service discovery service.
|
ServiceRegistry |
withContainerPort(Integer containerPort)
The port value to be used for your service discovery service.
|
ServiceRegistry |
withPort(Integer port)
The port value used if your service discovery service specified an SRV record.
|
ServiceRegistry |
withRegistryArn(String registryArn)
The Amazon Resource Name (ARN) of the service registry.
|
public void setRegistryArn(String registryArn)
The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
registryArn
- The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud
Map. For more information, see CreateService.public String getRegistryArn()
The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
public ServiceRegistry withRegistryArn(String registryArn)
The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud Map. For more information, see CreateService.
registryArn
- The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Cloud
Map. For more information, see CreateService.public void setPort(Integer port)
The port value used if your service discovery service specified an SRV record. This field might be used if both
the awsvpc
network mode and SRV records are used.
port
- The port value used if your service discovery service specified an SRV record. This field might be used if
both the awsvpc
network mode and SRV records are used.public Integer getPort()
The port value used if your service discovery service specified an SRV record. This field might be used if both
the awsvpc
network mode and SRV records are used.
awsvpc
network mode and SRV records are used.public ServiceRegistry withPort(Integer port)
The port value used if your service discovery service specified an SRV record. This field might be used if both
the awsvpc
network mode and SRV records are used.
port
- The port value used if your service discovery service specified an SRV record. This field might be used if
both the awsvpc
network mode and SRV records are used.public void setContainerName(String containerName)
The container name value to be used for your service discovery service. It's already specified in the task
definition. If the task definition that your service task specifies uses the bridge
or
host
network mode, you must specify a containerName
and containerPort
combination from the task definition. If the task definition that your service task specifies uses the
awsvpc
network mode and a type SRV DNS record is used, you must specify either a
containerName
and containerPort
combination or a port
value. However, you
can't specify both.
containerName
- The container name value to be used for your service discovery service. It's already specified in the task
definition. If the task definition that your service task specifies uses the bridge
or
host
network mode, you must specify a containerName
and
containerPort
combination from the task definition. If the task definition that your service
task specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must
specify either a containerName
and containerPort
combination or a
port
value. However, you can't specify both.public String getContainerName()
The container name value to be used for your service discovery service. It's already specified in the task
definition. If the task definition that your service task specifies uses the bridge
or
host
network mode, you must specify a containerName
and containerPort
combination from the task definition. If the task definition that your service task specifies uses the
awsvpc
network mode and a type SRV DNS record is used, you must specify either a
containerName
and containerPort
combination or a port
value. However, you
can't specify both.
bridge
or
host
network mode, you must specify a containerName
and
containerPort
combination from the task definition. If the task definition that your service
task specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must
specify either a containerName
and containerPort
combination or a
port
value. However, you can't specify both.public ServiceRegistry withContainerName(String containerName)
The container name value to be used for your service discovery service. It's already specified in the task
definition. If the task definition that your service task specifies uses the bridge
or
host
network mode, you must specify a containerName
and containerPort
combination from the task definition. If the task definition that your service task specifies uses the
awsvpc
network mode and a type SRV DNS record is used, you must specify either a
containerName
and containerPort
combination or a port
value. However, you
can't specify both.
containerName
- The container name value to be used for your service discovery service. It's already specified in the task
definition. If the task definition that your service task specifies uses the bridge
or
host
network mode, you must specify a containerName
and
containerPort
combination from the task definition. If the task definition that your service
task specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must
specify either a containerName
and containerPort
combination or a
port
value. However, you can't specify both.public void setContainerPort(Integer containerPort)
The port value to be used for your service discovery service. It's already specified in the task definition. If
the task definition your service task specifies uses the bridge
or host
network mode,
you must specify a containerName
and containerPort
combination from the task
definition. If the task definition your service task specifies uses the awsvpc
network mode and a
type SRV DNS record is used, you must specify either a containerName
and containerPort
combination or a port
value. However, you can't specify both.
containerPort
- The port value to be used for your service discovery service. It's already specified in the task
definition. If the task definition your service task specifies uses the bridge
or
host
network mode, you must specify a containerName
and
containerPort
combination from the task definition. If the task definition your service task
specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must specify
either a containerName
and containerPort
combination or a port
value. However, you can't specify both.public Integer getContainerPort()
The port value to be used for your service discovery service. It's already specified in the task definition. If
the task definition your service task specifies uses the bridge
or host
network mode,
you must specify a containerName
and containerPort
combination from the task
definition. If the task definition your service task specifies uses the awsvpc
network mode and a
type SRV DNS record is used, you must specify either a containerName
and containerPort
combination or a port
value. However, you can't specify both.
bridge
or
host
network mode, you must specify a containerName
and
containerPort
combination from the task definition. If the task definition your service task
specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must specify
either a containerName
and containerPort
combination or a port
value. However, you can't specify both.public ServiceRegistry withContainerPort(Integer containerPort)
The port value to be used for your service discovery service. It's already specified in the task definition. If
the task definition your service task specifies uses the bridge
or host
network mode,
you must specify a containerName
and containerPort
combination from the task
definition. If the task definition your service task specifies uses the awsvpc
network mode and a
type SRV DNS record is used, you must specify either a containerName
and containerPort
combination or a port
value. However, you can't specify both.
containerPort
- The port value to be used for your service discovery service. It's already specified in the task
definition. If the task definition your service task specifies uses the bridge
or
host
network mode, you must specify a containerName
and
containerPort
combination from the task definition. If the task definition your service task
specifies uses the awsvpc
network mode and a type SRV DNS record is used, you must specify
either a containerName
and containerPort
combination or a port
value. However, you can't specify both.public String toString()
toString
in class Object
Object.toString()
public ServiceRegistry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.