com.ziqni.admin.sdk.model.CreateMemberMessageRequestAllOf 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 com.ziqni.admin.sdk.model.EventRefType;
import com.ziqni.admin.sdk.model.MessageLink;
import com.ziqni.admin.sdk.model.MessageStatus;
import com.ziqni.admin.sdk.model.MessageType;
import com.ziqni.admin.sdk.model.Translation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* CreateMemberMessageRequestAllOf
*/
@JsonPropertyOrder({
CreateMemberMessageRequestAllOf.JSON_PROPERTY_EVENT_REF_TYPE,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_EVENT_REF_ID,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_MESSAGE_TYPE,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_SUBJECT,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_BODY,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_STATUS,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_EXPIRE_AFTER_DATE,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_EXPIRE_AFTER_DAYS,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_LINKS,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_MEMBER_IDS,
CreateMemberMessageRequestAllOf.JSON_PROPERTY_TRANSLATIONS
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CreateMemberMessageRequestAllOf {
public static final String JSON_PROPERTY_EVENT_REF_TYPE = "eventRefType";
private EventRefType eventRefType;
public static final String JSON_PROPERTY_EVENT_REF_ID = "eventRefId";
private String eventRefId;
public static final String JSON_PROPERTY_MESSAGE_TYPE = "messageType";
private MessageType messageType;
public static final String JSON_PROPERTY_SUBJECT = "subject";
private String subject;
public static final String JSON_PROPERTY_BODY = "body";
private String body;
public static final String JSON_PROPERTY_STATUS = "status";
private MessageStatus status;
public static final String JSON_PROPERTY_EXPIRE_AFTER_DATE = "expireAfterDate";
private OffsetDateTime expireAfterDate;
public static final String JSON_PROPERTY_EXPIRE_AFTER_DAYS = "expireAfterDays";
private Integer expireAfterDays;
public static final String JSON_PROPERTY_LINKS = "links";
private List links = new ArrayList<>();
public static final String JSON_PROPERTY_MEMBER_IDS = "memberIds";
private List memberIds = null;
public static final String JSON_PROPERTY_TRANSLATIONS = "translations";
private List translations = null;
public CreateMemberMessageRequestAllOf eventRefType(EventRefType eventRefType) {
this.eventRefType = eventRefType;
return this;
}
/**
* Get eventRefType
* @return eventRefType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_EVENT_REF_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public EventRefType getEventRefType() {
return eventRefType;
}
@JsonProperty(JSON_PROPERTY_EVENT_REF_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setEventRefType(EventRefType eventRefType) {
this.eventRefType = eventRefType;
}
public CreateMemberMessageRequestAllOf eventRefId(String eventRefId) {
this.eventRefId = eventRefId;
return this;
}
/**
* The reference ID of the event object
* @return eventRefId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Dc4swmQBVd51K6gPQqFx", value = "The reference ID of the event object")
@JsonProperty(JSON_PROPERTY_EVENT_REF_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEventRefId() {
return eventRefId;
}
@JsonProperty(JSON_PROPERTY_EVENT_REF_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEventRefId(String eventRefId) {
this.eventRefId = eventRefId;
}
public CreateMemberMessageRequestAllOf messageType(MessageType messageType) {
this.messageType = messageType;
return this;
}
/**
* Get messageType
* @return messageType
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_MESSAGE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public MessageType getMessageType() {
return messageType;
}
@JsonProperty(JSON_PROPERTY_MESSAGE_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMessageType(MessageType messageType) {
this.messageType = messageType;
}
public CreateMemberMessageRequestAllOf subject(String subject) {
this.subject = subject;
return this;
}
/**
* The title of the message
* @return subject
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "Hello and welcome", required = true, value = "The title of the message")
@JsonProperty(JSON_PROPERTY_SUBJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSubject() {
return subject;
}
@JsonProperty(JSON_PROPERTY_SUBJECT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSubject(String subject) {
this.subject = subject;
}
public CreateMemberMessageRequestAllOf body(String body) {
this.body = body;
return this;
}
/**
* The context of the message
* @return body
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "Here is a message to welcome you on board!", required = true, value = "The context of the message")
@JsonProperty(JSON_PROPERTY_BODY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getBody() {
return body;
}
@JsonProperty(JSON_PROPERTY_BODY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setBody(String body) {
this.body = body;
}
public CreateMemberMessageRequestAllOf status(MessageStatus status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public MessageStatus getStatus() {
return status;
}
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setStatus(MessageStatus status) {
this.status = status;
}
public CreateMemberMessageRequestAllOf expireAfterDate(OffsetDateTime expireAfterDate) {
this.expireAfterDate = expireAfterDate;
return this;
}
/**
* Specify the expiry as a date after creation of the record. If expireAfterDays is specified then expireAfterDate should not be specified.
* @return expireAfterDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specify the expiry as a date after creation of the record. If expireAfterDays is specified then expireAfterDate should not be specified.")
@JsonProperty(JSON_PROPERTY_EXPIRE_AFTER_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getExpireAfterDate() {
return expireAfterDate;
}
@JsonProperty(JSON_PROPERTY_EXPIRE_AFTER_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpireAfterDate(OffsetDateTime expireAfterDate) {
this.expireAfterDate = expireAfterDate;
}
public CreateMemberMessageRequestAllOf expireAfterDays(Integer expireAfterDays) {
this.expireAfterDays = expireAfterDays;
return this;
}
/**
* Specify the expiry in number of days after creation of the record. If expireAfterDate is specified then expireAfterDays should not be specified.
* @return expireAfterDays
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specify the expiry in number of days after creation of the record. If expireAfterDate is specified then expireAfterDays should not be specified.")
@JsonProperty(JSON_PROPERTY_EXPIRE_AFTER_DAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getExpireAfterDays() {
return expireAfterDays;
}
@JsonProperty(JSON_PROPERTY_EXPIRE_AFTER_DAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setExpireAfterDays(Integer expireAfterDays) {
this.expireAfterDays = expireAfterDays;
}
public CreateMemberMessageRequestAllOf links(List links) {
this.links = links;
return this;
}
public CreateMemberMessageRequestAllOf addLinksItem(MessageLink linksItem) {
this.links.add(linksItem);
return this;
}
/**
* Get links
* @return links
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_LINKS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getLinks() {
return links;
}
@JsonProperty(JSON_PROPERTY_LINKS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLinks(List links) {
this.links = links;
}
public CreateMemberMessageRequestAllOf memberIds(List memberIds) {
this.memberIds = memberIds;
return this;
}
public CreateMemberMessageRequestAllOf addMemberIdsItem(String memberIdsItem) {
if (this.memberIds == null) {
this.memberIds = new ArrayList<>();
}
this.memberIds.add(memberIdsItem);
return this;
}
/**
* Get memberIds
* @return memberIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MEMBER_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getMemberIds() {
return memberIds;
}
@JsonProperty(JSON_PROPERTY_MEMBER_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMemberIds(List memberIds) {
this.memberIds = memberIds;
}
public CreateMemberMessageRequestAllOf translations(List translations) {
this.translations = translations;
return this;
}
public CreateMemberMessageRequestAllOf addTranslationsItem(Translation translationsItem) {
if (this.translations == null) {
this.translations = new ArrayList<>();
}
this.translations.add(translationsItem);
return this;
}
/**
* Get translations
* @return translations
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TRANSLATIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getTranslations() {
return translations;
}
@JsonProperty(JSON_PROPERTY_TRANSLATIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTranslations(List translations) {
this.translations = translations;
}
/**
* Return true if this CreateMemberMessageRequest_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;
}
CreateMemberMessageRequestAllOf createMemberMessageRequestAllOf = (CreateMemberMessageRequestAllOf) o;
return Objects.equals(this.eventRefType, createMemberMessageRequestAllOf.eventRefType) &&
Objects.equals(this.eventRefId, createMemberMessageRequestAllOf.eventRefId) &&
Objects.equals(this.messageType, createMemberMessageRequestAllOf.messageType) &&
Objects.equals(this.subject, createMemberMessageRequestAllOf.subject) &&
Objects.equals(this.body, createMemberMessageRequestAllOf.body) &&
Objects.equals(this.status, createMemberMessageRequestAllOf.status) &&
Objects.equals(this.expireAfterDate, createMemberMessageRequestAllOf.expireAfterDate) &&
Objects.equals(this.expireAfterDays, createMemberMessageRequestAllOf.expireAfterDays) &&
Objects.equals(this.links, createMemberMessageRequestAllOf.links) &&
Objects.equals(this.memberIds, createMemberMessageRequestAllOf.memberIds) &&
Objects.equals(this.translations, createMemberMessageRequestAllOf.translations);
}
@Override
public int hashCode() {
return Objects.hash(eventRefType, eventRefId, messageType, subject, body, status, expireAfterDate, expireAfterDays, links, memberIds, translations);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateMemberMessageRequestAllOf {\n");
sb.append(" eventRefType: ").append(toIndentedString(eventRefType)).append("\n");
sb.append(" eventRefId: ").append(toIndentedString(eventRefId)).append("\n");
sb.append(" messageType: ").append(toIndentedString(messageType)).append("\n");
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" expireAfterDate: ").append(toIndentedString(expireAfterDate)).append("\n");
sb.append(" expireAfterDays: ").append(toIndentedString(expireAfterDays)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" memberIds: ").append(toIndentedString(memberIds)).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