com.ziqni.admin.sdk.model.ProductReducedAllOf 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. Change log: 2024-02-27 Added rewards reduced to the LeaderboardEntry response
*
* The version of the OpenAPI document: 3.0.17
* 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ProductReducedAllOf
*/
@JsonPropertyOrder({
ProductReducedAllOf.JSON_PROPERTY_NAME,
ProductReducedAllOf.JSON_PROPERTY_PRODUCT_REF_ID,
ProductReducedAllOf.JSON_PROPERTY_TAGS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductReducedAllOf {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_PRODUCT_REF_ID = "productRefId";
private String productRefId;
public static final String JSON_PROPERTY_TAGS = "tags";
private List tags = null;
public ProductReducedAllOf name(String name) {
this.name = name;
return this;
}
/**
* The name of the product
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Hockey madness", value = "The name of the product")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setName(String name) {
this.name = name;
}
public ProductReducedAllOf productRefId(String productRefId) {
this.productRefId = productRefId;
return this;
}
/**
* The reference to this product in your system. The reference identifier can not be changed after the product has been created
* @return productRefId
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "hockey-madness", required = true, value = "The reference to this product in your system. The reference identifier can not be changed after the product has been created")
@JsonProperty(JSON_PROPERTY_PRODUCT_REF_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getProductRefId() {
return productRefId;
}
@JsonProperty(JSON_PROPERTY_PRODUCT_REF_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setProductRefId(String productRefId) {
this.productRefId = productRefId;
}
public ProductReducedAllOf tags(List tags) {
this.tags = tags;
return this;
}
public ProductReducedAllOf addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
/**
* A list of Strings used to tag products with taxonomy terms
* @return tags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A list of Strings used to tag products with taxonomy terms")
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getTags() {
return tags;
}
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTags(List tags) {
this.tags = tags;
}
/**
* Return true if this ProductReduced_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;
}
ProductReducedAllOf productReducedAllOf = (ProductReducedAllOf) o;
return Objects.equals(this.name, productReducedAllOf.name) &&
Objects.equals(this.productRefId, productReducedAllOf.productRefId) &&
Objects.equals(this.tags, productReducedAllOf.tags);
}
@Override
public int hashCode() {
return Objects.hash(name, productRefId, tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ProductReducedAllOf {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" productRefId: ").append(toIndentedString(productRefId)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).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