com.telnyx.sdk.model.RecordingDownloadUrls Maven / Gradle / Ivy
/*
* 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.telnyx.sdk.JSON;
/**
* The links to download the recording files
*/
@ApiModel(description = "The links to download the recording files")
@JsonPropertyOrder({
RecordingDownloadUrls.JSON_PROPERTY_MP3,
RecordingDownloadUrls.JSON_PROPERTY_WAV
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RecordingDownloadUrls {
public static final String JSON_PROPERTY_MP3 = "mp3";
private String mp3;
public static final String JSON_PROPERTY_WAV = "wav";
private String wav;
public RecordingDownloadUrls mp3(String mp3) {
this.mp3 = mp3;
return this;
}
/**
* Link to download the recording in mp3 format
* @return mp3
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Link to download the recording in mp3 format")
@JsonProperty(JSON_PROPERTY_MP3)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMp3() {
return mp3;
}
public void setMp3(String mp3) {
this.mp3 = mp3;
}
public RecordingDownloadUrls wav(String wav) {
this.wav = wav;
return this;
}
/**
* Link to download the recording in wav format
* @return wav
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Link to download the recording in wav format")
@JsonProperty(JSON_PROPERTY_WAV)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getWav() {
return wav;
}
public void setWav(String wav) {
this.wav = wav;
}
/**
* Return true if this Recording_download_urls object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RecordingDownloadUrls recordingDownloadUrls = (RecordingDownloadUrls) o;
return Objects.equals(this.mp3, recordingDownloadUrls.mp3) &&
Objects.equals(this.wav, recordingDownloadUrls.wav);
}
@Override
public int hashCode() {
return Objects.hash(mp3, wav);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RecordingDownloadUrls {\n");
sb.append(" mp3: ").append(toIndentedString(mp3)).append("\n");
sb.append(" wav: ").append(toIndentedString(wav)).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 ");
}
}