@Test public void testJsonSerialization() { Builder builder = builder() .setAddressFamilyCapabilities( AddressFamilyCapabilities.builder().setSendCommunity(true).build()) .setExportPolicy("export") .setImportPolicy("import") .setExportPolicySources(ImmutableSortedSet.of("foo")) .setImportPolicySources(ImmutableSortedSet.of("bar")) .setL2Vnis(ImmutableSet.of()) .setL3Vnis(ImmutableSet.of()) .setRouteReflectorClient(true) .setPropagateUnmatched(true); EvpnAddressFamily af1 = builder.build(); assertThat(BatfishObjectMapper.clone(af1, EvpnAddressFamily.class), equalTo(af1)); EvpnAddressFamily af2 = builder.setPropagateUnmatched(false).build(); assertThat(BatfishObjectMapper.clone(af2, EvpnAddressFamily.class), equalTo(af2)); }
@Nonnull public static Builder builder() { return new Builder(); }
EvpnAddressFamily extends AddressFamily { @Nonnull public static Builder builder() { return new Builder(); } }
EvpnAddressFamily extends AddressFamily { @Nonnull public static Builder builder() { return new Builder(); } protected  EvpnAddressFamily(
      // super fields
      AddressFamilyCapabilities addressFamilyCapabilities,
      @Nullable String exportPolicy,
      SortedSet<String> exportPolicySources,
      @Nullable String importPolicy,
      SortedSet<String> importPolicySources,
      boolean routeReflectorClient,
      // local fields
      Set<Layer2VniConfig> l2Vnis,
      Set<Layer3VniConfig> l3Vnis,
      boolean propagateUnmatched); }
EvpnAddressFamily extends AddressFamily { @Nonnull public static Builder builder() { return new Builder(); } protected  EvpnAddressFamily(
      // super fields
      AddressFamilyCapabilities addressFamilyCapabilities,
      @Nullable String exportPolicy,
      SortedSet<String> exportPolicySources,
      @Nullable String importPolicy,
      SortedSet<String> importPolicySources,
      boolean routeReflectorClient,
      // local fields
      Set<Layer2VniConfig> l2Vnis,
      Set<Layer3VniConfig> l3Vnis,
      boolean propagateUnmatched); @Nonnull @JsonProperty(PROP_L2_VNIS) SortedSet<Layer2VniConfig> getL2VNIs(); @Nonnull @JsonProperty(PROP_L3_VNIS) SortedSet<Layer3VniConfig> getL3VNIs(); @JsonProperty(PROP_PROPAGATE_UNMATCHED) boolean getPropagateUnmatched(); @Override Type getType(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull static Builder builder(); }
EvpnAddressFamily extends AddressFamily { @Nonnull public static Builder builder() { return new Builder(); } protected  EvpnAddressFamily(
      // super fields
      AddressFamilyCapabilities addressFamilyCapabilities,
      @Nullable String exportPolicy,
      SortedSet<String> exportPolicySources,
      @Nullable String importPolicy,
      SortedSet<String> importPolicySources,
      boolean routeReflectorClient,
      // local fields
      Set<Layer2VniConfig> l2Vnis,
      Set<Layer3VniConfig> l3Vnis,
      boolean propagateUnmatched); @Nonnull @JsonProperty(PROP_L2_VNIS) SortedSet<Layer2VniConfig> getL2VNIs(); @Nonnull @JsonProperty(PROP_L3_VNIS) SortedSet<Layer3VniConfig> getL3VNIs(); @JsonProperty(PROP_PROPAGATE_UNMATCHED) boolean getPropagateUnmatched(); @Override Type getType(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull static Builder builder();  }