com.algolia.model.ingestion.DestinationCreate 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 new destination. */
public class DestinationCreate {
@JsonProperty("type")
private DestinationType type;
@JsonProperty("name")
private String name;
@JsonProperty("input")
private DestinationInput input;
@JsonProperty("authenticationID")
private String authenticationID;
@JsonProperty("transformationIDs")
private List transformationIDs;
public DestinationCreate setType(DestinationType type) {
this.type = type;
return this;
}
/** Get type */
@javax.annotation.Nonnull
public DestinationType getType() {
return type;
}
public DestinationCreate setName(String name) {
this.name = name;
return this;
}
/** Descriptive name for the resource. */
@javax.annotation.Nonnull
public String getName() {
return name;
}
public DestinationCreate setInput(DestinationInput input) {
this.input = input;
return this;
}
/** Get input */
@javax.annotation.Nonnull
public DestinationInput getInput() {
return input;
}
public DestinationCreate setAuthenticationID(String authenticationID) {
this.authenticationID = authenticationID;
return this;
}
/** Universally unique identifier (UUID) of an authentication resource. */
@javax.annotation.Nullable
public String getAuthenticationID() {
return authenticationID;
}
public DestinationCreate setTransformationIDs(List transformationIDs) {
this.transformationIDs = transformationIDs;
return this;
}
public DestinationCreate addTransformationIDs(String transformationIDsItem) {
if (this.transformationIDs == null) {
this.transformationIDs = new ArrayList<>();
}
this.transformationIDs.add(transformationIDsItem);
return this;
}
/** Get transformationIDs */
@javax.annotation.Nullable
public List getTransformationIDs() {
return transformationIDs;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DestinationCreate destinationCreate = (DestinationCreate) o;
return (
Objects.equals(this.type, destinationCreate.type) &&
Objects.equals(this.name, destinationCreate.name) &&
Objects.equals(this.input, destinationCreate.input) &&
Objects.equals(this.authenticationID, destinationCreate.authenticationID) &&
Objects.equals(this.transformationIDs, destinationCreate.transformationIDs)
);
}
@Override
public int hashCode() {
return Objects.hash(type, name, input, authenticationID, transformationIDs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DestinationCreate {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" input: ").append(toIndentedString(input)).append("\n");
sb.append(" authenticationID: ").append(toIndentedString(authenticationID)).append("\n");
sb.append(" transformationIDs: ").append(toIndentedString(transformationIDs)).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