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

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

    private String phoneNumber;

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

    /**
     * Sets phoneNumber.
     * 

* Field description: * Phone number in the [E.164](https://en.wikipedia.org/wiki/E.164) format. Defaults to `to` value used in inbound call. * * @param phoneNumber * @return This {@link CallRoutingPhoneEndpoint instance}. */ public CallRoutingPhoneEndpoint phoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; return this; } /** * Returns phoneNumber. *

* Field description: * Phone number in the [E.164](https://en.wikipedia.org/wiki/E.164) format. Defaults to `to` value used in inbound call. * * @return phoneNumber */ @JsonProperty("phoneNumber") public String getPhoneNumber() { return phoneNumber; } /** * Sets phoneNumber. *

* Field description: * Phone number in the [E.164](https://en.wikipedia.org/wiki/E.164) format. Defaults to `to` value used in inbound call. * * @param phoneNumber */ @JsonProperty("phoneNumber") public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CallRoutingPhoneEndpoint callRoutingPhoneEndpoint = (CallRoutingPhoneEndpoint) o; return Objects.equals(this.phoneNumber, callRoutingPhoneEndpoint.phoneNumber) && super.equals(o); } @Override public int hashCode() { return Objects.hash(phoneNumber, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class CallRoutingPhoneEndpoint {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" phoneNumber: ") .append(toIndentedString(phoneNumber)) .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