12
12
import com .fasterxml .jackson .annotation .Nulls ;
13
13
import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
14
14
import com .vapi .api .core .ObjectMappers ;
15
+ import com .vapi .api .resources .logs .types .LoggingControllerLogsDeleteQueryRequestType ;
15
16
import java .util .HashMap ;
16
17
import java .util .Map ;
17
18
import java .util .Objects ;
20
21
@ JsonInclude (JsonInclude .Include .NON_ABSENT )
21
22
@ JsonDeserialize (builder = LoggingControllerLogsDeleteQueryRequest .Builder .class )
22
23
public final class LoggingControllerLogsDeleteQueryRequest {
23
- private final Optional <String > orgId ;
24
+ private final Optional <LoggingControllerLogsDeleteQueryRequestType > type ;
24
25
25
26
private final Optional <String > assistantId ;
26
27
@@ -35,14 +36,14 @@ public final class LoggingControllerLogsDeleteQueryRequest {
35
36
private final Map <String , Object > additionalProperties ;
36
37
37
38
private LoggingControllerLogsDeleteQueryRequest (
38
- Optional <String > orgId ,
39
+ Optional <LoggingControllerLogsDeleteQueryRequestType > type ,
39
40
Optional <String > assistantId ,
40
41
Optional <String > phoneNumberId ,
41
42
Optional <String > customerId ,
42
43
Optional <String > squadId ,
43
44
Optional <String > callId ,
44
45
Map <String , Object > additionalProperties ) {
45
- this .orgId = orgId ;
46
+ this .type = type ;
46
47
this .assistantId = assistantId ;
47
48
this .phoneNumberId = phoneNumberId ;
48
49
this .customerId = customerId ;
@@ -52,16 +53,13 @@ private LoggingControllerLogsDeleteQueryRequest(
52
53
}
53
54
54
55
/**
55
- * @return This is the unique identifier for the org that this log belongs to .
56
+ * @return This is the type of the log.
56
57
*/
57
- @ JsonProperty ("orgId " )
58
- public Optional <String > getOrgId () {
59
- return orgId ;
58
+ @ JsonProperty ("type " )
59
+ public Optional <LoggingControllerLogsDeleteQueryRequestType > getType () {
60
+ return type ;
60
61
}
61
62
62
- /**
63
- * @return This is the ID of the assistant.
64
- */
65
63
@ JsonProperty ("assistantId" )
66
64
public Optional <String > getAssistantId () {
67
65
return assistantId ;
@@ -112,7 +110,7 @@ public Map<String, Object> getAdditionalProperties() {
112
110
}
113
111
114
112
private boolean equalTo (LoggingControllerLogsDeleteQueryRequest other ) {
115
- return orgId .equals (other .orgId )
113
+ return type .equals (other .type )
116
114
&& assistantId .equals (other .assistantId )
117
115
&& phoneNumberId .equals (other .phoneNumberId )
118
116
&& customerId .equals (other .customerId )
@@ -123,7 +121,7 @@ private boolean equalTo(LoggingControllerLogsDeleteQueryRequest other) {
123
121
@ java .lang .Override
124
122
public int hashCode () {
125
123
return Objects .hash (
126
- this .orgId , this .assistantId , this .phoneNumberId , this .customerId , this .squadId , this .callId );
124
+ this .type , this .assistantId , this .phoneNumberId , this .customerId , this .squadId , this .callId );
127
125
}
128
126
129
127
@ java .lang .Override
@@ -137,7 +135,7 @@ public static Builder builder() {
137
135
138
136
@ JsonIgnoreProperties (ignoreUnknown = true )
139
137
public static final class Builder {
140
- private Optional <String > orgId = Optional .empty ();
138
+ private Optional <LoggingControllerLogsDeleteQueryRequestType > type = Optional .empty ();
141
139
142
140
private Optional <String > assistantId = Optional .empty ();
143
141
@@ -155,7 +153,7 @@ public static final class Builder {
155
153
private Builder () {}
156
154
157
155
public Builder from (LoggingControllerLogsDeleteQueryRequest other ) {
158
- orgId (other .getOrgId ());
156
+ type (other .getType ());
159
157
assistantId (other .getAssistantId ());
160
158
phoneNumberId (other .getPhoneNumberId ());
161
159
customerId (other .getCustomerId ());
@@ -164,14 +162,14 @@ public Builder from(LoggingControllerLogsDeleteQueryRequest other) {
164
162
return this ;
165
163
}
166
164
167
- @ JsonSetter (value = "orgId " , nulls = Nulls .SKIP )
168
- public Builder orgId (Optional <String > orgId ) {
169
- this .orgId = orgId ;
165
+ @ JsonSetter (value = "type " , nulls = Nulls .SKIP )
166
+ public Builder type (Optional <LoggingControllerLogsDeleteQueryRequestType > type ) {
167
+ this .type = type ;
170
168
return this ;
171
169
}
172
170
173
- public Builder orgId ( String orgId ) {
174
- this .orgId = Optional .ofNullable (orgId );
171
+ public Builder type ( LoggingControllerLogsDeleteQueryRequestType type ) {
172
+ this .type = Optional .ofNullable (type );
175
173
return this ;
176
174
}
177
175
@@ -232,7 +230,7 @@ public Builder callId(String callId) {
232
230
233
231
public LoggingControllerLogsDeleteQueryRequest build () {
234
232
return new LoggingControllerLogsDeleteQueryRequest (
235
- orgId , assistantId , phoneNumberId , customerId , squadId , callId , additionalProperties );
233
+ type , assistantId , phoneNumberId , customerId , squadId , callId , additionalProperties );
236
234
}
237
235
}
238
236
}
0 commit comments