code: public EndpointInfoBuilder availableMimeTypes(Iterable<MediaType> availableMimeTypes) {
          requireNonNull(availableMimeTypes, "availableMimeTypes");
          checkArgument(!Iterables.isEmpty(availableMimeTypes), "Should at least have an available media type.");
          if (defaultMimeType != null && !Iterables.contains(availableMimeTypes, defaultMimeType)) {
              this.availableMimeTypes = addDefaultMimeType(defaultMimeType, availableMimeTypes);
          } else {
              this.availableMimeTypes = ImmutableSet.copyOf(availableMimeTypes);
          }
          return this;
      }
docs: Sets the available {@link MediaType}s.