本文整理汇总了Java中com.amazonaws.services.ec2.model.DeleteNetworkInterfaceRequest类的典型用法代码示例。如果您正苦于以下问题:Java DeleteNetworkInterfaceRequest类的具体用法?Java DeleteNetworkInterfaceRequest怎么用?Java DeleteNetworkInterfaceRequest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DeleteNetworkInterfaceRequest类属于com.amazonaws.services.ec2.model包,在下文中一共展示了DeleteNetworkInterfaceRequest类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deleteNICDirectlyWithEC2Client
import com.amazonaws.services.ec2.model.DeleteNetworkInterfaceRequest; //导入依赖的package包/类
/**
* Delete an AWS Nic by id
*/
public static void deleteNICDirectlyWithEC2Client(AmazonEC2Client client,
VerificationHost host, String nicId) {
if (nicId == null) {
return;
}
DeleteNetworkInterfaceRequest deleteNicRequest = new DeleteNetworkInterfaceRequest()
.withNetworkInterfaceId(nicId);
host.log("Clean-up NIC with id: %s", nicId);
client.deleteNetworkInterface(deleteNicRequest);
}
示例2: deleteNetworkInterface
import com.amazonaws.services.ec2.model.DeleteNetworkInterfaceRequest; //导入依赖的package包/类
@Override
public void deleteNetworkInterface(DeleteNetworkInterfaceRequest deleteNetworkInterfaceRequest) throws AmazonServiceException, AmazonClientException {
throw new UnsupportedOperationException("Not supported in mock");
}
示例3: delete
import com.amazonaws.services.ec2.model.DeleteNetworkInterfaceRequest; //导入依赖的package包/类
@Override
public void delete(DeleteNetworkInterfaceRequest request) {
delete(request, null);
}
示例4: delete
import com.amazonaws.services.ec2.model.DeleteNetworkInterfaceRequest; //导入依赖的package包/类
/**
* Performs the <code>Delete</code> action.
*
* <p>
* The following request parameters will be populated from the data of this
* <code>NetworkInterface</code> resource, and any conflicting parameter
* value set in the request will be overridden:
* <ul>
* <li>
* <b><code>NetworkInterfaceId</code></b>
* - mapped from the <code>Id</code> identifier.
* </li>
* </ul>
*
* <p>
*
* @see DeleteNetworkInterfaceRequest
*/
void delete(DeleteNetworkInterfaceRequest request);