當前位置: 首頁>>代碼示例>>Java>>正文


Java NetworkAclAssociation類代碼示例

本文整理匯總了Java中com.amazonaws.services.ec2.model.NetworkAclAssociation的典型用法代碼示例。如果您正苦於以下問題:Java NetworkAclAssociation類的具體用法?Java NetworkAclAssociation怎麽用?Java NetworkAclAssociation使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NetworkAclAssociation類屬於com.amazonaws.services.ec2.model包,在下文中一共展示了NetworkAclAssociation類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: visitNetworkAcl

import com.amazonaws.services.ec2.model.NetworkAclAssociation; //導入依賴的package包/類
private void visitNetworkAcl(VPCDiagramBuilder vpcDiagramBuilder, NetworkAcl acl) throws CfnAssistException {
	vpcDiagramBuilder.addAcl(acl);
	String networkAclId = acl.getNetworkAclId();
	logger.debug("visit acl " + networkAclId);

	for(NetworkAclAssociation assoc : acl.getAssociations()) {
		String subnetId = assoc.getSubnetId();
		vpcDiagramBuilder.associateAclWithSubnet(acl, subnetId);
		
		for(NetworkAclEntry entry : acl.getEntries()) {
			if (entry.getEgress()) {
				vpcDiagramBuilder.addACLOutbound(networkAclId, entry, subnetId);
			} else {
				vpcDiagramBuilder.addACLInbound(networkAclId, entry, subnetId);
			}
		}			
	}	
}
 
開發者ID:cartwrightian,項目名稱:cfnassist,代碼行數:19,代碼來源:VPCVisitor.java

示例2: getAssociations

import com.amazonaws.services.ec2.model.NetworkAclAssociation; //導入依賴的package包/類
@Override
public List<NetworkAclAssociation> getAssociations() {
    return (List<NetworkAclAssociation>)
            resource.getAttribute("Associations");
}
 
開發者ID:awslabs,項目名稱:aws-sdk-java-resources,代碼行數:6,代碼來源:NetworkAclImpl.java

示例3: getAssociations

import com.amazonaws.services.ec2.model.NetworkAclAssociation; //導入依賴的package包/類
/**
 * Gets the value of the Associations attribute. If this resource is not yet
 * loaded, a call to {@code load()} is made to retrieve the value of the
 * attribute.
 */
List<NetworkAclAssociation> getAssociations();
 
開發者ID:awslabs,項目名稱:aws-sdk-java-resources,代碼行數:7,代碼來源:NetworkAcl.java


注:本文中的com.amazonaws.services.ec2.model.NetworkAclAssociation類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。