public GetMapGlyphsRequest withKey(String key) {
        setKey(key);
        return this;
    }
<p>
The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a>
to authorize the request.
</p>

@param key
       The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API
       key</a> to authorize the request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/GetMapGlyphsRequest.java