diff --git a/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/generated/model/Error.java b/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/generated/model/Error.java index 2b6c215a5..1cb11ef26 100644 --- a/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/generated/model/Error.java +++ b/foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/generated/model/Error.java @@ -28,6 +28,12 @@ public class Error // CHECKSTYLE:ON { + @JsonProperty("code") + private String code; + + @JsonProperty("message") + private String message; + @JsonProperty("param") private String param; @@ -37,168 +43,162 @@ public class Error @JsonProperty("inner_error") private InnerError innerError; - @JsonProperty("code") - private String code; - - @JsonProperty("message") - private String message; - @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); /** - * Set the param of this {@link Error} instance and return the same instance. + * Set the code of this {@link Error} instance and return the same instance. * - * @param param The param of this {@link Error} + * @param code The code of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error param(@Nullable final String param) { - this.param = param; + public Error code(@Nullable final String code) { + this.code = code; return this; } /** - * Get param + * Get code * - * @return param The param of this {@link Error} instance. + * @return code The code of this {@link Error} instance. */ @Nonnull - public String getParam() { - return param; + public String getCode() { + return code; } /** - * Set the param of this {@link Error} instance. + * Set the code of this {@link Error} instance. * - * @param param The param of this {@link Error} + * @param code The code of this {@link Error} */ - public void setParam(@Nullable final String param) { - this.param = param; + public void setCode(@Nullable final String code) { + this.code = code; } /** - * Set the type of this {@link Error} instance and return the same instance. + * Set the message of this {@link Error} instance and return the same instance. * - * @param type The type of this {@link Error} + * @param message The message of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error type(@Nullable final String type) { - this.type = type; + public Error message(@Nullable final String message) { + this.message = message; return this; } /** - * Get type + * Get message * - * @return type The type of this {@link Error} instance. + * @return message The message of this {@link Error} instance. */ @Nonnull - public String getType() { - return type; + public String getMessage() { + return message; } /** - * Set the type of this {@link Error} instance. + * Set the message of this {@link Error} instance. * - * @param type The type of this {@link Error} + * @param message The message of this {@link Error} */ - public void setType(@Nullable final String type) { - this.type = type; + public void setMessage(@Nullable final String message) { + this.message = message; } /** - * Set the innerError of this {@link Error} instance and return the same instance. + * Set the param of this {@link Error} instance and return the same instance. * - * @param innerError The innerError of this {@link Error} + * @param param The param of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error innerError(@Nullable final InnerError innerError) { - this.innerError = innerError; + public Error param(@Nullable final String param) { + this.param = param; return this; } /** - * Get innerError + * Get param * - * @return innerError The innerError of this {@link Error} instance. + * @return param The param of this {@link Error} instance. */ @Nonnull - public InnerError getInnerError() { - return innerError; + public String getParam() { + return param; } /** - * Set the innerError of this {@link Error} instance. + * Set the param of this {@link Error} instance. * - * @param innerError The innerError of this {@link Error} + * @param param The param of this {@link Error} */ - public void setInnerError(@Nullable final InnerError innerError) { - this.innerError = innerError; + public void setParam(@Nullable final String param) { + this.param = param; } /** - * Set the code of this {@link Error} instance and return the same instance. + * Set the type of this {@link Error} instance and return the same instance. * - * @param code The code of this {@link Error} + * @param type The type of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error code(@Nullable final String code) { - this.code = code; + public Error type(@Nullable final String type) { + this.type = type; return this; } /** - * Get code + * Get type * - * @return code The code of this {@link Error} instance. + * @return type The type of this {@link Error} instance. */ @Nonnull - public String getCode() { - return code; + public String getType() { + return type; } /** - * Set the code of this {@link Error} instance. + * Set the type of this {@link Error} instance. * - * @param code The code of this {@link Error} + * @param type The type of this {@link Error} */ - public void setCode(@Nullable final String code) { - this.code = code; + public void setType(@Nullable final String type) { + this.type = type; } /** - * Set the message of this {@link Error} instance and return the same instance. + * Set the innerError of this {@link Error} instance and return the same instance. * - * @param message The message of this {@link Error} + * @param innerError The innerError of this {@link Error} * @return The same instance of this {@link Error} class */ @Nonnull - public Error message(@Nullable final String message) { - this.message = message; + public Error innerError(@Nullable final InnerError innerError) { + this.innerError = innerError; return this; } /** - * Get message + * Get innerError * - * @return message The message of this {@link Error} instance. + * @return innerError The innerError of this {@link Error} instance. */ @Nonnull - public String getMessage() { - return message; + public InnerError getInnerError() { + return innerError; } /** - * Set the message of this {@link Error} instance. + * Set the innerError of this {@link Error} instance. * - * @param message The message of this {@link Error} + * @param innerError The innerError of this {@link Error} */ - public void setMessage(@Nullable final String message) { - this.message = message; + public void setInnerError(@Nullable final InnerError innerError) { + this.innerError = innerError; } /** @@ -239,11 +239,11 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc @Nonnull public Map toMap() { final Map declaredFields = new LinkedHashMap<>(cloudSdkCustomFields); + if (code != null) declaredFields.put("code", code); + if (message != null) declaredFields.put("message", message); if (param != null) declaredFields.put("param", param); if (type != null) declaredFields.put("type", type); if (innerError != null) declaredFields.put("innerError", innerError); - if (code != null) declaredFields.put("code", code); - if (message != null) declaredFields.put("message", message); return declaredFields; } @@ -269,16 +269,16 @@ public boolean equals(@Nullable final java.lang.Object o) { } final Error error = (Error) o; return Objects.equals(this.cloudSdkCustomFields, error.cloudSdkCustomFields) + && Objects.equals(this.code, error.code) + && Objects.equals(this.message, error.message) && Objects.equals(this.param, error.param) && Objects.equals(this.type, error.type) - && Objects.equals(this.innerError, error.innerError) - && Objects.equals(this.code, error.code) - && Objects.equals(this.message, error.message); + && Objects.equals(this.innerError, error.innerError); } @Override public int hashCode() { - return Objects.hash(param, type, innerError, code, message, cloudSdkCustomFields); + return Objects.hash(code, message, param, type, innerError, cloudSdkCustomFields); } @Override @@ -286,11 +286,11 @@ public int hashCode() { public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class Error {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" param: ").append(toIndentedString(param)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" innerError: ").append(toIndentedString(innerError)).append("\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); cloudSdkCustomFields.forEach( (k, v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); diff --git a/pom.xml b/pom.xml index 7b677b712..c0599e381 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,7 @@ full UTF-8 2025-04-03T13:23:00Z - 5.24.0 + 5.25.0 6.0.1 3.13.2 3.27.6 @@ -299,7 +299,7 @@ org.openapitools openapi-generator-maven-plugin - 7.17.0 + 7.18.0