use of com.tencentcloudapi.common.JsonResponseModel 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.JsonResponseModel 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.JsonResponseModel 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;
}
use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class VpcClient method ModifyNatGatewayAttribute.
/**
*This API (ModifyNatGatewayAttribute) is used to modify the attributes of a NAT gateway.
* @param req ModifyNatGatewayAttributeRequest
* @return ModifyNatGatewayAttributeResponse
* @throws TencentCloudSDKException
*/
public ModifyNatGatewayAttributeResponse ModifyNatGatewayAttribute(ModifyNatGatewayAttributeRequest req) throws TencentCloudSDKException {
JsonResponseModel<ModifyNatGatewayAttributeResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<ModifyNatGatewayAttributeResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "ModifyNatGatewayAttribute");
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.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class VpcClient method WithdrawNotifyRoutes.
/**
*This API is used to withdraw a route from CCN. This can also be done by clicking the **Withdraw from CCN** button on the route table page.
* @param req WithdrawNotifyRoutesRequest
* @return WithdrawNotifyRoutesResponse
* @throws TencentCloudSDKException
*/
public WithdrawNotifyRoutesResponse WithdrawNotifyRoutes(WithdrawNotifyRoutesRequest req) throws TencentCloudSDKException {
JsonResponseModel<WithdrawNotifyRoutesResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<WithdrawNotifyRoutesResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "WithdrawNotifyRoutes");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations