/** * 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); }
/** * Creates a builder for {@link ListTasksResponse ListTasksResponse}. * @return A new ListTasksResponse builder */ public static ListTasksResponse.Builder builder() { return new ListTasksResponse.Builder(); }
/** * 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 Mono<CreateTaskResponse> requestCreateTask(String applicationId, String command, int memory, String name) { return this.client.tasks() .create(CreateTaskRequest.builder() .applicationId(applicationId) .command(command) .memoryInMb(memory) .name(name) .build()); }
/** * Fill a builder with attribute values from the provided {@code CreateTaskRequest} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(CreateTaskRequest instance) { return from((_CreateTaskRequest) instance); }
/** * Creates a builder for {@link GetTaskRequest GetTaskRequest}. * @return A new GetTaskRequest builder */ public static GetTaskRequest.Builder builder() { return new GetTaskRequest.Builder(); }
/** * Fill a builder with attribute values from the provided {@code GetTaskRequest} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(GetTaskRequest instance) { return from((_GetTaskRequest) instance); }
/** * This instance is equal to all instances of {@code CreateTaskRequest} 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 CreateTaskRequest && equalTo((CreateTaskRequest) another); }
/** * Fill a builder with attribute values from the provided {@code Result} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(Result instance) { return from((_Result) instance); }
/** * 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); }
/** * Creates a builder for {@link CancelTaskResponse CancelTaskResponse}. * @return A new CancelTaskResponse builder */ public static CancelTaskResponse.Builder builder() { return new CancelTaskResponse.Builder(); }
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); } }
/** * Creates a builder for {@link GetTaskResponse GetTaskResponse}. * @return A new GetTaskResponse builder */ public static GetTaskResponse.Builder builder() { return new GetTaskResponse.Builder(); }
/** * Creates a builder for {@link CancelTaskRequest CancelTaskRequest}. * @return A new CancelTaskRequest builder */ public static CancelTaskRequest.Builder builder() { return new CancelTaskRequest.Builder(); }
/** * This instance is equal to all instances of {@code TaskResource} 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 TaskResource && equalTo((TaskResource) another); }
/** * This instance is equal to all instances of {@code CancelTaskResponse} 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 CancelTaskResponse && equalTo((CancelTaskResponse) another); }