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

com.infobip.model.WhatsAppImageHeaderApiData 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;

/**
 * Represents WhatsAppImageHeaderApiData model.
 */
public class WhatsAppImageHeaderApiData extends WhatsAppHeaderApiData {

    private String example;

    /**
     * Constructs a new {@link WhatsAppImageHeaderApiData} instance.
     */
    public WhatsAppImageHeaderApiData() {
        super("IMAGE");
    }

    /**
     * Sets example.
     * 

* Field description: * An example of a template header image a user could create. Should be a valid URL that starts with `http` or `https`. Supported image types are `JPG`, `JPEG`, `PNG`. Maximum image size is 16MB. Cannot contain placeholders. * * @param example * @return This {@link WhatsAppImageHeaderApiData instance}. */ public WhatsAppImageHeaderApiData example(String example) { this.example = example; return this; } /** * Returns example. *

* Field description: * An example of a template header image a user could create. Should be a valid URL that starts with `http` or `https`. Supported image types are `JPG`, `JPEG`, `PNG`. Maximum image size is 16MB. Cannot contain placeholders. * * @return example */ @JsonProperty("example") public String getExample() { return example; } /** * Sets example. *

* Field description: * An example of a template header image a user could create. Should be a valid URL that starts with `http` or `https`. Supported image types are `JPG`, `JPEG`, `PNG`. Maximum image size is 16MB. Cannot contain placeholders. * * @param example */ @JsonProperty("example") public void setExample(String example) { this.example = example; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppImageHeaderApiData whatsAppImageHeaderApiData = (WhatsAppImageHeaderApiData) o; return Objects.equals(this.example, whatsAppImageHeaderApiData.example) && super.equals(o); } @Override public int hashCode() { return Objects.hash(example, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppImageHeaderApiData {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" example: ") .append(toIndentedString(example)) .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