use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class VpcClient method DescribeGatewayFlowQos.
/**
*This API (DescribeGatewayFlowQos) is used to query the QoS bandwidth limit of inbound IP flow in a gateway.
* @param req DescribeGatewayFlowQosRequest
* @return DescribeGatewayFlowQosResponse
* @throws TencentCloudSDKException
*/
public DescribeGatewayFlowQosResponse DescribeGatewayFlowQos(DescribeGatewayFlowQosRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeGatewayFlowQosResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeGatewayFlowQosResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeGatewayFlowQos");
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 CreateNetworkAcl.
/**
*This API is used to create a <a href="https://intl.cloud.tencent.com/document/product/215/20088?from_cn_redirect=1">network ACL</a>.
* The inbound and outbound rules for a new network ACL are "Deny All" by default. You need to call `ModifyNetworkAclEntries` after creation to set rules for the network ACL as needed.
* @param req CreateNetworkAclRequest
* @return CreateNetworkAclResponse
* @throws TencentCloudSDKException
*/
public CreateNetworkAclResponse CreateNetworkAcl(CreateNetworkAclRequest req) throws TencentCloudSDKException {
JsonResponseModel<CreateNetworkAclResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<CreateNetworkAclResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "CreateNetworkAcl");
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 DisassociateNatGatewayAddress.
/**
*This API (DisassociateNatGatewayAddress) is used to unbind an EIP from a NAT gateway.
* @param req DisassociateNatGatewayAddressRequest
* @return DisassociateNatGatewayAddressResponse
* @throws TencentCloudSDKException
*/
public DisassociateNatGatewayAddressResponse DisassociateNatGatewayAddress(DisassociateNatGatewayAddressRequest req) throws TencentCloudSDKException {
JsonResponseModel<DisassociateNatGatewayAddressResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DisassociateNatGatewayAddressResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DisassociateNatGatewayAddress");
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 VodClient method WeChatMiniProgramPublish.
/**
*This API is used to publish a VOD video on WeChat Mini Program for playback in the WeChat Mini Program player.
* @param req WeChatMiniProgramPublishRequest
* @return WeChatMiniProgramPublishResponse
* @throws TencentCloudSDKException
*/
public WeChatMiniProgramPublishResponse WeChatMiniProgramPublish(WeChatMiniProgramPublishRequest req) throws TencentCloudSDKException {
JsonResponseModel<WeChatMiniProgramPublishResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<WeChatMiniProgramPublishResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "WeChatMiniProgramPublish");
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 ModifyNetworkAclEntries.
/**
*This API is used to modify (add or delete) the inbound and outbound rules of a network ACL.
* @param req ModifyNetworkAclEntriesRequest
* @return ModifyNetworkAclEntriesResponse
* @throws TencentCloudSDKException
*/
public ModifyNetworkAclEntriesResponse ModifyNetworkAclEntries(ModifyNetworkAclEntriesRequest req) throws TencentCloudSDKException {
JsonResponseModel<ModifyNetworkAclEntriesResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<ModifyNetworkAclEntriesResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "ModifyNetworkAclEntries");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations