Java 类com.amazonaws.services.ec2.model.NetworkAclAssociation 实例源码

项目:cfnassist    文件:VPCVisitor.java   
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);
            }
        }           
    }   
}
项目:aws-sdk-java-resources    文件:NetworkAclImpl.java   
@Override
public List<NetworkAclAssociation> getAssociations() {
    return (List<NetworkAclAssociation>)
            resource.getAttribute("Associations");
}
项目:aws-sdk-java-resources    文件:NetworkAcl.java   
/**
 * 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();