Skip to content

Commit

Permalink
Add core
Browse files Browse the repository at this point in the history
  • Loading branch information
newtork committed Aug 26, 2024
1 parent c153aeb commit ce3d9d3
Show file tree
Hide file tree
Showing 208 changed files with 7,966 additions and 7,966 deletions.
118 changes: 59 additions & 59 deletions core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,21 @@ public class AiApiError
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
protected AiApiError() { }

/**
* Set the code of this {@link AiApiError} instance and return the same instance.
*
* @param code Descriptive error code (not http status code)
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError code(@Nonnull final String code) {
/**
* Set the code of this {@link AiApiError} instance and return the same instance.
*
* @param code Descriptive error code (not http status code)
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError code( @Nonnull final String code) {
this.code = code;
return this;
}

/**
* Descriptive error code (not http status code)
* @return code The code of this {@link AiApiError} instance.
*/
/**
* Descriptive error code (not http status code)
* @return code The code of this {@link AiApiError} instance.
*/
@Nonnull public String getCode() {
return code;
}
Expand All @@ -90,21 +90,21 @@ public void setCode( @Nonnull final String code) {
this.code = code;
}

/**
* Set the message of this {@link AiApiError} instance and return the same instance.
*
* @param message Plaintext error description
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError message(@Nonnull final String message) {
/**
* Set the message of this {@link AiApiError} instance and return the same instance.
*
* @param message Plaintext error description
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError message( @Nonnull final String message) {
this.message = message;
return this;
}

/**
* Plaintext error description
* @return message The message of this {@link AiApiError} instance.
*/
/**
* Plaintext error description
* @return message The message of this {@link AiApiError} instance.
*/
@Nonnull public String getMessage() {
return message;
}
Expand All @@ -118,21 +118,21 @@ public void setMessage( @Nonnull final String message) {
this.message = message;
}

/**
* Set the requestId of this {@link AiApiError} instance and return the same instance.
*
* @param requestId ID of the individual request
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError requestId(@Nonnull final String requestId) {
/**
* Set the requestId of this {@link AiApiError} instance and return the same instance.
*
* @param requestId ID of the individual request
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError requestId( @Nullable final String requestId) {
this.requestId = requestId;
return this;
}

/**
* ID of the individual request
* @return requestId The requestId of this {@link AiApiError} instance.
*/
/**
* ID of the individual request
* @return requestId The requestId of this {@link AiApiError} instance.
*/
@Nonnull public String getRequestId() {
return requestId;
}
Expand All @@ -142,25 +142,25 @@ public void setMessage( @Nonnull final String message) {
*
* @param requestId ID of the individual request
*/
public void setRequestId( @Nonnull final String requestId) {
public void setRequestId( @Nullable final String requestId) {
this.requestId = requestId;
}

/**
* Set the target of this {@link AiApiError} instance and return the same instance.
*
* @param target Invoked URL
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError target(@Nonnull final String target) {
/**
* Set the target of this {@link AiApiError} instance and return the same instance.
*
* @param target Invoked URL
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError target( @Nullable final String target) {
this.target = target;
return this;
}

/**
* Invoked URL
* @return target The target of this {@link AiApiError} instance.
*/
/**
* Invoked URL
* @return target The target of this {@link AiApiError} instance.
*/
@Nonnull public String getTarget() {
return target;
}
Expand All @@ -170,25 +170,25 @@ public void setRequestId( @Nonnull final String requestId) {
*
* @param target Invoked URL
*/
public void setTarget( @Nonnull final String target) {
public void setTarget( @Nullable final String target) {
this.target = target;
}

/**
* Set the details of this {@link AiApiError} instance and return the same instance.
*
* @param details Optional details of the error message
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError details(@Nonnull final Object details) {
/**
* Set the details of this {@link AiApiError} instance and return the same instance.
*
* @param details Optional details of the error message
* @return The same instance of this {@link AiApiError} class
*/
@Nonnull public AiApiError details( @Nullable final Object details) {
this.details = details;
return this;
}

/**
* Optional details of the error message
* @return details The details of this {@link AiApiError} instance.
*/
/**
* Optional details of the error message
* @return details The details of this {@link AiApiError} instance.
*/
@Nonnull public Object getDetails() {
return details;
}
Expand All @@ -198,7 +198,7 @@ public void setTarget( @Nonnull final String target) {
*
* @param details Optional details of the error message
*/
public void setDetails( @Nonnull final Object details) {
public void setDetails( @Nullable final Object details) {
this.details = details;
}

Expand All @@ -219,7 +219,7 @@ public Set<String> getCustomFieldNames() {
* @throws NoSuchElementException If no property with the given name could be found.
*/
@Nullable
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
public Object getCustomField( @Nonnull final String name ) throws NoSuchElementException {
if( !cloudSdkCustomFields.containsKey(name) ) {
throw new NoSuchElementException("AiApiError has no field with name '" + name + "'.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@ public class AiApiErrorWithId
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
protected AiApiErrorWithId() { }

/**
* Set the id of this {@link AiApiErrorWithId} instance and return the same instance.
*
* @param id Generic ID
* @return The same instance of this {@link AiApiErrorWithId} class
*/
@Nonnull public AiApiErrorWithId id(@Nonnull final String id) {
/**
* Set the id of this {@link AiApiErrorWithId} instance and return the same instance.
*
* @param id Generic ID
* @return The same instance of this {@link AiApiErrorWithId} class
*/
@Nonnull public AiApiErrorWithId id( @Nonnull final String id) {
this.id = id;
return this;
}

/**
* Generic ID
* @return id The id of this {@link AiApiErrorWithId} instance.
*/
/**
* Generic ID
* @return id The id of this {@link AiApiErrorWithId} instance.
*/
@Nonnull public String getId() {
return id;
}
Expand All @@ -82,21 +82,21 @@ public void setId( @Nonnull final String id) {
this.id = id;
}

/**
* Set the error of this {@link AiApiErrorWithId} instance and return the same instance.
*
* @param error The error of this {@link AiApiErrorWithId}
* @return The same instance of this {@link AiApiErrorWithId} class
*/
@Nonnull public AiApiErrorWithId error(@Nonnull final AiApiError error) {
/**
* Set the error of this {@link AiApiErrorWithId} instance and return the same instance.
*
* @param error The error of this {@link AiApiErrorWithId}
* @return The same instance of this {@link AiApiErrorWithId} class
*/
@Nonnull public AiApiErrorWithId error( @Nonnull final AiApiError error) {
this.error = error;
return this;
}

/**
* Get error
* @return error The error of this {@link AiApiErrorWithId} instance.
*/
/**
* Get error
* @return error The error of this {@link AiApiErrorWithId} instance.
*/
@Nonnull public AiApiError getError() {
return error;
}
Expand Down Expand Up @@ -127,7 +127,7 @@ public Set<String> getCustomFieldNames() {
* @throws NoSuchElementException If no property with the given name could be found.
*/
@Nullable
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
public Object getCustomField( @Nonnull final String name ) throws NoSuchElementException {
if( !cloudSdkCustomFields.containsKey(name) ) {
throw new NoSuchElementException("AiApiErrorWithId has no field with name '" + name + "'.");
}
Expand Down
Loading

0 comments on commit ce3d9d3

Please sign in to comment.