-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCreateConferenceRequest.java
More file actions
239 lines (199 loc) · 7.79 KB
/
CreateConferenceRequest.java
File metadata and controls
239 lines (199 loc) · 7.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
/*
* FreeClimb API
* FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
*
* The version of the OpenAPI document: 1.0.0
* Contact: support@freeclimb.com
*
* 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.github.freeclimbapi.models;
import com.github.freeclimbapi.enums.*;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;
import java.net.URI;
import java.util.*;
import java.util.Arrays;
import java.util.Objects;
import org.openapitools.jackson.nullable.JsonNullable;
/** CreateConferenceRequest */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CreateConferenceRequest {
public static String getDiscriminatorValue() {
return null;
}
public static final String SERIALIZED_NAME_ALIAS = "alias";
@SerializedName(SERIALIZED_NAME_ALIAS)
private String alias;
public static final String SERIALIZED_NAME_PLAY_BEEP = "playBeep";
@SerializedName(SERIALIZED_NAME_PLAY_BEEP)
private PlayBeep playBeep;
public static final String SERIALIZED_NAME_RECORD = "record";
@SerializedName(SERIALIZED_NAME_RECORD)
private Boolean record;
public static final String SERIALIZED_NAME_WAIT_URL = "waitUrl";
@SerializedName(SERIALIZED_NAME_WAIT_URL)
private URI waitUrl;
public static final String SERIALIZED_NAME_STATUS_CALLBACK_URL = "statusCallbackUrl";
@SerializedName(SERIALIZED_NAME_STATUS_CALLBACK_URL)
private URI statusCallbackUrl;
public CreateConferenceRequest() {}
public CreateConferenceRequest alias(String alias) {
this.alias = alias;
return this;
}
/**
* A description for this Conference. Maximum 64 characters.
*
* @return alias
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "A description for this Conference. Maximum 64 characters.")
public String getAlias() {
return alias;
}
public void setAlias(String alias) {
this.alias = alias;
}
public CreateConferenceRequest playBeep(PlayBeep playBeep) {
this.playBeep = playBeep;
return this;
}
/**
* Get playBeep
*
* @return playBeep
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PlayBeep getPlayBeep() {
return playBeep;
}
public void setPlayBeep(PlayBeep playBeep) {
this.playBeep = playBeep;
}
public CreateConferenceRequest record(Boolean record) {
this.record = record;
return this;
}
/**
* Setting to `true` records the entire Conference.
*
* @return record
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "Setting to `true` records the entire Conference.")
public Boolean getRecord() {
return record;
}
public void setRecord(Boolean record) {
this.record = record;
}
public CreateConferenceRequest waitUrl(URI waitUrl) {
this.waitUrl = waitUrl;
return this;
}
/**
* If specified, a URL for the audio file that provides custom hold music for the Conference
* when it is in the populated state. Otherwise, FreeClimb uses a system default audio file.
* This is always fetched using HTTP GET and is fetched just once — when the
* Conference is created.
*
* @return waitUrl
*/
@javax.annotation.Nullable
@ApiModelProperty(
value =
"If specified, a URL for the audio file that provides custom hold music for the"
+ " Conference when it is in the populated state. Otherwise, FreeClimb uses"
+ " a system default audio file. This is always fetched using HTTP GET and"
+ " is fetched just once — when the Conference is created.")
public URI getWaitUrl() {
return waitUrl;
}
public void setWaitUrl(URI waitUrl) {
this.waitUrl = waitUrl;
}
public CreateConferenceRequest statusCallbackUrl(URI statusCallbackUrl) {
this.statusCallbackUrl = statusCallbackUrl;
return this;
}
/**
* This URL is invoked when the status of the Conference changes. For more information, see
* **statusCallbackUrl** (below).
*
* @return statusCallbackUrl
*/
@javax.annotation.Nonnull
@ApiModelProperty(
required = true,
value =
"This URL is invoked when the status of the Conference changes. For more"
+ " information, see **statusCallbackUrl** (below).")
public URI getStatusCallbackUrl() {
return statusCallbackUrl;
}
public void setStatusCallbackUrl(URI statusCallbackUrl) {
this.statusCallbackUrl = statusCallbackUrl;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateConferenceRequest createConferenceRequest = (CreateConferenceRequest) o;
return Objects.equals(this.alias, createConferenceRequest.alias)
&& Objects.equals(this.playBeep, createConferenceRequest.playBeep)
&& Objects.equals(this.record, createConferenceRequest.record)
&& Objects.equals(this.waitUrl, createConferenceRequest.waitUrl)
&& Objects.equals(
this.statusCallbackUrl, createConferenceRequest.statusCallbackUrl);
}
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
return a == b
|| (a != null
&& b != null
&& a.isPresent()
&& b.isPresent()
&& Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(alias, playBeep, record, waitUrl, statusCallbackUrl);
}
private static <T> int hashCodeNullable(JsonNullable<T> a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateConferenceRequest {\n");
sb.append(" alias: ").append(toIndentedString(alias)).append("\n");
sb.append(" playBeep: ").append(toIndentedString(playBeep)).append("\n");
sb.append(" record: ").append(toIndentedString(record)).append("\n");
sb.append(" waitUrl: ").append(toIndentedString(waitUrl)).append("\n");
sb.append(" statusCallbackUrl: ")
.append(toIndentedString(statusCallbackUrl))
.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 ");
}
}