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

com.infobip.model.ViberMessageDeliveryReporting 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.util.Objects;

/**
 * Provides options for configuring the delivery report behavior.
 */
public class ViberMessageDeliveryReporting {

    private String url;

    private Boolean intermediateReport;

    /**
     * Sets url.
     * 

* Field description: * The URL on your call back server where a delivery report will be sent. If your URL becomes unavailable then the [retry cycle](https://www.infobip.com/docs/sms/api#notify-url) uses the following formula: `1min + (1min * retryNumber * retryNumber)`. * * @param url * @return This {@link ViberMessageDeliveryReporting instance}. */ public ViberMessageDeliveryReporting url(String url) { this.url = url; return this; } /** * Returns url. *

* Field description: * The URL on your call back server where a delivery report will be sent. If your URL becomes unavailable then the [retry cycle](https://www.infobip.com/docs/sms/api#notify-url) uses the following formula: `1min + (1min * retryNumber * retryNumber)`. * * @return url */ @JsonProperty("url") public String getUrl() { return url; } /** * Sets url. *

* Field description: * The URL on your call back server where a delivery report will be sent. If your URL becomes unavailable then the [retry cycle](https://www.infobip.com/docs/sms/api#notify-url) uses the following formula: `1min + (1min * retryNumber * retryNumber)`. * * @param url */ @JsonProperty("url") public void setUrl(String url) { this.url = url; } /** * Sets intermediateReport. *

* Field description: * The real-time intermediate delivery report containing GSM error codes, messages status, pricing, network and country codes, etc., which will be sent on your callback server. Defaults to `false`. * * @param intermediateReport * @return This {@link ViberMessageDeliveryReporting instance}. */ public ViberMessageDeliveryReporting intermediateReport(Boolean intermediateReport) { this.intermediateReport = intermediateReport; return this; } /** * Returns intermediateReport. *

* Field description: * The real-time intermediate delivery report containing GSM error codes, messages status, pricing, network and country codes, etc., which will be sent on your callback server. Defaults to `false`. * * @return intermediateReport */ @JsonProperty("intermediateReport") public Boolean getIntermediateReport() { return intermediateReport; } /** * Sets intermediateReport. *

* Field description: * The real-time intermediate delivery report containing GSM error codes, messages status, pricing, network and country codes, etc., which will be sent on your callback server. Defaults to `false`. * * @param intermediateReport */ @JsonProperty("intermediateReport") public void setIntermediateReport(Boolean intermediateReport) { this.intermediateReport = intermediateReport; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ViberMessageDeliveryReporting viberMessageDeliveryReporting = (ViberMessageDeliveryReporting) o; return Objects.equals(this.url, viberMessageDeliveryReporting.url) && Objects.equals(this.intermediateReport, viberMessageDeliveryReporting.intermediateReport); } @Override public int hashCode() { return Objects.hash(url, intermediateReport); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class ViberMessageDeliveryReporting {") .append(newLine) .append(" url: ") .append(toIndentedString(url)) .append(newLine) .append(" intermediateReport: ") .append(toIndentedString(intermediateReport)) .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