Package com.sap.ai.sdk.core.model
Class MetaAPIVersion
java.lang.Object
com.sap.ai.sdk.core.model.MetaAPIVersion
API version description
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetaAPIVersioncreate()Create a newMetaAPIVersioninstance.description(String description) Set the description of thisMetaAPIVersioninstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMetaAPIVersion.version descriptiongetUrl()URL of the API versionAPI version identifierinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMetaAPIVersioninstance.voidsetDescription(String description) Set the description of thisMetaAPIVersioninstance.voidSet the url of thisMetaAPIVersioninstance.voidsetVersionId(String versionId) Set the versionId of thisMetaAPIVersioninstance.toMap()Get the value of all properties of thisMetaAPIVersioninstance including unrecognized properties.toString()Set the url of thisMetaAPIVersioninstance and return the same instance.Set the versionId of thisMetaAPIVersioninstance and return the same instance.
-
Constructor Details
-
MetaAPIVersion
protected MetaAPIVersion()Default constructor for MetaAPIVersion.
-
-
Method Details
-
versionId
Set the versionId of thisMetaAPIVersioninstance and return the same instance.- Parameters:
versionId- API version identifier- Returns:
- The same instance of this
MetaAPIVersionclass
-
getVersionId
API version identifier- Returns:
- versionId The versionId of this
MetaAPIVersioninstance.
-
setVersionId
Set the versionId of thisMetaAPIVersioninstance.- Parameters:
versionId- API version identifier
-
url
Set the url of thisMetaAPIVersioninstance and return the same instance.- Parameters:
url- URL of the API version- Returns:
- The same instance of this
MetaAPIVersionclass
-
getUrl
URL of the API version- Returns:
- url The url of this
MetaAPIVersioninstance.
-
setUrl
Set the url of thisMetaAPIVersioninstance.- Parameters:
url- URL of the API version
-
description
Set the description of thisMetaAPIVersioninstance and return the same instance.- Parameters:
description- version description- Returns:
- The same instance of this
MetaAPIVersionclass
-
getDescription
version description- Returns:
- description The description of this
MetaAPIVersioninstance.
-
setDescription
Set the description of thisMetaAPIVersioninstance.- Parameters:
description- version description
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMetaAPIVersion.- 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 thisMetaAPIVersioninstance.- 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 thisMetaAPIVersioninstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMetaAPIVersioninstance. 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 newMetaAPIVersioninstance. No arguments are required.
-
toMap()instead.