com.sinch.sdk.domains.voice.models.dto.v1.SvamlActionConnectMxpDto 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.JsonCreator;
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 com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* Determines how an application-to-application call is connected. Available to use in a response to
* an [Incoming Call Event](../../voice/tag/Callbacks/#tag/Callbacks/operation/ice) callback.
*/
@JsonPropertyOrder({
SvamlActionConnectMxpDto.JSON_PROPERTY_NAME,
SvamlActionConnectMxpDto.JSON_PROPERTY_DESTINATION,
SvamlActionConnectMxpDto.JSON_PROPERTY_CALLHEADERS
})
@JsonFilter("uninitializedFilter")
@JsonInclude(value = JsonInclude.Include.CUSTOM)
public class SvamlActionConnectMxpDto {
private static final long serialVersionUID = 1L;
/** The name property. Must have the value `connectMxp`. */
public enum NameEnum {
CONNECTMXP("connectMxp"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
NameEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static NameEnum fromValue(String value) {
for (NameEnum b : NameEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return UNKNOWN_DEFAULT_OPEN_API;
}
}
public static final String JSON_PROPERTY_NAME = "name";
private String name;
private boolean nameDefined = false;
public static final String JSON_PROPERTY_DESTINATION = "destination";
private DestinationDto destination;
private boolean destinationDefined = false;
public static final String JSON_PROPERTY_CALLHEADERS = "callheaders";
private List callheaders;
private boolean callheadersDefined = false;
public SvamlActionConnectMxpDto() {}
public SvamlActionConnectMxpDto name(String name) {
this.name = name;
this.nameDefined = true;
return this;
}
/**
* The name property. Must have the value `connectMxp`.
*
* @return name
*/
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() {
return name;
}
@JsonIgnore
public boolean getNameDefined() {
return nameDefined;
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setName(String name) {
this.name = name;
this.nameDefined = true;
}
public SvamlActionConnectMxpDto destination(DestinationDto destination) {
this.destination = destination;
this.destinationDefined = true;
return this;
}
/**
* Get destination
*
* @return destination
*/
@JsonProperty(JSON_PROPERTY_DESTINATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DestinationDto getDestination() {
return destination;
}
@JsonIgnore
public boolean getDestinationDefined() {
return destinationDefined;
}
@JsonProperty(JSON_PROPERTY_DESTINATION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDestination(DestinationDto destination) {
this.destination = destination;
this.destinationDefined = true;
}
public SvamlActionConnectMxpDto callheaders(List callheaders) {
this.callheaders = callheaders;
this.callheadersDefined = true;
return this;
}
public SvamlActionConnectMxpDto addCallheadersItem(CallHeaderDto callheadersItem) {
if (this.callheaders == null) {
this.callheaders = new ArrayList<>();
}
this.callheadersDefined = true;
this.callheaders.add(callheadersItem);
return this;
}
/**
* An optional parameter that allows you to specify or override call headers provided to the
* receiving Sinch SDK client. Read more about call headers [here](../../call-headers/).
*
* @return callheaders
*/
@JsonProperty(JSON_PROPERTY_CALLHEADERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getCallheaders() {
return callheaders;
}
@JsonIgnore
public boolean getCallheadersDefined() {
return callheadersDefined;
}
@JsonProperty(JSON_PROPERTY_CALLHEADERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCallheaders(List callheaders) {
this.callheaders = callheaders;
this.callheadersDefined = true;
}
/** Return true if this svaml.action.connectMxp object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SvamlActionConnectMxpDto svamlActionConnectMxp = (SvamlActionConnectMxpDto) o;
return Objects.equals(this.name, svamlActionConnectMxp.name)
&& Objects.equals(this.destination, svamlActionConnectMxp.destination)
&& Objects.equals(this.callheaders, svamlActionConnectMxp.callheaders);
}
@Override
public int hashCode() {
return Objects.hash(name, destination, callheaders);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SvamlActionConnectMxpDto {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" destination: ").append(toIndentedString(destination)).append("\n");
sb.append(" callheaders: ").append(toIndentedString(callheaders)).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