Example usage for com.amazonaws.services.ec2.model RouteTable getAssociations

List of usage examples for com.amazonaws.services.ec2.model RouteTable getAssociations

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model RouteTable getAssociations.

Prototype


public java.util.List<RouteTableAssociation> getAssociations() 

Source Link

Document

The associations between the route table and one or more subnets.

Usage

From source file:com.infinitechaos.vpcviewer.web.rest.dto.RouteTableDTO.java

License:Open Source License

public RouteTableDTO(final RouteTable routeTable) {
    this.routeTableId = routeTable.getRouteTableId();
    this.vpcId = routeTable.getVpcId();
    this.routes.addAll(routeTable.getRoutes().stream().map(RouteDTO::new).collect(Collectors.toList()));
    this.tags.addAll(routeTable.getTags().stream().map(TagDTO::new).collect(Collectors.toList()));
    this.associations.addAll(routeTable.getAssociations().stream().map(RouteTableAssociationDTO::new)
            .collect(Collectors.toList()));
    this.propagatingVgws.addAll(
            routeTable.getPropagatingVgws().stream().map(PropagatingVgwDTO::new).collect(Collectors.toList()));
}