private CreateTaskResponse(CreateTaskResponse.Builder builder) { this.command = builder.command; this.diskInMb = builder.diskInMb; this.dropletId = builder.dropletId; this.memoryInMb = builder.memoryInMb; this.name = builder.name; this.result = builder.result; this.sequenceId = builder.sequenceId; this.state = builder.state; this.createdAt = builder.createdAt; this.id = builder.id; this.links = createUnmodifiableMap(false, false, builder.links); this.updatedAt = builder.updatedAt; }
/** * This instance is equal to all instances of {@code CreateTaskResponse} 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 CreateTaskResponse && equalTo((CreateTaskResponse) another); }
/** * Builds a new {@link CreateTaskResponse CreateTaskResponse}. * @return An immutable instance of CreateTaskResponse * @throws java.lang.IllegalStateException if any required attributes are missing */ public CreateTaskResponse build() { if (initBits != 0) { throw new IllegalStateException(formatRequiredAttributesMessage()); } return new CreateTaskResponse(this); }
@JsonCreator(mode = JsonCreator.Mode.DELEGATING) static CreateTaskResponse fromJson(Json json) { CreateTaskResponse.Builder builder = CreateTaskResponse.builder(); if (json.command != null) { builder.command(json.command);