/** * Builds a new {@link ListTasksResponse ListTasksResponse}. * @return An immutable instance of ListTasksResponse * @throws java.lang.IllegalStateException if any required attributes are missing */ public ListTasksResponse build() { return new ListTasksResponse(this); } }
private ListTasksResponse(ListTasksResponse.Builder builder) { this.pagination = builder.pagination; this.resources = builder.resources == null ? null : createUnmodifiableList(true, builder.resources); }
/** * This instance is equal to all instances of {@code ListTasksResponse} that have equal attribute values. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(Object another) { if (this == another) return true; return another instanceof ListTasksResponse && equalTo((ListTasksResponse) another); }
/** * @param json A JSON-bindable data structure * @return An immutable value type * @deprecated Do not use this method directly, it exists only for the <em>Jackson</em>-binding infrastructure */ @Deprecated @JsonCreator(mode = JsonCreator.Mode.DELEGATING) static ListTasksResponse fromJson(Json json) { ListTasksResponse.Builder builder = ListTasksResponse.builder(); if (json.pagination != null) { builder.pagination(json.pagination); } if (json.resources != null) { builder.addAllResources(json.resources); } return builder.build(); }