本文整理匯總了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);
}
}
}
}
示例2: getAssociations
import com.amazonaws.services.ec2.model.NetworkAclAssociation; //導入依賴的package包/類
@Override
public List<NetworkAclAssociation> getAssociations() {
return (List<NetworkAclAssociation>)
resource.getAttribute("Associations");
}
示例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();