public NetworkInterface withAttachmentId(String attachmentId) {
        setAttachmentId(attachmentId);
        return this;
    }
<p>
The attachment ID for the network interface.
</p>

@param attachmentId
       The attachment ID for the network interface.
@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/NetworkInterface.java