private CreateRouteTableResponseType createRouteTable ( final String vpcId , final String cidrBlock ) { CreateRouteTableResponseType ret = new CreateRouteTableResponseType ( ) ; ret . setRequestId ( UUID . randomUUID ( ) . toString ( ) ) ; MockRouteTable mockRouteTable = mockRouteTableController . createRouteTable ( cidrBlock , vpcId ) ; RouteTableType routeTableType = new RouteTableType ( ) ; routeTableType . setVpcId ( mockRouteTable . getVpcId ( ) ) ; routeTableType . setRouteTableId ( mockRouteTable . getRouteTableId ( ) ) ; ret . setRouteTable ( routeTableType ) ; return ret ; }
Handles createRouteTable request to create routetable and returns response with a route table .