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

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

/*
 * 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.HashMap;
import java.util.Map;
import java.util.Objects;

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

    private Map customData = null;

    private String dtmf;

    /**
     * Sets customData.
     * 

* Field description: * Optional parameter to update a call's custom data. * * @param customData * @return This {@link CallsDtmfSendRequest instance}. */ public CallsDtmfSendRequest customData(Map customData) { this.customData = customData; return this; } /** * Puts and entry into customData. *

* Field description: * Optional parameter to update a call's custom data. * * @param key The given key. * @param customDataItem The item to be associated with the given key. * @return This {@link CallsDtmfSendRequest instance}. */ public CallsDtmfSendRequest putCustomDataItem(String key, String customDataItem) { if (this.customData == null) { this.customData = new HashMap<>(); } this.customData.put(key, customDataItem); return this; } /** * Returns customData. *

* Field description: * Optional parameter to update a call's custom data. * * @return customData */ @JsonProperty("customData") public Map getCustomData() { return customData; } /** * Sets customData. *

* Field description: * Optional parameter to update a call's custom data. * * @param customData */ @JsonProperty("customData") public void setCustomData(Map customData) { this.customData = customData; } /** * Sets dtmf. *

* Field description: * DTMF digits to send. *

* The field is required. * * @param dtmf * @return This {@link CallsDtmfSendRequest instance}. */ public CallsDtmfSendRequest dtmf(String dtmf) { this.dtmf = dtmf; return this; } /** * Returns dtmf. *

* Field description: * DTMF digits to send. *

* The field is required. * * @return dtmf */ @JsonProperty("dtmf") public String getDtmf() { return dtmf; } /** * Sets dtmf. *

* Field description: * DTMF digits to send. *

* The field is required. * * @param dtmf */ @JsonProperty("dtmf") public void setDtmf(String dtmf) { this.dtmf = dtmf; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CallsDtmfSendRequest callsDtmfSendRequest = (CallsDtmfSendRequest) o; return Objects.equals(this.customData, callsDtmfSendRequest.customData) && Objects.equals(this.dtmf, callsDtmfSendRequest.dtmf); } @Override public int hashCode() { return Objects.hash(customData, dtmf); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class CallsDtmfSendRequest {") .append(newLine) .append(" customData: ") .append(toIndentedString(customData)) .append(newLine) .append(" dtmf: ") .append(toIndentedString(dtmf)) .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