public AwsApiCallAction withApi(String api) {
        setApi(api);
        return this;
    }
<p>
The Amazon Web Services API name.
</p>

@param api
       The Amazon Web Services API name.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/AwsApiCallAction.java