com.sinch.sdk.domains.voice.models.webhooks.WebhooksEvent 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.webhooks;
public class WebhooksEvent {
private final String callId;
private final Integer version;
protected WebhooksEvent(String callId, Integer version) {
this.callId = callId;
this.version = version;
}
/**
* The unique ID assigned to call related to this event
*
* @return Call ID value
*/
public String getCallId() {
return callId;
}
/**
* The current API version
*
* @return API version sending the event
*/
public Integer getVersion() {
return version;
}
@Override
public String toString() {
return "CallEvent{" + "callId='" + callId + '\'' + ", version=" + version + '}';
}
public static Builder> builder() {
return new Builder<>();
}
public static class Builder> {
String callId;
Integer version;
public B setCallId(String callId) {
this.callId = callId;
return self();
}
public B setVersion(Integer version) {
this.version = version;
return self();
}
public WebhooksEvent build() {
return new WebhooksEvent(callId, version);
}
@SuppressWarnings("unchecked")
protected B self() {
return (B) this;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy