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

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

/**
 * Button to be displayed alongside the image.
 */
public class ViberButton {

    private String title;

    private String action;

    /**
     * Sets title.
     * 

* Field description: * The text that will appear on the action button. *

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

* Field description: * The text that will appear on the action button. *

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

* Field description: * The text that will appear on the action button. *

* The field is required. * * @param title */ @JsonProperty("title") public void setTitle(String title) { this.title = title; } /** * Sets action. *

* Field description: * The URL users are directed to or the action performed when pressing the action button. *

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

* Field description: * The URL users are directed to or the action performed when pressing the action button. *

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

* Field description: * The URL users are directed to or the action performed when pressing the action button. *

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