1616import java .util .Objects ;
1717import java .util .Locale ;
1818import com .bandwidth .sdk .model .RbmActionTypeEnum ;
19+ import com .bandwidth .sdk .model .RbmOpenUrlEnum ;
20+ import com .bandwidth .sdk .model .RbmWebViewEnum ;
1921import com .google .gson .TypeAdapter ;
2022import com .google .gson .annotations .JsonAdapter ;
2123import com .google .gson .annotations .SerializedName ;
@@ -74,6 +76,16 @@ public class RbmActionOpenUrl {
7476 @ javax .annotation .Nonnull
7577 private URI url ;
7678
79+ public static final String SERIALIZED_NAME_APPLICATION = "application" ;
80+ @ SerializedName (SERIALIZED_NAME_APPLICATION )
81+ @ javax .annotation .Nullable
82+ private RbmOpenUrlEnum application ;
83+
84+ public static final String SERIALIZED_NAME_WEBVIEW_VIEW_MODE = "webviewViewMode" ;
85+ @ SerializedName (SERIALIZED_NAME_WEBVIEW_VIEW_MODE )
86+ @ javax .annotation .Nullable
87+ private RbmWebViewEnum webviewViewMode ;
88+
7789 public RbmActionOpenUrl () {
7890 }
7991
@@ -152,6 +164,44 @@ public void setUrl(@javax.annotation.Nonnull URI url) {
152164 this .url = url ;
153165 }
154166
167+
168+ public RbmActionOpenUrl application (@ javax .annotation .Nullable RbmOpenUrlEnum application ) {
169+ this .application = application ;
170+ return this ;
171+ }
172+
173+ /**
174+ * Get application
175+ * @return application
176+ */
177+ @ javax .annotation .Nullable
178+ public RbmOpenUrlEnum getApplication () {
179+ return application ;
180+ }
181+
182+ public void setApplication (@ javax .annotation .Nullable RbmOpenUrlEnum application ) {
183+ this .application = application ;
184+ }
185+
186+
187+ public RbmActionOpenUrl webviewViewMode (@ javax .annotation .Nullable RbmWebViewEnum webviewViewMode ) {
188+ this .webviewViewMode = webviewViewMode ;
189+ return this ;
190+ }
191+
192+ /**
193+ * Get webviewViewMode
194+ * @return webviewViewMode
195+ */
196+ @ javax .annotation .Nullable
197+ public RbmWebViewEnum getWebviewViewMode () {
198+ return webviewViewMode ;
199+ }
200+
201+ public void setWebviewViewMode (@ javax .annotation .Nullable RbmWebViewEnum webviewViewMode ) {
202+ this .webviewViewMode = webviewViewMode ;
203+ }
204+
155205 /**
156206 * A container for additional, undeclared properties.
157207 * This is a holder for any undeclared properties as specified with
@@ -210,13 +260,15 @@ public boolean equals(Object o) {
210260 return Objects .equals (this .type , rbmActionOpenUrl .type ) &&
211261 Objects .equals (this .text , rbmActionOpenUrl .text ) &&
212262 Arrays .equals (this .postbackData , rbmActionOpenUrl .postbackData ) &&
213- Objects .equals (this .url , rbmActionOpenUrl .url )&&
263+ Objects .equals (this .url , rbmActionOpenUrl .url ) &&
264+ Objects .equals (this .application , rbmActionOpenUrl .application ) &&
265+ Objects .equals (this .webviewViewMode , rbmActionOpenUrl .webviewViewMode )&&
214266 Objects .equals (this .additionalProperties , rbmActionOpenUrl .additionalProperties );
215267 }
216268
217269 @ Override
218270 public int hashCode () {
219- return Objects .hash (type , text , Arrays .hashCode (postbackData ), url , additionalProperties );
271+ return Objects .hash (type , text , Arrays .hashCode (postbackData ), url , application , webviewViewMode , additionalProperties );
220272 }
221273
222274 @ Override
@@ -227,6 +279,8 @@ public String toString() {
227279 sb .append (" text: " ).append (toIndentedString (text )).append ("\n " );
228280 sb .append (" postbackData: " ).append (toIndentedString (postbackData )).append ("\n " );
229281 sb .append (" url: " ).append (toIndentedString (url )).append ("\n " );
282+ sb .append (" application: " ).append (toIndentedString (application )).append ("\n " );
283+ sb .append (" webviewViewMode: " ).append (toIndentedString (webviewViewMode )).append ("\n " );
230284 sb .append (" additionalProperties: " ).append (toIndentedString (additionalProperties )).append ("\n " );
231285 sb .append ("}" );
232286 return sb .toString ();
@@ -249,7 +303,7 @@ private String toIndentedString(Object o) {
249303
250304 static {
251305 // a set of all properties/fields (JSON key names)
252- openapiFields = new HashSet <String >(Arrays .asList ("type" , "text" , "postbackData" , "url" ));
306+ openapiFields = new HashSet <String >(Arrays .asList ("type" , "text" , "postbackData" , "url" , "application" , "webviewViewMode" ));
253307
254308 // a set of required properties/fields (JSON key names)
255309 openapiRequiredFields = new HashSet <String >(Arrays .asList ("type" , "text" , "postbackData" , "url" ));
@@ -283,6 +337,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
283337 if (!jsonObj .get ("url" ).isJsonPrimitive ()) {
284338 throw new IllegalArgumentException (String .format (Locale .ROOT , "Expected the field `url` to be a primitive type in the JSON string but got `%s`" , jsonObj .get ("url" ).toString ()));
285339 }
340+ // validate the optional field `application`
341+ if (jsonObj .get ("application" ) != null && !jsonObj .get ("application" ).isJsonNull ()) {
342+ RbmOpenUrlEnum .validateJsonElement (jsonObj .get ("application" ));
343+ }
344+ // validate the optional field `webviewViewMode`
345+ if (jsonObj .get ("webviewViewMode" ) != null && !jsonObj .get ("webviewViewMode" ).isJsonNull ()) {
346+ RbmWebViewEnum .validateJsonElement (jsonObj .get ("webviewViewMode" ));
347+ }
286348 }
287349
288350 public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
0 commit comments