com.algolia.model.ingestion.GenerateTransformationCodePayload Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
package com.algolia.model.ingestion;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** GenerateTransformationCodePayload */
public class GenerateTransformationCodePayload {
@JsonProperty("id")
private String id;
@JsonProperty("systemPrompt")
private String systemPrompt;
@JsonProperty("userPrompt")
private String userPrompt;
public GenerateTransformationCodePayload setId(String id) {
this.id = id;
return this;
}
/** Get id */
@javax.annotation.Nonnull
public String getId() {
return id;
}
public GenerateTransformationCodePayload setSystemPrompt(String systemPrompt) {
this.systemPrompt = systemPrompt;
return this;
}
/** Get systemPrompt */
@javax.annotation.Nullable
public String getSystemPrompt() {
return systemPrompt;
}
public GenerateTransformationCodePayload setUserPrompt(String userPrompt) {
this.userPrompt = userPrompt;
return this;
}
/** Get userPrompt */
@javax.annotation.Nonnull
public String getUserPrompt() {
return userPrompt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GenerateTransformationCodePayload generateTransformationCodePayload = (GenerateTransformationCodePayload) o;
return (
Objects.equals(this.id, generateTransformationCodePayload.id) &&
Objects.equals(this.systemPrompt, generateTransformationCodePayload.systemPrompt) &&
Objects.equals(this.userPrompt, generateTransformationCodePayload.userPrompt)
);
}
@Override
public int hashCode() {
return Objects.hash(id, systemPrompt, userPrompt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GenerateTransformationCodePayload {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" systemPrompt: ").append(toIndentedString(systemPrompt)).append("\n");
sb.append(" userPrompt: ").append(toIndentedString(userPrompt)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy