public void setName(String name) {
        this.name = name;
    }
<p>
The name that's used for the port mapping. This parameter only applies to Service Connect. This parameter is the
name that you use in the <code>serviceConnectConfiguration</code> of a service. The name can include up to 64
characters. The characters can include lowercase letters, numbers, underscores (_), and hyphens (-). The name
can't start with a hyphen.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in
the <i>Amazon Elastic Container Service Developer Guide</i>.
</p>

@param name
       The name that's used for the port mapping. This parameter only applies to Service Connect. This parameter
       is the name that you use in the <code>serviceConnectConfiguration</code> of a service. The name can
       include up to 64 characters. The characters can include lowercase letters, numbers, underscores (_), and
       hyphens (-). The name can't start with a hyphen.</p>
       <p>
       For more information, see <a
       href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service
       Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/PortMapping.java