public ServiceConnectService withClientAliases(java.util.Collection<ServiceConnectClientAlias> clientAliases) {
        setClientAliases(clientAliases);
        return this;
    }
<p>
The list of client aliases for this Service Connect service. You use these to assign names that can be used by
client applications. The maximum number of client aliases that you can have in this list is 1.
</p>
<p>
Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients") can use
to connect to this service.
</p>
<p>
Each name and port mapping must be unique within the namespace.
</p>
<p>
For each <code>ServiceConnectService</code>, you must provide at least one <code>clientAlias</code> with one
<code>port</code>.
</p>

@param clientAliases
       The list of client aliases for this Service Connect service. You use these to assign names that can be
       used by client applications. The maximum number of client aliases that you can have in this list is 1.</p>
       <p>
       Each alias ("endpoint") is a fully-qualified name and port number that other Amazon ECS tasks ("clients")
       can use to connect to this service.
       </p>
       <p>
       Each name and port mapping must be unique within the namespace.
       </p>
       <p>
       For each <code>ServiceConnectService</code>, you must provide at least one <code>clientAlias</code> with
       one <code>port</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ServiceConnectService.java