com.ziqni.admin.sdk.model.UpdateTranslationRequestAllOf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ziqni-admin-sdk Show documentation
Show all versions of ziqni-admin-sdk Show documentation
ZIQNI Admin SDK Java Client
/*
* ZIQNI Admin API
* Ziqni Application Services are used to manage and configure spaces.
*
* The version of the OpenAPI document: 3.0.11
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.ziqni.admin.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.ziqni.admin.sdk.model.TranslationEntry;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* UpdateTranslationRequestAllOf
*/
@JsonPropertyOrder({
UpdateTranslationRequestAllOf.JSON_PROPERTY_ENTITY_ID,
UpdateTranslationRequestAllOf.JSON_PROPERTY_ENTITY_TYPE,
UpdateTranslationRequestAllOf.JSON_PROPERTY_LANGUAGE_ID,
UpdateTranslationRequestAllOf.JSON_PROPERTY_LANGUAGE_KEY,
UpdateTranslationRequestAllOf.JSON_PROPERTY_TRANSLATIONS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class UpdateTranslationRequestAllOf {
public static final String JSON_PROPERTY_ENTITY_ID = "entityId";
private String entityId;
public static final String JSON_PROPERTY_ENTITY_TYPE = "entityType";
private String entityType;
public static final String JSON_PROPERTY_LANGUAGE_ID = "languageId";
private String languageId;
public static final String JSON_PROPERTY_LANGUAGE_KEY = "languageKey";
private String languageKey;
public static final String JSON_PROPERTY_TRANSLATIONS = "translations";
private List translations = new ArrayList<>();
public UpdateTranslationRequestAllOf entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* Get entityId
* @return entityId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEntityId() {
return entityId;
}
@JsonProperty(JSON_PROPERTY_ENTITY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEntityId(String entityId) {
this.entityId = entityId;
}
public UpdateTranslationRequestAllOf entityType(String entityType) {
this.entityType = entityType;
return this;
}
/**
* Get entityType
* @return entityType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEntityType() {
return entityType;
}
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEntityType(String entityType) {
this.entityType = entityType;
}
public UpdateTranslationRequestAllOf languageId(String languageId) {
this.languageId = languageId;
return this;
}
/**
* Get languageId
* @return languageId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LANGUAGE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLanguageId() {
return languageId;
}
@JsonProperty(JSON_PROPERTY_LANGUAGE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLanguageId(String languageId) {
this.languageId = languageId;
}
public UpdateTranslationRequestAllOf languageKey(String languageKey) {
this.languageKey = languageKey;
return this;
}
/**
* Get languageKey
* @return languageKey
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LANGUAGE_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLanguageKey() {
return languageKey;
}
@JsonProperty(JSON_PROPERTY_LANGUAGE_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLanguageKey(String languageKey) {
this.languageKey = languageKey;
}
public UpdateTranslationRequestAllOf translations(List translations) {
this.translations = translations;
return this;
}
public UpdateTranslationRequestAllOf addTranslationsItem(TranslationEntry translationsItem) {
this.translations.add(translationsItem);
return this;
}
/**
* Get translations
* @return translations
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_TRANSLATIONS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getTranslations() {
return translations;
}
@JsonProperty(JSON_PROPERTY_TRANSLATIONS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTranslations(List translations) {
this.translations = translations;
}
/**
* Return true if this UpdateTranslationRequest_allOf object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateTranslationRequestAllOf updateTranslationRequestAllOf = (UpdateTranslationRequestAllOf) o;
return Objects.equals(this.entityId, updateTranslationRequestAllOf.entityId) &&
Objects.equals(this.entityType, updateTranslationRequestAllOf.entityType) &&
Objects.equals(this.languageId, updateTranslationRequestAllOf.languageId) &&
Objects.equals(this.languageKey, updateTranslationRequestAllOf.languageKey) &&
Objects.equals(this.translations, updateTranslationRequestAllOf.translations);
}
@Override
public int hashCode() {
return Objects.hash(entityId, entityType, languageId, languageKey, translations);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateTranslationRequestAllOf {\n");
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n");
sb.append(" languageId: ").append(toIndentedString(languageId)).append("\n");
sb.append(" languageKey: ").append(toIndentedString(languageKey)).append("\n");
sb.append(" translations: ").append(toIndentedString(translations)).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