Package com.sap.ai.sdk.core.model
Class AiVersion
java.lang.Object
com.sap.ai.sdk.core.model.AiVersion
AiVersion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AiVersion.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiVersioninstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisAiVersioninstance and return the same instance.description(String description) Set the description of thisAiVersioninstance and return the same instance.booleanTimestamp of resource creationgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiVersion.Version descriptiongetId()Version IDTimestamp of latest resource modificationID of the scenariointhashCode()Set the id of thisAiVersioninstance and return the same instance.modifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiVersioninstance and return the same instance.scenarioId(String scenarioId) Set the scenarioId of thisAiVersioninstance and return the same instance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisAiVersioninstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiVersioninstance.voidsetDescription(String description) Set the description of thisAiVersioninstance.voidSet the id of thisAiVersioninstance.voidsetModifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisAiVersioninstance.voidsetScenarioId(String scenarioId) Set the scenarioId of thisAiVersioninstance.toMap()Get the value of all properties of thisAiVersioninstance including unrecognized properties.toString()
-
Constructor Details
-
AiVersion
protected AiVersion()Default constructor for AiVersion.
-
-
Method Details
-
description
Set the description of thisAiVersioninstance and return the same instance.- Parameters:
description- Version description- Returns:
- The same instance of this
AiVersionclass
-
getDescription
Version description- Returns:
- description The description of this
AiVersioninstance.
-
setDescription
Set the description of thisAiVersioninstance.- Parameters:
description- Version description
-
id
Set the id of thisAiVersioninstance and return the same instance.- Parameters:
id- Version ID- Returns:
- The same instance of this
AiVersionclass
-
getId
Version ID- Returns:
- id The id of this
AiVersioninstance.
-
setId
Set the id of thisAiVersioninstance.- Parameters:
id- Version ID
-
scenarioId
Set the scenarioId of thisAiVersioninstance and return the same instance.- Parameters:
scenarioId- ID of the scenario- Returns:
- The same instance of this
AiVersionclass
-
getScenarioId
ID of the scenario- Returns:
- scenarioId The scenarioId of this
AiVersioninstance.
-
setScenarioId
Set the scenarioId of thisAiVersioninstance.- Parameters:
scenarioId- ID of the scenario
-
createdAt
Set the createdAt of thisAiVersioninstance and return the same instance.- Parameters:
createdAt- Timestamp of resource creation- Returns:
- The same instance of this
AiVersionclass
-
getCreatedAt
Timestamp of resource creation- Returns:
- createdAt The createdAt of this
AiVersioninstance.
-
setCreatedAt
Set the createdAt of thisAiVersioninstance.- Parameters:
createdAt- Timestamp of resource creation
-
modifiedAt
Set the modifiedAt of thisAiVersioninstance and return the same instance.- Parameters:
modifiedAt- Timestamp of latest resource modification- Returns:
- The same instance of this
AiVersionclass
-
getModifiedAt
Timestamp of latest resource modification- Returns:
- modifiedAt The modifiedAt of this
AiVersioninstance.
-
setModifiedAt
Set the modifiedAt of thisAiVersioninstance.- Parameters:
modifiedAt- Timestamp of latest resource modification
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiVersion.- 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 thisAiVersioninstance.- 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 thisAiVersioninstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiVersioninstance. 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 type-safe, fluent-api builder object to construct a newAiVersioninstance with all required arguments.
-
toMap()instead.