-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add multiclusters endpoints for the search client (#34)
- Loading branch information
1 parent
e75cfff
commit 997737d
Showing
65 changed files
with
7,116 additions
and
717 deletions.
There are no files selected for viewing
106 changes: 106 additions & 0 deletions
106
...s/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AddApiKeyResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "); | ||
} | ||
} |
Oops, something went wrong.