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

com.aliyun.datahub.model.serialize.CreateDataConnectorResultJsonDeser 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.CreateDataConnectorRequest;
import com.aliyun.datahub.model.CreateDataConnectorResult;


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

    private CreateDataConnectorResultJsonDeser() {

    }

    private static CreateDataConnectorResultJsonDeser instance;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy