com.sinch.sdk.domains.voice.models.dto.v1.WebhooksCallEventRequestDto 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.
/*
* Voice API | Sinch
* The Voice API exposes calling- and conference-related functionality in the Sinch Voice Platform.
*
* The version of the OpenAPI document: 1.0.1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.sinch.sdk.domains.voice.models.dto.v1;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.time.OffsetDateTime;
import java.util.Objects;
/** WebhooksCallEventRequestDto */
@JsonPropertyOrder({
WebhooksCallEventRequestDto.JSON_PROPERTY_TIMESTAMP,
WebhooksCallEventRequestDto.JSON_PROPERTY_CUSTOM,
WebhooksCallEventRequestDto.JSON_PROPERTY_APPLICATION_KEY
})
@JsonFilter("uninitializedFilter")
@JsonInclude(value = JsonInclude.Include.CUSTOM)
public class WebhooksCallEventRequestDto {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
private OffsetDateTime timestamp;
private boolean timestampDefined = false;
public static final String JSON_PROPERTY_CUSTOM = "custom";
private String custom;
private boolean customDefined = false;
public static final String JSON_PROPERTY_APPLICATION_KEY = "applicationKey";
private String applicationKey;
private boolean applicationKeyDefined = false;
public WebhooksCallEventRequestDto() {}
public WebhooksCallEventRequestDto timestamp(OffsetDateTime timestamp) {
this.timestamp = timestamp;
this.timestampDefined = true;
return this;
}
/**
* The timestamp in UTC format.
*
* @return timestamp
*/
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getTimestamp() {
return timestamp;
}
@JsonIgnore
public boolean getTimestampDefined() {
return timestampDefined;
}
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTimestamp(OffsetDateTime timestamp) {
this.timestamp = timestamp;
this.timestampDefined = true;
}
public WebhooksCallEventRequestDto custom(String custom) {
this.custom = custom;
this.customDefined = true;
return this;
}
/**
* A string that can be used to pass custom information related to the call.
*
* @return custom
*/
@JsonProperty(JSON_PROPERTY_CUSTOM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCustom() {
return custom;
}
@JsonIgnore
public boolean getCustomDefined() {
return customDefined;
}
@JsonProperty(JSON_PROPERTY_CUSTOM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCustom(String custom) {
this.custom = custom;
this.customDefined = true;
}
public WebhooksCallEventRequestDto applicationKey(String applicationKey) {
this.applicationKey = applicationKey;
this.applicationKeyDefined = true;
return this;
}
/**
* The unique application key. You can find it in the Sinch
* [dashboard](https://dashboard.sinch.com/voice/apps).
*
* @return applicationKey
*/
@JsonProperty(JSON_PROPERTY_APPLICATION_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getApplicationKey() {
return applicationKey;
}
@JsonIgnore
public boolean getApplicationKeyDefined() {
return applicationKeyDefined;
}
@JsonProperty(JSON_PROPERTY_APPLICATION_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setApplicationKey(String applicationKey) {
this.applicationKey = applicationKey;
this.applicationKeyDefined = true;
}
/** Return true if this webhooksCallEventRequest object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WebhooksCallEventRequestDto webhooksCallEventRequest = (WebhooksCallEventRequestDto) o;
return Objects.equals(this.timestamp, webhooksCallEventRequest.timestamp)
&& Objects.equals(this.custom, webhooksCallEventRequest.custom)
&& Objects.equals(this.applicationKey, webhooksCallEventRequest.applicationKey);
}
@Override
public int hashCode() {
return Objects.hash(timestamp, custom, applicationKey);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WebhooksCallEventRequestDto {\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" custom: ").append(toIndentedString(custom)).append("\n");
sb.append(" applicationKey: ").append(toIndentedString(applicationKey)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy