public ConnectAttachment withAttachment(Attachment attachment) {
        setAttachment(attachment);
        return this;
    }
<p>
The attachment details.
</p>

@param attachment
       The attachment details.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/ConnectAttachment.java