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

com.telnyx.sdk.model.ConferenceHoldRequest Maven / Gradle / Ivy

There is a newer version: 3.6.0
Show newest version
/*
 * Telnyx API
 * SIP trunking, SMS, MMS, Call Control and Telephony Data Services.
 *
 * The version of the OpenAPI document: 2.0.0
 * 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.telnyx.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.telnyx.sdk.JSON;


/**
 * ConferenceHoldRequest
 */
@JsonPropertyOrder({
  ConferenceHoldRequest.JSON_PROPERTY_CALL_CONTROL_IDS,
  ConferenceHoldRequest.JSON_PROPERTY_AUDIO_URL
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ConferenceHoldRequest {
  public static final String JSON_PROPERTY_CALL_CONTROL_IDS = "call_control_ids";
  private List callControlIds = null;

  public static final String JSON_PROPERTY_AUDIO_URL = "audio_url";
  private String audioUrl;


  public ConferenceHoldRequest callControlIds(List callControlIds) {
    this.callControlIds = callControlIds;
    return this;
  }

  public ConferenceHoldRequest addCallControlIdsItem(String callControlIdsItem) {
    if (this.callControlIds == null) {
      this.callControlIds = new ArrayList<>();
    }
    this.callControlIds.add(callControlIdsItem);
    return this;
  }

   /**
   * List of unique identifiers and tokens for controlling the call. When empty all participants will be placed on hold.
   * @return callControlIds
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "List of unique identifiers and tokens for controlling the call. When empty all participants will be placed on hold.")
  @JsonProperty(JSON_PROPERTY_CALL_CONTROL_IDS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getCallControlIds() {
    return callControlIds;
  }


  public void setCallControlIds(List callControlIds) {
    this.callControlIds = callControlIds;
  }


  public ConferenceHoldRequest audioUrl(String audioUrl) {
    this.audioUrl = audioUrl;
    return this;
  }

   /**
   * The URL of a file to be played back at the beginning of each prompt. The URL can point to either a WAV or MP3 file.
   * @return audioUrl
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "http://example.com/message.wav", value = "The URL of a file to be played back at the beginning of each prompt. The URL can point to either a WAV or MP3 file.")
  @JsonProperty(JSON_PROPERTY_AUDIO_URL)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getAudioUrl() {
    return audioUrl;
  }


  public void setAudioUrl(String audioUrl) {
    this.audioUrl = audioUrl;
  }


  /**
   * Return true if this ConferenceHoldRequest object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ConferenceHoldRequest conferenceHoldRequest = (ConferenceHoldRequest) o;
    return Objects.equals(this.callControlIds, conferenceHoldRequest.callControlIds) &&
        Objects.equals(this.audioUrl, conferenceHoldRequest.audioUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(callControlIds, audioUrl);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ConferenceHoldRequest {\n");
    sb.append("    callControlIds: ").append(toIndentedString(callControlIds)).append("\n");
    sb.append("    audioUrl: ").append(toIndentedString(audioUrl)).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