public void setKey(String key) {
        this.key = key;
    }
<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.
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/model/GetMapTileRequest.java