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

com.aliyun.datahub.model.serialize.UpdateConnectorShardContextResultJsonDeser 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.UpdateConnectorShardContextRequest;
import com.aliyun.datahub.model.UpdateConnectorShardContextResult;


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

    private UpdateConnectorShardContextResultJsonDeser() {

    }

    private static UpdateConnectorShardContextResultJsonDeser instance;

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy