public BatchCreateChannelMembershipError withErrorCode(String errorCode) {
        setErrorCode(errorCode);
        return this;
    }
<p>
The error code.
</p>

@param errorCode
       The error code.
@return Returns a reference to this object so that method calls can be chained together.
@see ErrorCode
aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java