@Test public void testJsonSerialization() { AddressFamilyCapabilities afs = builder() .setAdditionalPathsReceive(true) .setAdditionalPathsSelectAll(true) .setAdditionalPathsSend(true) .setAdvertiseExternal(true) .setAdvertiseInactive(true) .setAllowLocalAsIn(true) .setAllowRemoteAsOut(true) .setSendCommunity(true) .setSendExtendedCommunity(true) .build(); assertThat(BatfishObjectMapper.clone(afs, AddressFamilyCapabilities.class), equalTo(afs)); }
public static Builder builder() { return new Builder(); }
AddressFamilyCapabilities implements Serializable { public static Builder builder() { return new Builder(); } }
AddressFamilyCapabilities implements Serializable { public static Builder builder() { return new Builder(); } private  AddressFamilyCapabilities(
      boolean additionalPathsReceive,
      boolean additionalPathsSelectAll,
      boolean additionalPathsSend,
      boolean advertiseExternal,
      boolean advertiseInactive,
      boolean allowLocalAsIn,
      boolean allowRemoteAsOut,
      boolean sendCommunity,
      boolean sendExtendedCommunity); }
AddressFamilyCapabilities implements Serializable { public static Builder builder() { return new Builder(); } private  AddressFamilyCapabilities(
      boolean additionalPathsReceive,
      boolean additionalPathsSelectAll,
      boolean additionalPathsSend,
      boolean advertiseExternal,
      boolean advertiseInactive,
      boolean allowLocalAsIn,
      boolean allowRemoteAsOut,
      boolean sendCommunity,
      boolean sendExtendedCommunity); @JsonProperty(PROP_ADDITIONAL_PATHS_RECEIVE) boolean getAdditionalPathsReceive(); @JsonProperty(PROP_ADDITIONAL_PATHS_SELECT_ALL) boolean getAdditionalPathsSelectAll(); @JsonProperty(PROP_ADDITIONAL_PATHS_SEND) boolean getAdditionalPathsSend(); @JsonProperty(PROP_ADVERTISE_EXTERNAL) boolean getAdvertiseExternal(); @JsonProperty(PROP_ADVERTISE_INACTIVE) boolean getAdvertiseInactive(); @JsonProperty(PROP_ALLOW_LOCAL_AS_IN) boolean getAllowLocalAsIn(); @JsonProperty(PROP_ALLOW_REMOTE_AS_OUT) boolean getAllowRemoteAsOut(); @JsonProperty(PROP_SEND_COMMUNITY) boolean getSendCommunity(); @JsonProperty(PROP_SEND_EXTENDED_COMMUNITY) boolean getSendExtendedCommunity(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); static Builder builder(); }
AddressFamilyCapabilities implements Serializable { public static Builder builder() { return new Builder(); } private  AddressFamilyCapabilities(
      boolean additionalPathsReceive,
      boolean additionalPathsSelectAll,
      boolean additionalPathsSend,
      boolean advertiseExternal,
      boolean advertiseInactive,
      boolean allowLocalAsIn,
      boolean allowRemoteAsOut,
      boolean sendCommunity,
      boolean sendExtendedCommunity); @JsonProperty(PROP_ADDITIONAL_PATHS_RECEIVE) boolean getAdditionalPathsReceive(); @JsonProperty(PROP_ADDITIONAL_PATHS_SELECT_ALL) boolean getAdditionalPathsSelectAll(); @JsonProperty(PROP_ADDITIONAL_PATHS_SEND) boolean getAdditionalPathsSend(); @JsonProperty(PROP_ADVERTISE_EXTERNAL) boolean getAdvertiseExternal(); @JsonProperty(PROP_ADVERTISE_INACTIVE) boolean getAdvertiseInactive(); @JsonProperty(PROP_ALLOW_LOCAL_AS_IN) boolean getAllowLocalAsIn(); @JsonProperty(PROP_ALLOW_REMOTE_AS_OUT) boolean getAllowRemoteAsOut(); @JsonProperty(PROP_SEND_COMMUNITY) boolean getSendCommunity(); @JsonProperty(PROP_SEND_EXTENDED_COMMUNITY) boolean getSendExtendedCommunity(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); static Builder builder();  }