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

com.aliyun.datahub.model.serialize.UpdateConnectorStateResultJsonDeser 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.UpdateConnectorStateRequest;
import com.aliyun.datahub.model.UpdateConnectorStateResult;


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

    private UpdateConnectorStateResultJsonDeser() {

    }

    private static UpdateConnectorStateResultJsonDeser instance;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy