Class AIAPIQuotaLimitDTO
- java.lang.Object
-
- org.wso2.am.integration.clients.admin.api.dto.AIAPIQuotaLimitDTO
-
public class AIAPIQuotaLimitDTO extends Object
AIAPIQuotaLimitDTO
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_COMPLETION_TOKEN_COUNTstatic StringSERIALIZED_NAME_PROMPT_TOKEN_COUNTstatic StringSERIALIZED_NAME_REQUEST_COUNTstatic StringSERIALIZED_NAME_TIME_UNITstatic StringSERIALIZED_NAME_TOTAL_TOKEN_COUNTstatic StringSERIALIZED_NAME_UNIT_TIME
-
Constructor Summary
Constructors Constructor Description AIAPIQuotaLimitDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AIAPIQuotaLimitDTOcompletionTokenCount(Long completionTokenCount)booleanequals(Object o)LonggetCompletionTokenCount()Maximum number of completion tokens allowedLonggetPromptTokenCount()Maximum number of prompt tokens allowedLonggetRequestCount()Maximum number of requests allowedStringgetTimeUnit()Unit of the time.LonggetTotalTokenCount()Maximum number of total tokens allowedIntegergetUnitTime()Time limit that the throttling limit applies.inthashCode()AIAPIQuotaLimitDTOpromptTokenCount(Long promptTokenCount)AIAPIQuotaLimitDTOrequestCount(Long requestCount)voidsetCompletionTokenCount(Long completionTokenCount)voidsetPromptTokenCount(Long promptTokenCount)voidsetRequestCount(Long requestCount)voidsetTimeUnit(String timeUnit)voidsetTotalTokenCount(Long totalTokenCount)voidsetUnitTime(Integer unitTime)AIAPIQuotaLimitDTOtimeUnit(String timeUnit)StringtoString()AIAPIQuotaLimitDTOtotalTokenCount(Long totalTokenCount)AIAPIQuotaLimitDTOunitTime(Integer unitTime)
-
-
-
Field Detail
-
SERIALIZED_NAME_TIME_UNIT
public static final String SERIALIZED_NAME_TIME_UNIT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UNIT_TIME
public static final String SERIALIZED_NAME_UNIT_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REQUEST_COUNT
public static final String SERIALIZED_NAME_REQUEST_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTAL_TOKEN_COUNT
public static final String SERIALIZED_NAME_TOTAL_TOKEN_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROMPT_TOKEN_COUNT
public static final String SERIALIZED_NAME_PROMPT_TOKEN_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPLETION_TOKEN_COUNT
public static final String SERIALIZED_NAME_COMPLETION_TOKEN_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
timeUnit
public AIAPIQuotaLimitDTO timeUnit(String timeUnit)
-
getTimeUnit
public String getTimeUnit()
Unit of the time. Allowed values are \"sec\", \"min\", \"hour\", \"day\"- Returns:
- timeUnit
-
setTimeUnit
public void setTimeUnit(String timeUnit)
-
unitTime
public AIAPIQuotaLimitDTO unitTime(Integer unitTime)
-
getUnitTime
public Integer getUnitTime()
Time limit that the throttling limit applies.- Returns:
- unitTime
-
setUnitTime
public void setUnitTime(Integer unitTime)
-
requestCount
public AIAPIQuotaLimitDTO requestCount(Long requestCount)
-
getRequestCount
public Long getRequestCount()
Maximum number of requests allowed- Returns:
- requestCount
-
setRequestCount
public void setRequestCount(Long requestCount)
-
totalTokenCount
public AIAPIQuotaLimitDTO totalTokenCount(Long totalTokenCount)
-
getTotalTokenCount
@Nullable public Long getTotalTokenCount()
Maximum number of total tokens allowed- Returns:
- totalTokenCount
-
setTotalTokenCount
public void setTotalTokenCount(Long totalTokenCount)
-
promptTokenCount
public AIAPIQuotaLimitDTO promptTokenCount(Long promptTokenCount)
-
getPromptTokenCount
@Nullable public Long getPromptTokenCount()
Maximum number of prompt tokens allowed- Returns:
- promptTokenCount
-
setPromptTokenCount
public void setPromptTokenCount(Long promptTokenCount)
-
completionTokenCount
public AIAPIQuotaLimitDTO completionTokenCount(Long completionTokenCount)
-
getCompletionTokenCount
@Nullable public Long getCompletionTokenCount()
Maximum number of completion tokens allowed- Returns:
- completionTokenCount
-
setCompletionTokenCount
public void setCompletionTokenCount(Long completionTokenCount)
-
-