public ListArchivesRequest withNamePrefix(String namePrefix) {
        setNamePrefix(namePrefix);
        return this;
    }
<p>
A name prefix to filter the archives returned. Only archives with name that match the prefix are returned.
</p>

@param namePrefix
       A name prefix to filter the archives returned. Only archives with name that match the prefix are returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/ListArchivesRequest.java