use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class MariadbClient method DescribeFlow.
/**
*This API is used to query flow status.
* @param req DescribeFlowRequest
* @return DescribeFlowResponse
* @throws TencentCloudSDKException
*/
public DescribeFlowResponse DescribeFlow(DescribeFlowRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeFlowResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeFlowResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeFlow");
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 MariadbClient method ModifyBackupTime.
/**
*This API is used to set the backup time of a TencentDB instance. The backend system will perform instance backup regularly according to this configuration.
* @param req ModifyBackupTimeRequest
* @return ModifyBackupTimeResponse
* @throws TencentCloudSDKException
*/
public ModifyBackupTimeResponse ModifyBackupTime(ModifyBackupTimeRequest req) throws TencentCloudSDKException {
JsonResponseModel<ModifyBackupTimeResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<ModifyBackupTimeResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "ModifyBackupTime");
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 MariadbClient method DescribeDBSlowLogs.
/**
*This API is used to query the slow query log list.
* @param req DescribeDBSlowLogsRequest
* @return DescribeDBSlowLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeDBSlowLogsResponse DescribeDBSlowLogs(DescribeDBSlowLogsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeDBSlowLogsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeDBSlowLogsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeDBSlowLogs");
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 MariadbClient method ModifyDBInstanceSecurityGroups.
/**
*This API is used to modify the security groups associated with TencentDB.
* @param req ModifyDBInstanceSecurityGroupsRequest
* @return ModifyDBInstanceSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public ModifyDBInstanceSecurityGroupsResponse ModifyDBInstanceSecurityGroups(ModifyDBInstanceSecurityGroupsRequest req) throws TencentCloudSDKException {
JsonResponseModel<ModifyDBInstanceSecurityGroupsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<ModifyDBInstanceSecurityGroupsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "ModifyDBInstanceSecurityGroups");
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 LiveClient method DescribeBillBandwidthAndFluxList.
/**
*This API is used to query the data of billable LVB bandwidth and traffic.
* @param req DescribeBillBandwidthAndFluxListRequest
* @return DescribeBillBandwidthAndFluxListResponse
* @throws TencentCloudSDKException
*/
public DescribeBillBandwidthAndFluxListResponse DescribeBillBandwidthAndFluxList(DescribeBillBandwidthAndFluxListRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeBillBandwidthAndFluxListResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeBillBandwidthAndFluxListResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeBillBandwidthAndFluxList");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations