Package com.sap.ai.sdk.core.model
Class AiConfiguration
java.lang.Object
com.sap.ai.sdk.core.model.AiConfiguration
AiConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for AiConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionaddInputArtifactBindingsItem(AiArtifactArgumentBinding inputArtifactBindingsItem) Add one inputArtifactBindings instance to thisAiConfiguration.addParameterBindingsItem(AiParameterArgumentBinding parameterBindingsItem) Add one parameterBindings instance to thisAiConfiguration.static AiConfiguration.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiConfigurationinstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisAiConfigurationinstance and return the same instance.booleanexecutableId(String executableId) Set the executableId of thisAiConfigurationinstance and return the same instance.Timestamp of resource creationgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiConfiguration.ID of the executablegetId()ID of the configurationGet inputArtifactBindingsgetName()Name of the configurationGet parameterBindingsGet scenarioID of the scenariointhashCode()Set the id of thisAiConfigurationinstance and return the same instance.inputArtifactBindings(List<AiArtifactArgumentBinding> inputArtifactBindings) Set the inputArtifactBindings of thisAiConfigurationinstance and return the same instance.Set the name of thisAiConfigurationinstance and return the same instance.parameterBindings(List<AiParameterArgumentBinding> parameterBindings) Set the parameterBindings of thisAiConfigurationinstance and return the same instance.scenario(AiScenario scenario) Set the scenario of thisAiConfigurationinstance and return the same instance.scenarioId(String scenarioId) Set the scenarioId of thisAiConfigurationinstance and return the same instance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisAiConfigurationinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiConfigurationinstance.voidsetExecutableId(String executableId) Set the executableId of thisAiConfigurationinstance.voidSet the id of thisAiConfigurationinstance.voidsetInputArtifactBindings(List<AiArtifactArgumentBinding> inputArtifactBindings) Set the inputArtifactBindings of thisAiConfigurationinstance.voidSet the name of thisAiConfigurationinstance.voidsetParameterBindings(List<AiParameterArgumentBinding> parameterBindings) Set the parameterBindings of thisAiConfigurationinstance.voidsetScenario(AiScenario scenario) Set the scenario of thisAiConfigurationinstance.voidsetScenarioId(String scenarioId) Set the scenarioId of thisAiConfigurationinstance.toMap()Get the value of all properties of thisAiConfigurationinstance including unrecognized properties.toString()
-
Constructor Details
-
AiConfiguration
protected AiConfiguration()Default constructor for AiConfiguration.
-
-
Method Details
-
name
Set the name of thisAiConfigurationinstance and return the same instance.- Parameters:
name- Name of the configuration- Returns:
- The same instance of this
AiConfigurationclass
-
getName
Name of the configuration- Returns:
- name The name of this
AiConfigurationinstance.
-
setName
Set the name of thisAiConfigurationinstance.- Parameters:
name- Name of the configuration
-
executableId
Set the executableId of thisAiConfigurationinstance and return the same instance.- Parameters:
executableId- ID of the executable- Returns:
- The same instance of this
AiConfigurationclass
-
getExecutableId
ID of the executable- Returns:
- executableId The executableId of this
AiConfigurationinstance.
-
setExecutableId
Set the executableId of thisAiConfigurationinstance.- Parameters:
executableId- ID of the executable
-
scenarioId
Set the scenarioId of thisAiConfigurationinstance and return the same instance.- Parameters:
scenarioId- ID of the scenario- Returns:
- The same instance of this
AiConfigurationclass
-
getScenarioId
ID of the scenario- Returns:
- scenarioId The scenarioId of this
AiConfigurationinstance.
-
setScenarioId
Set the scenarioId of thisAiConfigurationinstance.- Parameters:
scenarioId- ID of the scenario
-
parameterBindings
@Nonnull public AiConfiguration parameterBindings(@Nullable List<AiParameterArgumentBinding> parameterBindings) Set the parameterBindings of thisAiConfigurationinstance and return the same instance.- Parameters:
parameterBindings- The parameterBindings of thisAiConfiguration- Returns:
- The same instance of this
AiConfigurationclass
-
addParameterBindingsItem
@Nonnull public AiConfiguration addParameterBindingsItem(@Nonnull AiParameterArgumentBinding parameterBindingsItem) Add one parameterBindings instance to thisAiConfiguration.- Parameters:
parameterBindingsItem- The parameterBindings that should be added- Returns:
- The same instance of type
AiConfiguration
-
getParameterBindings
Get parameterBindings- Returns:
- parameterBindings The parameterBindings of this
AiConfigurationinstance.
-
setParameterBindings
Set the parameterBindings of thisAiConfigurationinstance.- Parameters:
parameterBindings- The parameterBindings of thisAiConfiguration
-
inputArtifactBindings
@Nonnull public AiConfiguration inputArtifactBindings(@Nullable List<AiArtifactArgumentBinding> inputArtifactBindings) Set the inputArtifactBindings of thisAiConfigurationinstance and return the same instance.- Parameters:
inputArtifactBindings- The inputArtifactBindings of thisAiConfiguration- Returns:
- The same instance of this
AiConfigurationclass
-
addInputArtifactBindingsItem
@Nonnull public AiConfiguration addInputArtifactBindingsItem(@Nonnull AiArtifactArgumentBinding inputArtifactBindingsItem) Add one inputArtifactBindings instance to thisAiConfiguration.- Parameters:
inputArtifactBindingsItem- The inputArtifactBindings that should be added- Returns:
- The same instance of type
AiConfiguration
-
getInputArtifactBindings
Get inputArtifactBindings- Returns:
- inputArtifactBindings The inputArtifactBindings of this
AiConfigurationinstance.
-
setInputArtifactBindings
public void setInputArtifactBindings(@Nullable List<AiArtifactArgumentBinding> inputArtifactBindings) Set the inputArtifactBindings of thisAiConfigurationinstance.- Parameters:
inputArtifactBindings- The inputArtifactBindings of thisAiConfiguration
-
id
Set the id of thisAiConfigurationinstance and return the same instance.- Parameters:
id- ID of the configuration- Returns:
- The same instance of this
AiConfigurationclass
-
getId
ID of the configuration- Returns:
- id The id of this
AiConfigurationinstance.
-
setId
Set the id of thisAiConfigurationinstance.- Parameters:
id- ID of the configuration
-
createdAt
Set the createdAt of thisAiConfigurationinstance and return the same instance.- Parameters:
createdAt- Timestamp of resource creation- Returns:
- The same instance of this
AiConfigurationclass
-
getCreatedAt
Timestamp of resource creation- Returns:
- createdAt The createdAt of this
AiConfigurationinstance.
-
setCreatedAt
Set the createdAt of thisAiConfigurationinstance.- Parameters:
createdAt- Timestamp of resource creation
-
scenario
Set the scenario of thisAiConfigurationinstance and return the same instance.- Parameters:
scenario- The scenario of thisAiConfiguration- Returns:
- The same instance of this
AiConfigurationclass
-
getScenario
Get scenario- Returns:
- scenario The scenario of this
AiConfigurationinstance.
-
setScenario
Set the scenario of thisAiConfigurationinstance.- Parameters:
scenario- The scenario of thisAiConfiguration
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiConfiguration.- 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 thisAiConfigurationinstance.- 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 thisAiConfigurationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiConfigurationinstance. 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 newAiConfigurationinstance with all required arguments.
-
toMap()instead.