com.sinch.sdk.domains.voice.models.DestinationUser 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 username for data endpoints. */
public class DestinationUser extends Destination {
private final String userName;
public DestinationUser(String userName) {
Objects.requireNonNull(userName);
this.userName = userName;
}
public String getUserName() {
return userName;
}
@Override
public String toString() {
return "DestinationUser{" + "userName='" + userName + '\'' + "} " + super.toString();
}
public static DestinationUser valueOf(String user) {
return new DestinationUser(user);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DestinationUser that = (DestinationUser) o;
return Objects.equals(userName, that.userName);
}
@Override
public int hashCode() {
return Objects.hash(userName);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy