All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qingxun.javasdkapi.request.AudioGetDownloadUrlRequest Maven / Gradle / Ivy

Go to download

openapi SDK for Java Copyright © 2023 杭州轻寻科技 All rights reserved. 版权所有 (C)杭州轻寻科技 http://open.qingxun.com

The newest version!
package com.qingxun.javasdkapi.request;

import java.util.TreeMap;

/**
 * 查询翻译进度请求参数
 */
public class AudioGetDownloadUrlRequest extends BaseRequest {

    private int recordId;


    private AudioGetDownloadUrlRequest() {
        super();
    }

    public AudioGetDownloadUrlRequest(Builder builder) {

        if (builder.recordId == null) {
            throw new NullPointerException("tid 字段为空");
        }
        this.recordId = builder.recordId;
    }

    @Override
    public TreeMap transToMap() {
        TreeMap map = new TreeMap();
        map.put("recordId", this.recordId);
        return map;
    }

    public static class Builder {

        private Integer recordId;

        public Builder setRecordId(Integer recordId) {
            this.recordId = recordId;
            return this;
        }

        public AudioGetDownloadUrlRequest builder() {
            return new AudioGetDownloadUrlRequest(this);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy