All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.model.CallsDialogPropagationOptions Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
/*
 * This class is auto generated from the Infobip OpenAPI specification
 * through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
 * powered by the OpenAPI Generator (https://openapi-generator.tech).
 *
 * Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
 * or contact us @ [email protected].
 */

package com.infobip.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

/**
 * Represents CallsDialogPropagationOptions model.
 */
public class CallsDialogPropagationOptions {

    private Boolean childCallHangup;

    private Boolean childCallRinging;

    private RingbackGeneration ringbackGeneration;

    /**
     * Sets childCallHangup.
     * 

* Field description: * Flag indicating if the parent call should be terminated when the child call ends. * * @param childCallHangup * @return This {@link CallsDialogPropagationOptions instance}. */ public CallsDialogPropagationOptions childCallHangup(Boolean childCallHangup) { this.childCallHangup = childCallHangup; return this; } /** * Returns childCallHangup. *

* Field description: * Flag indicating if the parent call should be terminated when the child call ends. * * @return childCallHangup */ @JsonProperty("childCallHangup") public Boolean getChildCallHangup() { return childCallHangup; } /** * Sets childCallHangup. *

* Field description: * Flag indicating if the parent call should be terminated when the child call ends. * * @param childCallHangup */ @JsonProperty("childCallHangup") public void setChildCallHangup(Boolean childCallHangup) { this.childCallHangup = childCallHangup; } /** * Sets childCallRinging. *

* Field description: * Flag indicating if a child call's ringing should be propagated to the parent call. The parent call must be `INBOUND`. Cannot be `true` when `ringbackGeneration` is enabled. * * @param childCallRinging * @return This {@link CallsDialogPropagationOptions instance}. */ public CallsDialogPropagationOptions childCallRinging(Boolean childCallRinging) { this.childCallRinging = childCallRinging; return this; } /** * Returns childCallRinging. *

* Field description: * Flag indicating if a child call's ringing should be propagated to the parent call. The parent call must be `INBOUND`. Cannot be `true` when `ringbackGeneration` is enabled. * * @return childCallRinging */ @JsonProperty("childCallRinging") public Boolean getChildCallRinging() { return childCallRinging; } /** * Sets childCallRinging. *

* Field description: * Flag indicating if a child call's ringing should be propagated to the parent call. The parent call must be `INBOUND`. Cannot be `true` when `ringbackGeneration` is enabled. * * @param childCallRinging */ @JsonProperty("childCallRinging") public void setChildCallRinging(Boolean childCallRinging) { this.childCallRinging = childCallRinging; } /** * Sets ringbackGeneration. * * @param ringbackGeneration * @return This {@link CallsDialogPropagationOptions instance}. */ public CallsDialogPropagationOptions ringbackGeneration(RingbackGeneration ringbackGeneration) { this.ringbackGeneration = ringbackGeneration; return this; } /** * Returns ringbackGeneration. * * @return ringbackGeneration */ @JsonProperty("ringbackGeneration") public RingbackGeneration getRingbackGeneration() { return ringbackGeneration; } /** * Sets ringbackGeneration. * * @param ringbackGeneration */ @JsonProperty("ringbackGeneration") public void setRingbackGeneration(RingbackGeneration ringbackGeneration) { this.ringbackGeneration = ringbackGeneration; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CallsDialogPropagationOptions callsDialogPropagationOptions = (CallsDialogPropagationOptions) o; return Objects.equals(this.childCallHangup, callsDialogPropagationOptions.childCallHangup) && Objects.equals(this.childCallRinging, callsDialogPropagationOptions.childCallRinging) && Objects.equals(this.ringbackGeneration, callsDialogPropagationOptions.ringbackGeneration); } @Override public int hashCode() { return Objects.hash(childCallHangup, childCallRinging, ringbackGeneration); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class CallsDialogPropagationOptions {") .append(newLine) .append(" childCallHangup: ") .append(toIndentedString(childCallHangup)) .append(newLine) .append(" childCallRinging: ") .append(toIndentedString(childCallRinging)) .append(newLine) .append(" ringbackGeneration: ") .append(toIndentedString(ringbackGeneration)) .append(newLine) .append("}") .toString(); } private String toIndentedString(Object o) { if (o == null) { return "null"; } String lineSeparator = System.lineSeparator(); String lineSeparatorFollowedByIndentation = lineSeparator + " "; return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy