code: public ApiSuccessResponse setDNDOn(DndOnBody1 dndOnBody) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = setDNDOnWithHttpInfo(dndOnBody);
          return resp.getData();
      }
docs: Set the agent state to Do Not Disturb
  Set the current agent&#39;s state to Do Not Disturb on the voice channel.
  @param dndOnBody Request parameters. (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body