@Test public void testJavaSerialization() { EvpnAddressFamily af = 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) .build(); assertThat(SerializationUtils.clone(af), equalTo(af)); }
@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();  }