@Test public void testJsonSerialization() { EigrpNeighborConfig c = EigrpNeighborConfig.builder() .setAsn(1L) .setExportPolicy("policy_new") .setHostname("host") .setIp(Ip.parse("1.1.1.1")) .setVrfName("vrf") .setInterfaceName("Ethernet0") .build(); assertThat(BatfishObjectMapper.clone(c, EigrpNeighborConfig.class), equalTo(c)); }
public static Builder builder() { return new Builder(); }
EigrpNeighborConfig implements Serializable { public static Builder builder() { return new Builder(); } }
EigrpNeighborConfig implements Serializable { public static Builder builder() { return new Builder(); } private  EigrpNeighborConfig(
      long asn,
      String exportPolicy,
      String interfaceName,
      boolean isPassive,
      String hostname,
      String vrfName,
      Ip ip); }
EigrpNeighborConfig implements Serializable { public static Builder builder() { return new Builder(); } private  EigrpNeighborConfig(
      long asn,
      String exportPolicy,
      String interfaceName,
      boolean isPassive,
      String hostname,
      String vrfName,
      Ip ip); @JsonProperty(PROP_ASN) long getAsn(); @Nonnull @JsonProperty(PROP_EXPORT_POLICY) String getExportPolicy(); @Nonnull @JsonProperty(PROP_INTERFACE) String getInterfaceName(); @Nonnull @JsonProperty(PROP_IP) Ip getIp(); @Nonnull @JsonProperty(PROP_HOSTNAME) String getHostname(); @Nonnull @JsonProperty(PROP_VRF) String getVrfName(); @JsonProperty(PROP_PASSIVE) boolean isPassive(); @JsonIgnore EigrpNeighborConfigId getId(); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode(); }
EigrpNeighborConfig implements Serializable { public static Builder builder() { return new Builder(); } private  EigrpNeighborConfig(
      long asn,
      String exportPolicy,
      String interfaceName,
      boolean isPassive,
      String hostname,
      String vrfName,
      Ip ip); @JsonProperty(PROP_ASN) long getAsn(); @Nonnull @JsonProperty(PROP_EXPORT_POLICY) String getExportPolicy(); @Nonnull @JsonProperty(PROP_INTERFACE) String getInterfaceName(); @Nonnull @JsonProperty(PROP_IP) Ip getIp(); @Nonnull @JsonProperty(PROP_HOSTNAME) String getHostname(); @Nonnull @JsonProperty(PROP_VRF) String getVrfName(); @JsonProperty(PROP_PASSIVE) boolean isPassive(); @JsonIgnore EigrpNeighborConfigId getId(); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode();  }