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

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

There is a newer version: 6.0.0
Show newest version
/*
 * 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 MessagesApiMessageStickerBody model.
 */
public class MessagesApiMessageStickerBody extends MessagesApiMessageBody {

    private String reference;

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

    /**
     * Sets reference.
     * 

* Field description: * Unique reference to the sticker. It can be URL or identifier. If it is URL, resource should be of WebP type. *

* The field is required. * * @param reference * @return This {@link MessagesApiMessageStickerBody instance}. */ public MessagesApiMessageStickerBody reference(String reference) { this.reference = reference; return this; } /** * Returns reference. *

* Field description: * Unique reference to the sticker. It can be URL or identifier. If it is URL, resource should be of WebP type. *

* The field is required. * * @return reference */ @JsonProperty("reference") public String getReference() { return reference; } /** * Sets reference. *

* Field description: * Unique reference to the sticker. It can be URL or identifier. If it is URL, resource should be of WebP type. *

* The field is required. * * @param reference */ @JsonProperty("reference") public void setReference(String reference) { this.reference = reference; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } MessagesApiMessageStickerBody messagesApiMessageStickerBody = (MessagesApiMessageStickerBody) o; return Objects.equals(this.reference, messagesApiMessageStickerBody.reference) && super.equals(o); } @Override public int hashCode() { return Objects.hash(reference, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class MessagesApiMessageStickerBody {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" reference: ") .append(toIndentedString(reference)) .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