public PutPartnerEventsResultEntry withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The error code that indicates why the event submission failed.
</p>

@param errorCode
       The error code that indicates why the event submission failed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/PutPartnerEventsResultEntry.java