Package ai.extend.types
Class RunUsageBreakdownEntry.Builder
- java.lang.Object
-
- ai.extend.types.RunUsageBreakdownEntry.Builder
-
- All Implemented Interfaces:
RunUsageBreakdownEntry._FinalStage,RunUsageBreakdownEntry.CreditsStage,RunUsageBreakdownEntry.IdStage,RunUsageBreakdownEntry.ObjectStage
- Enclosing class:
- RunUsageBreakdownEntry
public static final class RunUsageBreakdownEntry.Builder extends java.lang.Object implements RunUsageBreakdownEntry.ObjectStage, RunUsageBreakdownEntry.IdStage, RunUsageBreakdownEntry.CreditsStage, RunUsageBreakdownEntry._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunUsageBreakdownEntrybuild()RunUsageBreakdownEntry._FinalStagecredits(double credits)Credits charged to the contributing resource.RunUsageBreakdownEntry.Builderfrom(RunUsageBreakdownEntry other)RunUsageBreakdownEntry.CreditsStageid(java.lang.String id)The id of the contributing resource (e.g.RunUsageBreakdownEntry.IdStageobject(RunUsageBreakdownEntryObject object)The public object type of the contributing resource.
-
-
-
Method Detail
-
from
public RunUsageBreakdownEntry.Builder from(RunUsageBreakdownEntry other)
- Specified by:
fromin interfaceRunUsageBreakdownEntry.ObjectStage
-
object
public RunUsageBreakdownEntry.IdStage object(@NotNull RunUsageBreakdownEntryObject object)
The public object type of the contributing resource. Mirrors the top-level
objectfield on the corresponding endpoint so callers can fetch the underlying resource by id if they want more detail.The public object type of the contributing resource. Mirrors the top-level
objectfield on the corresponding endpoint so callers can fetch the underlying resource by id if they want more detail.- Specified by:
objectin interfaceRunUsageBreakdownEntry.ObjectStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
public RunUsageBreakdownEntry.CreditsStage id(@NotNull java.lang.String id)
The id of the contributing resource (e.g.
pr_3UZSj69pYZDKHFuuX57ic).The id of the contributing resource (e.g.
pr_3UZSj69pYZDKHFuuX57ic).- Specified by:
idin interfaceRunUsageBreakdownEntry.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
credits
public RunUsageBreakdownEntry._FinalStage credits(double credits)
Credits charged to the contributing resource.
Credits charged to the contributing resource.
- Specified by:
creditsin interfaceRunUsageBreakdownEntry.CreditsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public RunUsageBreakdownEntry build()
- Specified by:
buildin interfaceRunUsageBreakdownEntry._FinalStage
-
-