com.symphony.api.model.MessageSuppressionResponse Maven / Gradle / Ivy
package com.symphony.api.model;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* The suppression state of a message
**/
@Schema(description="The suppression state of a message")
public class MessageSuppressionResponse {
@Schema(description = "")
private String messageId = null;
@Schema(description = "")
private Boolean suppressed = null;
@Schema(description = "The date when this message was suppressed.")
/**
* The date when this message was suppressed.
**/
private Long suppressionDate = null;
/**
* Get messageId
* @return messageId
**/
@JsonProperty("messageId")
public String getMessageId() {
return messageId;
}
public void setMessageId(String messageId) {
this.messageId = messageId;
}
public MessageSuppressionResponse messageId(String messageId) {
this.messageId = messageId;
return this;
}
/**
* Get suppressed
* @return suppressed
**/
@JsonProperty("suppressed")
public Boolean isSuppressed() {
return suppressed;
}
public void setSuppressed(Boolean suppressed) {
this.suppressed = suppressed;
}
public MessageSuppressionResponse suppressed(Boolean suppressed) {
this.suppressed = suppressed;
return this;
}
/**
* The date when this message was suppressed.
* @return suppressionDate
**/
@JsonProperty("suppressionDate")
public Long getSuppressionDate() {
return suppressionDate;
}
public void setSuppressionDate(Long suppressionDate) {
this.suppressionDate = suppressionDate;
}
public MessageSuppressionResponse suppressionDate(Long suppressionDate) {
this.suppressionDate = suppressionDate;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MessageSuppressionResponse {\n");
sb.append(" messageId: ").append(toIndentedString(messageId)).append("\n");
sb.append(" suppressed: ").append(toIndentedString(suppressed)).append("\n");
sb.append(" suppressionDate: ").append(toIndentedString(suppressionDate)).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 static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy