public AwsApiCallAction withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The error code of the failed Amazon Web Services API action.
</p>

@param errorCode
       The error code of the failed Amazon Web Services API action.
@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