com.algolia.model.ingestion.TransformationCreate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoliasearch Show documentation
Show all versions of algoliasearch Show documentation
Java client for Algolia Search API
The newest version!
// 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.ArrayList;
import java.util.List;
import java.util.Objects;
/** API request body for creating a transformation. */
public class TransformationCreate {
@JsonProperty("code")
private String code;
@JsonProperty("name")
private String name;
@JsonProperty("description")
private String description;
@JsonProperty("authenticationIDs")
private List authenticationIDs;
public TransformationCreate setCode(String code) {
this.code = code;
return this;
}
/** The source code of the transformation. */
@javax.annotation.Nonnull
public String getCode() {
return code;
}
public TransformationCreate setName(String name) {
this.name = name;
return this;
}
/** The uniquely identified name of your transformation. */
@javax.annotation.Nonnull
public String getName() {
return name;
}
public TransformationCreate setDescription(String description) {
this.description = description;
return this;
}
/** A descriptive name for your transformation of what it does. */
@javax.annotation.Nullable
public String getDescription() {
return description;
}
public TransformationCreate setAuthenticationIDs(List authenticationIDs) {
this.authenticationIDs = authenticationIDs;
return this;
}
public TransformationCreate addAuthenticationIDs(String authenticationIDsItem) {
if (this.authenticationIDs == null) {
this.authenticationIDs = new ArrayList<>();
}
this.authenticationIDs.add(authenticationIDsItem);
return this;
}
/** The authentications associated with the current transformation. */
@javax.annotation.Nullable
public List getAuthenticationIDs() {
return authenticationIDs;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TransformationCreate transformationCreate = (TransformationCreate) o;
return (
Objects.equals(this.code, transformationCreate.code) &&
Objects.equals(this.name, transformationCreate.name) &&
Objects.equals(this.description, transformationCreate.description) &&
Objects.equals(this.authenticationIDs, transformationCreate.authenticationIDs)
);
}
@Override
public int hashCode() {
return Objects.hash(code, name, description, authenticationIDs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TransformationCreate {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" authenticationIDs: ").append(toIndentedString(authenticationIDs)).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