use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeRocketMQGroups.
/**
*This API is used to get the list of RocketMQ consumer groups.
* @param req DescribeRocketMQGroupsRequest
* @return DescribeRocketMQGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeRocketMQGroupsResponse DescribeRocketMQGroups(DescribeRocketMQGroupsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeRocketMQGroupsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeRocketMQGroupsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeRocketMQGroups");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeTopics.
/**
*This API is used to get the list of topics under an environment.
* @param req DescribeTopicsRequest
* @return DescribeTopicsResponse
* @throws TencentCloudSDKException
*/
public DescribeTopicsResponse DescribeTopics(DescribeTopicsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeTopicsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeTopicsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeTopics");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeEnvironments.
/**
*This API is used to get the list of namespaces under a tenant.
* @param req DescribeEnvironmentsRequest
* @return DescribeEnvironmentsResponse
* @throws TencentCloudSDKException
*/
public DescribeEnvironmentsResponse DescribeEnvironments(DescribeEnvironmentsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeEnvironmentsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeEnvironmentsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeEnvironments");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DeleteSubscriptions.
/**
*This API is used to delete a subscription.
* @param req DeleteSubscriptionsRequest
* @return DeleteSubscriptionsResponse
* @throws TencentCloudSDKException
*/
public DeleteSubscriptionsResponse DeleteSubscriptions(DeleteSubscriptionsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DeleteSubscriptionsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DeleteSubscriptionsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DeleteSubscriptions");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TcaplusdbClient method DescribeApplications.
/**
*This API is used to query the list of cluster operation applications.
* @param req DescribeApplicationsRequest
* @return DescribeApplicationsResponse
* @throws TencentCloudSDKException
*/
public DescribeApplicationsResponse DescribeApplications(DescribeApplicationsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeApplicationsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeApplicationsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeApplications");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations