use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class PrivatednsClient method DescribePrivateZone.
/**
*This API is used to get the private domain information.
* @param req DescribePrivateZoneRequest
* @return DescribePrivateZoneResponse
* @throws TencentCloudSDKException
*/
public DescribePrivateZoneResponse DescribePrivateZone(DescribePrivateZoneRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribePrivateZoneResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribePrivateZoneResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribePrivateZone");
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 PrivatednsClient method DeletePrivateZoneRecord.
/**
*This API is used to delete a DNS record for a private domain.
* @param req DeletePrivateZoneRecordRequest
* @return DeletePrivateZoneRecordResponse
* @throws TencentCloudSDKException
*/
public DeletePrivateZoneRecordResponse DeletePrivateZoneRecord(DeletePrivateZoneRecordRequest req) throws TencentCloudSDKException {
JsonResponseModel<DeletePrivateZoneRecordResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DeletePrivateZoneRecordResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DeletePrivateZoneRecord");
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 PrivatednsClient method DeletePrivateDNSAccount.
/**
*This API is used to delete a Private DNS account.
* @param req DeletePrivateDNSAccountRequest
* @return DeletePrivateDNSAccountResponse
* @throws TencentCloudSDKException
*/
public DeletePrivateDNSAccountResponse DeletePrivateDNSAccount(DeletePrivateDNSAccountRequest req) throws TencentCloudSDKException {
JsonResponseModel<DeletePrivateDNSAccountResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DeletePrivateDNSAccountResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DeletePrivateDNSAccount");
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 PrivatednsClient method DescribePrivateZoneRecordList.
/**
*This API is used to get the list of records for a private domain.
* @param req DescribePrivateZoneRecordListRequest
* @return DescribePrivateZoneRecordListResponse
* @throws TencentCloudSDKException
*/
public DescribePrivateZoneRecordListResponse DescribePrivateZoneRecordList(DescribePrivateZoneRecordListRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribePrivateZoneRecordListResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribePrivateZoneRecordListResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribePrivateZoneRecordList");
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 VpcClient method ModifyNatGatewayDestinationIpPortTranslationNatRule.
/**
*This API (ModifyNatGatewayDestinationIpPortTranslationNatRule) is used to modify a port forwarding rule for a NAT gateway.
* @param req ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest
* @return ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse
* @throws TencentCloudSDKException
*/
public ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse ModifyNatGatewayDestinationIpPortTranslationNatRule(ModifyNatGatewayDestinationIpPortTranslationNatRuleRequest req) throws TencentCloudSDKException {
JsonResponseModel<ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<ModifyNatGatewayDestinationIpPortTranslationNatRuleResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "ModifyNatGatewayDestinationIpPortTranslationNatRule");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations