com.ziqni.admin.sdk.model.MessageLink 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* MessageLink
*/
@JsonPropertyOrder({
MessageLink.JSON_PROPERTY_ENTITY_ID,
MessageLink.JSON_PROPERTY_ENTITY_TYPE,
MessageLink.JSON_PROPERTY_LINK_TYPE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class MessageLink {
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_LINK_TYPE = "linkType";
private String linkType;
public MessageLink entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* The identifier of the entity
* @return entityId
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The identifier of the entity")
@JsonProperty(JSON_PROPERTY_ENTITY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEntityId() {
return entityId;
}
@JsonProperty(JSON_PROPERTY_ENTITY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEntityId(String entityId) {
this.entityId = entityId;
}
public MessageLink entityType(String entityType) {
this.entityType = entityType;
return this;
}
/**
* The type of entity the link refers to like Award or Achievement, Contest, etc
* @return entityType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The type of entity the link refers to like Award or Achievement, Contest, etc")
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getEntityType() {
return entityType;
}
@JsonProperty(JSON_PROPERTY_ENTITY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEntityType(String entityType) {
this.entityType = entityType;
}
public MessageLink linkType(String linkType) {
this.linkType = linkType;
return this;
}
/**
* The type of link, relatesTo, refersTo, describes
* @return linkType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The type of link, relatesTo, refersTo, describes")
@JsonProperty(JSON_PROPERTY_LINK_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getLinkType() {
return linkType;
}
@JsonProperty(JSON_PROPERTY_LINK_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLinkType(String linkType) {
this.linkType = linkType;
}
/**
* Return true if this MessageLink object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MessageLink messageLink = (MessageLink) o;
return Objects.equals(this.entityId, messageLink.entityId) &&
Objects.equals(this.entityType, messageLink.entityType) &&
Objects.equals(this.linkType, messageLink.linkType);
}
@Override
public int hashCode() {
return Objects.hash(entityId, entityType, linkType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MessageLink {\n");
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n");
sb.append(" linkType: ").append(toIndentedString(linkType)).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