Package com.sap.ai.sdk.grounding.model
Class PresignedUrlRequest
java.lang.Object
com.sap.ai.sdk.grounding.model.PresignedUrlRequest
PresignedUrlRequest
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PresignedUrlRequest. -
Method Summary
Modifier and TypeMethodDescriptionstatic PresignedUrlRequestcreate()Create a newPresignedUrlRequestinstance.booleanexpirationSecs(Integer expirationSecs) Set the expirationSecs of thisPresignedUrlRequestinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePresignedUrlRequest.Expiration time in seconds for the presigned URL (600–604800).inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPresignedUrlRequestinstance.voidsetExpirationSecs(Integer expirationSecs) Set the expirationSecs of thisPresignedUrlRequestinstance.toMap()Get the value of all properties of thisPresignedUrlRequestinstance including unrecognized properties.toString()
-
Constructor Details
-
PresignedUrlRequest
protected PresignedUrlRequest()Default constructor for PresignedUrlRequest.
-
-
Method Details
-
expirationSecs
Set the expirationSecs of thisPresignedUrlRequestinstance and return the same instance.- Parameters:
expirationSecs- Expiration time in seconds for the presigned URL (600–604800). If omitted, the destination's presign_expiration_secs setting is used. Minimum: 600 Maximum: 604800- Returns:
- The same instance of this
PresignedUrlRequestclass
-
getExpirationSecs
Expiration time in seconds for the presigned URL (600–604800). If omitted, the destination's presign_expiration_secs setting is used. minimum: 600 maximum: 604800- Returns:
- expirationSecs The expirationSecs of this
PresignedUrlRequestinstance.
-
setExpirationSecs
Set the expirationSecs of thisPresignedUrlRequestinstance.- Parameters:
expirationSecs- Expiration time in seconds for the presigned URL (600–604800). If omitted, the destination's presign_expiration_secs setting is used. Minimum: 600 Maximum: 604800
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePresignedUrlRequest.- 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 thisPresignedUrlRequestinstance.- 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 thisPresignedUrlRequestinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPresignedUrlRequestinstance. 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 newPresignedUrlRequestinstance. No arguments are required.
-
toMap()instead.