Package com.sap.ai.sdk.core.model
Class BckndInstanceTypeValue
java.lang.Object
com.sap.ai.sdk.core.model.BckndInstanceTypeValue
BckndInstanceTypeValue
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for BckndInstanceTypeValue. -
Method Summary
Modifier and TypeMethodDescriptionbillableUnitsPerHour(BigDecimal billableUnitsPerHour) Set the billableUnitsPerHour of thisBckndInstanceTypeValueinstance and return the same instance.cpu(BigDecimal cpu) Set the cpu of thisBckndInstanceTypeValueinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newBckndInstanceTypeValueinstance with all required arguments.booleanNumber of billable units per hour for the instance typegetCpu()Number of CPU cores allocated for the instance typegetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theBckndInstanceTypeValue.getGpu()Number of GPUs allocated for the instance typeMemory allocated for the instance type (e.g., \"16Gi\")gpu(BigDecimal gpu) Set the gpu of thisBckndInstanceTypeValueinstance and return the same instance.inthashCode()Set the memory of thisBckndInstanceTypeValueinstance and return the same instance.voidsetBillableUnitsPerHour(BigDecimal billableUnitsPerHour) Set the billableUnitsPerHour of thisBckndInstanceTypeValueinstance.voidsetCpu(BigDecimal cpu) Set the cpu of thisBckndInstanceTypeValueinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisBckndInstanceTypeValueinstance.voidsetGpu(BigDecimal gpu) Set the gpu of thisBckndInstanceTypeValueinstance.voidSet the memory of thisBckndInstanceTypeValueinstance.toMap()Get the value of all properties of thisBckndInstanceTypeValueinstance including unrecognized properties.toString()
-
Constructor Details
-
BckndInstanceTypeValue
protected BckndInstanceTypeValue()Default constructor for BckndInstanceTypeValue.
-
-
Method Details
-
memory
Set the memory of thisBckndInstanceTypeValueinstance and return the same instance.- Parameters:
memory- Memory allocated for the instance type (e.g., \"16Gi\")- Returns:
- The same instance of this
BckndInstanceTypeValueclass
-
getMemory
Memory allocated for the instance type (e.g., \"16Gi\")- Returns:
- memory The memory of this
BckndInstanceTypeValueinstance.
-
setMemory
Set the memory of thisBckndInstanceTypeValueinstance.- Parameters:
memory- Memory allocated for the instance type (e.g., \"16Gi\")
-
cpu
Set the cpu of thisBckndInstanceTypeValueinstance and return the same instance.- Parameters:
cpu- Number of CPU cores allocated for the instance type- Returns:
- The same instance of this
BckndInstanceTypeValueclass
-
getCpu
Number of CPU cores allocated for the instance type- Returns:
- cpu The cpu of this
BckndInstanceTypeValueinstance.
-
setCpu
Set the cpu of thisBckndInstanceTypeValueinstance.- Parameters:
cpu- Number of CPU cores allocated for the instance type
-
gpu
Set the gpu of thisBckndInstanceTypeValueinstance and return the same instance.- Parameters:
gpu- Number of GPUs allocated for the instance type- Returns:
- The same instance of this
BckndInstanceTypeValueclass
-
getGpu
Number of GPUs allocated for the instance type- Returns:
- gpu The gpu of this
BckndInstanceTypeValueinstance.
-
setGpu
Set the gpu of thisBckndInstanceTypeValueinstance.- Parameters:
gpu- Number of GPUs allocated for the instance type
-
billableUnitsPerHour
@Nonnull public BckndInstanceTypeValue billableUnitsPerHour(@Nonnull BigDecimal billableUnitsPerHour) Set the billableUnitsPerHour of thisBckndInstanceTypeValueinstance and return the same instance.- Parameters:
billableUnitsPerHour- Number of billable units per hour for the instance type- Returns:
- The same instance of this
BckndInstanceTypeValueclass
-
getBillableUnitsPerHour
Number of billable units per hour for the instance type- Returns:
- billableUnitsPerHour The billableUnitsPerHour of this
BckndInstanceTypeValueinstance.
-
setBillableUnitsPerHour
Set the billableUnitsPerHour of thisBckndInstanceTypeValueinstance.- Parameters:
billableUnitsPerHour- Number of billable units per hour for the instance type
-
getCustomFieldNames
Get the names of the unrecognizable properties of theBckndInstanceTypeValue.- 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 thisBckndInstanceTypeValueinstance.- 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 thisBckndInstanceTypeValueinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisBckndInstanceTypeValueinstance. 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 newBckndInstanceTypeValueinstance with all required arguments.
-
toMap()instead.