com.sinch.sdk.domains.voice.models.DestinationSip Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
package com.sinch.sdk.domains.voice.models;
import java.util.Objects;
/** Destination of type SIP */
public class DestinationSip extends Destination {
private final String sipAddress;
public DestinationSip(String sipAddress) {
Objects.requireNonNull(sipAddress);
this.sipAddress = sipAddress;
}
public String getSIPAddress() {
return sipAddress;
}
@Override
public String toString() {
return "DestinationSip{" + "sipAddress='" + sipAddress + '\'' + "} " + super.toString();
}
public static DestinationSip valueOf(String sipAddress) {
return new DestinationSip(sipAddress);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DestinationSip that = (DestinationSip) o;
return Objects.equals(sipAddress, that.sipAddress);
}
@Override
public int hashCode() {
return Objects.hash(sipAddress);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy