/** * This instance is equal to all instances of {@code GetTaskRequest} 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 GetTaskRequest && equalTo((GetTaskRequest) another); }
/** * Builds a new {@link GetTaskRequest GetTaskRequest}. * @return An immutable instance of GetTaskRequest * @throws java.lang.IllegalStateException if any required attributes are missing */ public GetTaskRequest build() { if (initBits != 0) { throw new IllegalStateException(formatRequiredAttributesMessage()); } return new GetTaskRequest(this); }
@Override public Mono<GetTaskResponse> get(GetTaskRequest request) { return get(request, GetTaskResponse.class, builder -> builder.pathSegment("v3", "tasks", request.getTaskId())); }
private Mono<GetTaskResponse> requestGetTask(String taskId) { return this.client.tasks() .get(GetTaskRequest.builder() .taskId(taskId) .build()); }