public CreateApiKeyResult withApiKey(ApiKey apiKey) {
        setApiKey(apiKey);
        return this;
    }
<p>
The API key.
</p>

@param apiKey
       The API key.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appsync/src/main/java/com/amazonaws/services/appsync/model/CreateApiKeyResult.java