|
| 1 | +/** |
| 2 | + * This file was auto-generated by Fern from our API Definition. |
| 3 | + */ |
| 4 | + |
| 5 | +package com.langfuse.client.resources.datasetitems.types; |
| 6 | + |
| 7 | +import com.fasterxml.jackson.annotation.JsonAnyGetter; |
| 8 | +import com.fasterxml.jackson.annotation.JsonAnySetter; |
| 9 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 10 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 11 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 12 | +import com.fasterxml.jackson.annotation.JsonSetter; |
| 13 | +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 14 | +import com.langfuse.client.core.ObjectMappers; |
| 15 | +import java.lang.Object; |
| 16 | +import java.lang.String; |
| 17 | +import java.util.HashMap; |
| 18 | +import java.util.Map; |
| 19 | +import java.util.Objects; |
| 20 | +import org.jetbrains.annotations.NotNull; |
| 21 | + |
| 22 | +@JsonInclude(JsonInclude.Include.NON_ABSENT) |
| 23 | +@JsonDeserialize( |
| 24 | + builder = DeleteDatasetItemResponse.Builder.class |
| 25 | +) |
| 26 | +public final class DeleteDatasetItemResponse { |
| 27 | + private final String message; |
| 28 | + |
| 29 | + private final Map<String, Object> additionalProperties; |
| 30 | + |
| 31 | + private DeleteDatasetItemResponse(String message, Map<String, Object> additionalProperties) { |
| 32 | + this.message = message; |
| 33 | + this.additionalProperties = additionalProperties; |
| 34 | + } |
| 35 | + |
| 36 | + /** |
| 37 | + * @return Success message after deletion |
| 38 | + */ |
| 39 | + @JsonProperty("message") |
| 40 | + public String getMessage() { |
| 41 | + return message; |
| 42 | + } |
| 43 | + |
| 44 | + @java.lang.Override |
| 45 | + public boolean equals(Object other) { |
| 46 | + if (this == other) return true; |
| 47 | + return other instanceof DeleteDatasetItemResponse && equalTo((DeleteDatasetItemResponse) other); |
| 48 | + } |
| 49 | + |
| 50 | + @JsonAnyGetter |
| 51 | + public Map<String, Object> getAdditionalProperties() { |
| 52 | + return this.additionalProperties; |
| 53 | + } |
| 54 | + |
| 55 | + private boolean equalTo(DeleteDatasetItemResponse other) { |
| 56 | + return message.equals(other.message); |
| 57 | + } |
| 58 | + |
| 59 | + @java.lang.Override |
| 60 | + public int hashCode() { |
| 61 | + return Objects.hash(this.message); |
| 62 | + } |
| 63 | + |
| 64 | + @java.lang.Override |
| 65 | + public String toString() { |
| 66 | + return ObjectMappers.stringify(this); |
| 67 | + } |
| 68 | + |
| 69 | + public static MessageStage builder() { |
| 70 | + return new Builder(); |
| 71 | + } |
| 72 | + |
| 73 | + public interface MessageStage { |
| 74 | + _FinalStage message(@NotNull String message); |
| 75 | + |
| 76 | + Builder from(DeleteDatasetItemResponse other); |
| 77 | + } |
| 78 | + |
| 79 | + public interface _FinalStage { |
| 80 | + DeleteDatasetItemResponse build(); |
| 81 | + } |
| 82 | + |
| 83 | + @JsonIgnoreProperties( |
| 84 | + ignoreUnknown = true |
| 85 | + ) |
| 86 | + public static final class Builder implements MessageStage, _FinalStage { |
| 87 | + private String message; |
| 88 | + |
| 89 | + @JsonAnySetter |
| 90 | + private Map<String, Object> additionalProperties = new HashMap<>(); |
| 91 | + |
| 92 | + private Builder() { |
| 93 | + } |
| 94 | + |
| 95 | + @java.lang.Override |
| 96 | + public Builder from(DeleteDatasetItemResponse other) { |
| 97 | + message(other.getMessage()); |
| 98 | + return this; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * <p>Success message after deletion</p> |
| 103 | + * @return Reference to {@code this} so that method calls can be chained together. |
| 104 | + */ |
| 105 | + @java.lang.Override |
| 106 | + @JsonSetter("message") |
| 107 | + public _FinalStage message(@NotNull String message) { |
| 108 | + this.message = Objects.requireNonNull(message, "message must not be null"); |
| 109 | + return this; |
| 110 | + } |
| 111 | + |
| 112 | + @java.lang.Override |
| 113 | + public DeleteDatasetItemResponse build() { |
| 114 | + return new DeleteDatasetItemResponse(message, additionalProperties); |
| 115 | + } |
| 116 | + } |
| 117 | +} |
0 commit comments