Skip to content

Commit

Permalink
feat: add multiclusters endpoints for the search client (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxenceMaire authored Dec 16, 2021
1 parent e75cfff commit 997737d
Show file tree
Hide file tree
Showing 65 changed files with 7,116 additions and 717 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
package com.algolia.model;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.Objects;

/** AddApiKeyResponse */
public class AddApiKeyResponse {

public static final String SERIALIZED_NAME_KEY = "key";

@SerializedName(SERIALIZED_NAME_KEY)
private String key;

public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";

@SerializedName(SERIALIZED_NAME_CREATED_AT)
private OffsetDateTime createdAt;

public AddApiKeyResponse key(String key) {
this.key = key;
return this;
}

/**
* Key string.
*
* @return key
*/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Key string.")
public String getKey() {
return key;
}

public void setKey(String key) {
this.key = key;
}

public AddApiKeyResponse createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}

/**
* Date of creation (ISO-8601 format).
*
* @return createdAt
*/
@javax.annotation.Nonnull
@ApiModelProperty(
required = true,
value = "Date of creation (ISO-8601 format)."
)
public OffsetDateTime getCreatedAt() {
return createdAt;
}

public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AddApiKeyResponse addApiKeyResponse = (AddApiKeyResponse) o;
return (
Objects.equals(this.key, addApiKeyResponse.key) &&
Objects.equals(this.createdAt, addApiKeyResponse.createdAt)
);
}

@Override
public int hashCode() {
return Objects.hash(key, createdAt);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AddApiKeyResponse {\n");
sb.append(" key: ").append(toIndentedString(key)).append("\n");
sb
.append(" createdAt: ")
.append(toIndentedString(createdAt))
.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 ");
}
}
Loading

0 comments on commit 997737d

Please sign in to comment.