/** * Sets or replaces all mappings from the specified map as entries for the {@link CancelTaskResponse#getLinks() links} map. Nulls are not permitted * @param entries The entries that will be added to the links map * @return {@code this} builder for use in a chained invocation */ @JsonProperty("links") public final Builder links(Map<String, ? extends Link> entries) { this.links.clear(); return putAllLinks(entries); }
builder.putAllLinks(json.links);
private void from(Object object) { if (object instanceof Resource) { Resource instance = (Resource) object; createdAt(instance.getCreatedAt()); putAllLinks(instance.getLinks()); id(instance.getId()); String updatedAtValue = instance.getUpdatedAt(); if (updatedAtValue != null) { updatedAt(updatedAtValue); } } if (object instanceof Task) { Task instance = (Task) object; diskInMb(instance.getDiskInMb()); Result resultValue = instance.getResult(); if (resultValue != null) { result(resultValue); } dropletId(instance.getDropletId()); memoryInMb(instance.getMemoryInMb()); name(instance.getName()); state(instance.getState()); sequenceId(instance.getSequenceId()); String commandValue = instance.getCommand(); if (commandValue != null) { command(commandValue); } } }