本文整理匯總了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);