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

com.sinch.sdk.domains.voice.models.dto.v1.GetConferenceInfoResponseParticipantsInnerDto Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/*
 * 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.util.Objects;

/** GetConferenceInfoResponseParticipantsInnerDto */
@JsonPropertyOrder({
  GetConferenceInfoResponseParticipantsInnerDto.JSON_PROPERTY_CLI,
  GetConferenceInfoResponseParticipantsInnerDto.JSON_PROPERTY_ID,
  GetConferenceInfoResponseParticipantsInnerDto.JSON_PROPERTY_DURATION,
  GetConferenceInfoResponseParticipantsInnerDto.JSON_PROPERTY_MUTED,
  GetConferenceInfoResponseParticipantsInnerDto.JSON_PROPERTY_ONHOLD
})
@JsonFilter("uninitializedFilter")
@JsonInclude(value = JsonInclude.Include.CUSTOM)
public class GetConferenceInfoResponseParticipantsInnerDto {
  private static final long serialVersionUID = 1L;
  public static final String JSON_PROPERTY_CLI = "cli";
  private String cli;
  private boolean cliDefined = false;

  public static final String JSON_PROPERTY_ID = "id";
  private String id;
  private boolean idDefined = false;

  public static final String JSON_PROPERTY_DURATION = "duration";
  private Integer duration;
  private boolean durationDefined = false;

  public static final String JSON_PROPERTY_MUTED = "muted";
  private Boolean muted;
  private boolean mutedDefined = false;

  public static final String JSON_PROPERTY_ONHOLD = "onhold";
  private Boolean onhold;
  private boolean onholdDefined = false;

  public GetConferenceInfoResponseParticipantsInnerDto() {}

  public GetConferenceInfoResponseParticipantsInnerDto cli(String cli) {
    this.cli = cli;
    this.cliDefined = true;
    return this;
  }

  /**
   * The phone number of the PSTN participant that was connected in the conference, or whatever was
   * passed as CLI for data originated/terminated calls.
   *
   * @return cli
   */
  @JsonProperty(JSON_PROPERTY_CLI)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getCli() {
    return cli;
  }

  @JsonIgnore
  public boolean getCliDefined() {
    return cliDefined;
  }

  @JsonProperty(JSON_PROPERTY_CLI)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCli(String cli) {
    this.cli = cli;
    this.cliDefined = true;
  }

  public GetConferenceInfoResponseParticipantsInnerDto id(String id) {
    this.id = id;
    this.idDefined = true;
    return this;
  }

  /**
   * The callId of the call leg that the participant joined the conference.
   *
   * @return id
   */
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public String getId() {
    return id;
  }

  @JsonIgnore
  public boolean getIdDefined() {
    return idDefined;
  }

  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setId(String id) {
    this.id = id;
    this.idDefined = true;
  }

  public GetConferenceInfoResponseParticipantsInnerDto duration(Integer duration) {
    this.duration = duration;
    this.durationDefined = true;
    return this;
  }

  /**
   * The number of seconds that the participant has been connected to the conference.
   *
   * @return duration
   */
  @JsonProperty(JSON_PROPERTY_DURATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Integer getDuration() {
    return duration;
  }

  @JsonIgnore
  public boolean getDurationDefined() {
    return durationDefined;
  }

  @JsonProperty(JSON_PROPERTY_DURATION)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDuration(Integer duration) {
    this.duration = duration;
    this.durationDefined = true;
  }

  public GetConferenceInfoResponseParticipantsInnerDto muted(Boolean muted) {
    this.muted = muted;
    this.mutedDefined = true;
    return this;
  }

  /**
   * Get muted
   *
   * @return muted
   */
  @JsonProperty(JSON_PROPERTY_MUTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Boolean getMuted() {
    return muted;
  }

  @JsonIgnore
  public boolean getMutedDefined() {
    return mutedDefined;
  }

  @JsonProperty(JSON_PROPERTY_MUTED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMuted(Boolean muted) {
    this.muted = muted;
    this.mutedDefined = true;
  }

  public GetConferenceInfoResponseParticipantsInnerDto onhold(Boolean onhold) {
    this.onhold = onhold;
    this.onholdDefined = true;
    return this;
  }

  /**
   * Get onhold
   *
   * @return onhold
   */
  @JsonProperty(JSON_PROPERTY_ONHOLD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public Boolean getOnhold() {
    return onhold;
  }

  @JsonIgnore
  public boolean getOnholdDefined() {
    return onholdDefined;
  }

  @JsonProperty(JSON_PROPERTY_ONHOLD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOnhold(Boolean onhold) {
    this.onhold = onhold;
    this.onholdDefined = true;
  }

  /** Return true if this getConferenceInfoResponse_participants_inner object is equal to o. */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GetConferenceInfoResponseParticipantsInnerDto getConferenceInfoResponseParticipantsInner =
        (GetConferenceInfoResponseParticipantsInnerDto) o;
    return Objects.equals(this.cli, getConferenceInfoResponseParticipantsInner.cli)
        && Objects.equals(this.id, getConferenceInfoResponseParticipantsInner.id)
        && Objects.equals(this.duration, getConferenceInfoResponseParticipantsInner.duration)
        && Objects.equals(this.muted, getConferenceInfoResponseParticipantsInner.muted)
        && Objects.equals(this.onhold, getConferenceInfoResponseParticipantsInner.onhold);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cli, id, duration, muted, onhold);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetConferenceInfoResponseParticipantsInnerDto {\n");
    sb.append("    cli: ").append(toIndentedString(cli)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
    sb.append("    muted: ").append(toIndentedString(muted)).append("\n");
    sb.append("    onhold: ").append(toIndentedString(onhold)).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