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

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

/**
 * Array of phones information.
 */
public class WhatsAppWebhookPhone {

    private String phone;

    private String type;

    private String waId;

    /**
     * Sets phone.
     * 

* Field description: * Contact's phone number. * * @param phone * @return This {@link WhatsAppWebhookPhone instance}. */ public WhatsAppWebhookPhone phone(String phone) { this.phone = phone; return this; } /** * Returns phone. *

* Field description: * Contact's phone number. * * @return phone */ @JsonProperty("phone") public String getPhone() { return phone; } /** * Sets phone. *

* Field description: * Contact's phone number. * * @param phone */ @JsonProperty("phone") public void setPhone(String phone) { this.phone = phone; } /** * Sets type. *

* Field description: * Type of the phone number. Can be `CELL`, `MAIN`, `IPHONE`, `HOME` or `WORK`. * * @param type * @return This {@link WhatsAppWebhookPhone instance}. */ public WhatsAppWebhookPhone type(String type) { this.type = type; return this; } /** * Returns type. *

* Field description: * Type of the phone number. Can be `CELL`, `MAIN`, `IPHONE`, `HOME` or `WORK`. * * @return type */ @JsonProperty("type") public String getType() { return type; } /** * Sets type. *

* Field description: * Type of the phone number. Can be `CELL`, `MAIN`, `IPHONE`, `HOME` or `WORK`. * * @param type */ @JsonProperty("type") public void setType(String type) { this.type = type; } /** * Sets waId. *

* Field description: * Contact's WhatsApp ID. * * @param waId * @return This {@link WhatsAppWebhookPhone instance}. */ public WhatsAppWebhookPhone waId(String waId) { this.waId = waId; return this; } /** * Returns waId. *

* Field description: * Contact's WhatsApp ID. * * @return waId */ @JsonProperty("waId") public String getWaId() { return waId; } /** * Sets waId. *

* Field description: * Contact's WhatsApp ID. * * @param waId */ @JsonProperty("waId") public void setWaId(String waId) { this.waId = waId; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WhatsAppWebhookPhone whatsAppWebhookPhone = (WhatsAppWebhookPhone) o; return Objects.equals(this.phone, whatsAppWebhookPhone.phone) && Objects.equals(this.type, whatsAppWebhookPhone.type) && Objects.equals(this.waId, whatsAppWebhookPhone.waId); } @Override public int hashCode() { return Objects.hash(phone, type, waId); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class WhatsAppWebhookPhone {") .append(newLine) .append(" phone: ") .append(toIndentedString(phone)) .append(newLine) .append(" type: ") .append(toIndentedString(type)) .append(newLine) .append(" waId: ") .append(toIndentedString(waId)) .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