com.aliyun.openservices.log.response.GetRebuildIndexResponse Maven / Gradle / Ivy
package com.aliyun.openservices.log.response;
import com.aliyun.openservices.log.common.RebuildIndex;
import com.aliyun.openservices.log.exception.LogException;
import com.aliyun.openservices.log.internal.ErrorCodes;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
public class GetRebuildIndexResponse extends Response {
private static final long serialVersionUID = 709919332677334375L;
private RebuildIndex rebuildIndex;
public GetRebuildIndexResponse(Map headers) {
super(headers);
}
public RebuildIndex getRebuildIndex() {
return rebuildIndex;
}
public void deserialize(JSONObject value, String requestId) throws LogException {
rebuildIndex = new RebuildIndex();
try {
rebuildIndex.deserialize(value);
} catch (final Exception ex) {
throw new LogException(ErrorCodes.BAD_RESPONSE,
"Unable to deserialize JSON to model: " + ex.getMessage(), ex, requestId);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy