code: public ApiSuccessResponse mediaSwicthToBargeIn(String mediatype, String id, MediaSwicthToCoachData mediaSwicthToCoachData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = mediaSwicthToBargeInWithHttpInfo(mediatype, id, mediaSwicthToCoachData);
          return resp.getData();
      }
docs: Switch to barge-in
  Switch to the barge-in monitoring mode for the specified chat. Both the agent and the customer can see the supervisor&#39;s messages.
  @param mediatype The media channel. (required)
  @param id The ID of the chat interaction. (required)
  @param mediaSwicthToCoachData Request parameters. (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body