code: public EndpointInfoBuilder availableFormats(Iterable<SerializationFormat> availableFormats) {
          requireNonNull(availableFormats, "availableFormats");
          return availableMimeTypes(Streams.stream(availableFormats).map(SerializationFormat::mediaType)
                                           .collect(toImmutableSet()));
      }
docs: Sets the available {@link SerializationFormat}s.