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

com.infobip.model.ViberOutboundImageContent 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 ViberOutboundImageContent model.
 */
public class ViberOutboundImageContent extends ViberOutboundContent {

    private String text;

    private String mediaUrl;

    private ViberButton button;

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

    /**
     * Sets text.
     * 

* Field description: * Text to be displayed alongside the image. It is required when sending a message with a button and an image. * * @param text * @return This {@link ViberOutboundImageContent instance}. */ public ViberOutboundImageContent text(String text) { this.text = text; return this; } /** * Returns text. *

* Field description: * Text to be displayed alongside the image. It is required when sending a message with a button and an image. * * @return text */ @JsonProperty("text") public String getText() { return text; } /** * Sets text. *

* Field description: * Text to be displayed alongside the image. It is required when sending a message with a button and an image. * * @param text */ @JsonProperty("text") public void setText(String text) { this.text = text; } /** * Sets mediaUrl. *

* Field description: * URL of the image being sent. Must be a valid URL starting with https:// or http://. Supported image types are .jpg, .jpeg, .png. Recommended resolution: 800 px x 800 px. *

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

* Field description: * URL of the image being sent. Must be a valid URL starting with https:// or http://. Supported image types are .jpg, .jpeg, .png. Recommended resolution: 800 px x 800 px. *

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

* Field description: * URL of the image being sent. Must be a valid URL starting with https:// or http://. Supported image types are .jpg, .jpeg, .png. Recommended resolution: 800 px x 800 px. *

* The field is required. * * @param mediaUrl */ @JsonProperty("mediaUrl") public void setMediaUrl(String mediaUrl) { this.mediaUrl = mediaUrl; } /** * Sets button. * * @param button * @return This {@link ViberOutboundImageContent instance}. */ public ViberOutboundImageContent button(ViberButton button) { this.button = button; return this; } /** * Returns button. * * @return button */ @JsonProperty("button") public ViberButton getButton() { return button; } /** * Sets button. * * @param button */ @JsonProperty("button") public void setButton(ViberButton button) { this.button = button; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ViberOutboundImageContent viberOutboundImageContent = (ViberOutboundImageContent) o; return Objects.equals(this.text, viberOutboundImageContent.text) && Objects.equals(this.mediaUrl, viberOutboundImageContent.mediaUrl) && Objects.equals(this.button, viberOutboundImageContent.button) && super.equals(o); } @Override public int hashCode() { return Objects.hash(text, mediaUrl, button, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class ViberOutboundImageContent {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" text: ") .append(toIndentedString(text)) .append(newLine) .append(" mediaUrl: ") .append(toIndentedString(mediaUrl)) .append(newLine) .append(" button: ") .append(toIndentedString(button)) .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