Package com.sap.ai.sdk.grounding.model
Class PresignedUrlResponse
java.lang.Object
com.sap.ai.sdk.grounding.model.PresignedUrlResponse
PresignedUrlResponse
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PresignedUrlResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic PresignedUrlResponsecreate()Create a newPresignedUrlResponseinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePresignedUrlResponse.getUrl()The presigned URL to access the document.inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPresignedUrlResponseinstance.voidSet the url of thisPresignedUrlResponseinstance.toMap()Get the value of all properties of thisPresignedUrlResponseinstance including unrecognized properties.toString()Set the url of thisPresignedUrlResponseinstance and return the same instance.
-
Constructor Details
-
PresignedUrlResponse
protected PresignedUrlResponse()Default constructor for PresignedUrlResponse.
-
-
Method Details
-
url
Set the url of thisPresignedUrlResponseinstance and return the same instance.- Parameters:
url- The presigned URL to access the document.- Returns:
- The same instance of this
PresignedUrlResponseclass
-
getUrl
The presigned URL to access the document.- Returns:
- url The url of this
PresignedUrlResponseinstance.
-
setUrl
Set the url of thisPresignedUrlResponseinstance.- Parameters:
url- The presigned URL to access the document.
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePresignedUrlResponse.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisPresignedUrlResponseinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisPresignedUrlResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPresignedUrlResponseinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a newPresignedUrlResponseinstance. No arguments are required.
-
toMap()instead.