/** * 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); }
@Override public void deleteNetworkInterface(DeleteNetworkInterfaceRequest deleteNetworkInterfaceRequest) throws AmazonServiceException, AmazonClientException { throw new UnsupportedOperationException("Not supported in mock"); }
@Override public void delete(DeleteNetworkInterfaceRequest request) { delete(request, null); }
@Override public void delete(DeleteNetworkInterfaceRequest request, ResultCapture<Void> extractor) { resource.performAction("Delete", request, extractor); }
/** * 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);
/** * Performs the <code>Delete</code> action and use a ResultCapture to * retrieve the low-level client response. * * <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, ResultCapture<Void> extractor);