Package com.sap.ai.sdk.core.model
Class AiArtifactList
java.lang.Object
com.sap.ai.sdk.core.model.AiArtifactList
AiArtifactList
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem(AiArtifact resourcesItem) Add one resources instance to thisAiArtifactList.Set the count of thisAiArtifactListinstance and return the same instance.static AiArtifactList.Buildercreate()Create a type-safe, fluent-api builder object to construct a newAiArtifactListinstance with all required arguments.booleangetCount()Number of the resource instances in the listgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiArtifactList.Get resourcesinthashCode()resources(List<AiArtifact> resources) Set the resources of thisAiArtifactListinstance and return the same instance.voidSet the count of thisAiArtifactListinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiArtifactListinstance.voidsetResources(List<AiArtifact> resources) Set the resources of thisAiArtifactListinstance.toMap()Get the value of all properties of thisAiArtifactListinstance including unrecognized properties.toString()
-
Constructor Details
-
AiArtifactList
protected AiArtifactList()Default constructor for AiArtifactList.
-
-
Method Details
-
count
Set the count of thisAiArtifactListinstance and return the same instance.- Parameters:
count- Number of the resource instances in the list- Returns:
- The same instance of this
AiArtifactListclass
-
getCount
Number of the resource instances in the list- Returns:
- count The count of this
AiArtifactListinstance.
-
setCount
Set the count of thisAiArtifactListinstance.- Parameters:
count- Number of the resource instances in the list
-
resources
Set the resources of thisAiArtifactListinstance and return the same instance.- Parameters:
resources- The resources of thisAiArtifactList- Returns:
- The same instance of this
AiArtifactListclass
-
addResourcesItem
Add one resources instance to thisAiArtifactList.- Parameters:
resourcesItem- The resources that should be added- Returns:
- The same instance of type
AiArtifactList
-
getResources
Get resources- Returns:
- resources The resources of this
AiArtifactListinstance.
-
setResources
Set the resources of thisAiArtifactListinstance.- Parameters:
resources- The resources of thisAiArtifactList
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiArtifactList.- 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 thisAiArtifactListinstance.- 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 thisAiArtifactListinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiArtifactListinstance. 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 newAiArtifactListinstance with all required arguments.
-
toMap()instead.