@Test public void testToConfigurationNodes() { VpcEndpointInterface vpcEndpointInterface = new VpcEndpointInterface( "endpoint", "service", "vpc", ImmutableList.of("net1", "net2"), ImmutableList.of("sub1", "sub2"), ImmutableMap.of(TAG_NAME, "human")); List<Configuration> configurations = vpcEndpointInterface.toConfigurationNodes( new ConvertedConfiguration(), Region.builder("r1").build(), new Warnings()); assertThat( configurations.stream() .map(Configuration::getHostname) .collect(ImmutableList.toImmutableList()), equalTo( ImmutableList.of( getNodeId("sub1", vpcEndpointInterface.getId()), getNodeId("sub2", vpcEndpointInterface.getId())))); }
@Override List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { return _subnetIds.stream() .map(subnetId -> toConfigurationNode(subnetId, awsConfiguration, region, warnings)) .collect(ImmutableList.toImmutableList()); }
VpcEndpointInterface extends VpcEndpoint { @Override List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { return _subnetIds.stream() .map(subnetId -> toConfigurationNode(subnetId, awsConfiguration, region, warnings)) .collect(ImmutableList.toImmutableList()); } }
VpcEndpointInterface extends VpcEndpoint { @Override List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { return _subnetIds.stream() .map(subnetId -> toConfigurationNode(subnetId, awsConfiguration, region, warnings)) .collect(ImmutableList.toImmutableList()); } VpcEndpointInterface(
      String id,
      String serviceName,
      String vpcId,
      List<String> networkInterfaceIds,
      List<String> subnetIds,
      Map<String, String> tags); }
VpcEndpointInterface extends VpcEndpoint { @Override List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { return _subnetIds.stream() .map(subnetId -> toConfigurationNode(subnetId, awsConfiguration, region, warnings)) .collect(ImmutableList.toImmutableList()); } VpcEndpointInterface(
      String id,
      String serviceName,
      String vpcId,
      List<String> networkInterfaceIds,
      List<String> subnetIds,
      Map<String, String> tags); @Nonnull List<String> getNetworkInterfaceIds(); @Nonnull List<String> getSubnetIds(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
VpcEndpointInterface extends VpcEndpoint { @Override List<Configuration> toConfigurationNodes( ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) { return _subnetIds.stream() .map(subnetId -> toConfigurationNode(subnetId, awsConfiguration, region, warnings)) .collect(ImmutableList.toImmutableList()); } VpcEndpointInterface(
      String id,
      String serviceName,
      String vpcId,
      List<String> networkInterfaceIds,
      List<String> subnetIds,
      Map<String, String> tags); @Nonnull List<String> getNetworkInterfaceIds(); @Nonnull List<String> getSubnetIds(); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }