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

com.aliyun.datahub.model.serialize.AppendDataConnectorFieldResultJsonDeser Maven / Gradle / Ivy

There is a newer version: 2.25.6
Show newest version
package com.aliyun.datahub.model.serialize;

import com.aliyun.datahub.common.transport.Response;
import com.aliyun.datahub.exception.DatahubServiceException;
import com.aliyun.datahub.model.AppendDataConnectorFieldRequest;
import com.aliyun.datahub.model.AppendDataConnectorFieldResult;


public class AppendDataConnectorFieldResultJsonDeser implements Deserializer {
    @Override
    public AppendDataConnectorFieldResult deserialize(AppendDataConnectorFieldRequest request, Response response) throws DatahubServiceException {
        if (!response.isOK()) {
            throw JsonErrorParser.getInstance().parse(response);
        }
        return new AppendDataConnectorFieldResult();
    }

    private AppendDataConnectorFieldResultJsonDeser() {

    }

    private static AppendDataConnectorFieldResultJsonDeser instance;

    public static AppendDataConnectorFieldResultJsonDeser getInstance() {
        if (instance == null)
            instance = new AppendDataConnectorFieldResultJsonDeser();
        return instance;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy