All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.model.WhatsAppWebhookSystemEventResponse Maven / Gradle / Ivy

/*
 * This class is auto generated from the Infobip OpenAPI specification
 * through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
 * powered by the OpenAPI Generator (https://openapi-generator.tech).
 *
 * Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
 * or contact us @ [email protected].
 */

package com.infobip.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.Objects;

/**
 * Represents WhatsAppWebhookSystemEventResponse model.
 */
public class WhatsAppWebhookSystemEventResponse {

    private String from;

    private WhatsAppWebhookSystemEvent content;

    private OffsetDateTime createdAt;

    /**
     * Sets from.
     * 

* Field description: * Registered WhatsApp sender number. * * @param from * @return This {@link WhatsAppWebhookSystemEventResponse instance}. */ public WhatsAppWebhookSystemEventResponse from(String from) { this.from = from; return this; } /** * Returns from. *

* Field description: * Registered WhatsApp sender number. * * @return from */ @JsonProperty("from") public String getFrom() { return from; } /** * Sets from. *

* Field description: * Registered WhatsApp sender number. * * @param from */ @JsonProperty("from") public void setFrom(String from) { this.from = from; } /** * Sets content. * * @param content * @return This {@link WhatsAppWebhookSystemEventResponse instance}. */ public WhatsAppWebhookSystemEventResponse content(WhatsAppWebhookSystemEvent content) { this.content = content; return this; } /** * Returns content. * * @return content */ @JsonProperty("content") public WhatsAppWebhookSystemEvent getContent() { return content; } /** * Sets content. * * @param content */ @JsonProperty("content") public void setContent(WhatsAppWebhookSystemEvent content) { this.content = content; } /** * Sets createdAt. *

* Field description: * Tells when the event occurred. Has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`. * * @param createdAt * @return This {@link WhatsAppWebhookSystemEventResponse instance}. */ public WhatsAppWebhookSystemEventResponse createdAt(OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } /** * Returns createdAt. *

* Field description: * Tells when the event occurred. Has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`. * * @return createdAt */ @JsonProperty("createdAt") public OffsetDateTime getCreatedAt() { return createdAt; } /** * Sets createdAt. *

* Field description: * Tells when the event occurred. Has the following format: `yyyy-MM-dd'T'HH:mm:ss.SSSZ`. * * @param createdAt */ @JsonProperty("createdAt") public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppWebhookSystemEventResponse whatsAppWebhookSystemEventResponse = (WhatsAppWebhookSystemEventResponse) o; return Objects.equals(this.from, whatsAppWebhookSystemEventResponse.from) && Objects.equals(this.content, whatsAppWebhookSystemEventResponse.content) && Objects.equals(this.createdAt, whatsAppWebhookSystemEventResponse.createdAt); } @Override public int hashCode() { return Objects.hash(from, content, createdAt); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppWebhookSystemEventResponse {") .append(newLine) .append(" from: ") .append(toIndentedString(from)) .append(newLine) .append(" content: ") .append(toIndentedString(content)) .append(newLine) .append(" createdAt: ") .append(toIndentedString(createdAt)) .append(newLine) .append("}") .toString(); } private String toIndentedString(Object o) { if (o == null) { return "null"; } String lineSeparator = System.lineSeparator(); String lineSeparatorFollowedByIndentation = lineSeparator + " "; return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy