/** * This instance is equal to all instances of {@code ListTasksRequest} 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 ListTasksRequest && equalTo((ListTasksRequest) another); }
private ListTasksRequest(ListTasksRequest.Builder builder) { this.applicationIds = createUnmodifiableList(true, builder.applicationIds); this.names = createUnmodifiableList(true, builder.names); this.organizationIds = createUnmodifiableList(true, builder.organizationIds); this.spaceIds = createUnmodifiableList(true, builder.spaceIds); this.states = createUnmodifiableList(true, builder.states); this.taskIds = createUnmodifiableList(true, builder.taskIds); this.orderBy = builder.orderBy; this.page = builder.page; this.perPage = builder.perPage; }
/** * Builds a new {@link ListTasksRequest ListTasksRequest}. * @return An immutable instance of ListTasksRequest * @throws java.lang.IllegalStateException if any required attributes are missing */ public ListTasksRequest build() { return new ListTasksRequest(this); } }