Package com.authlete.common.dto
Class TokenBatchStatus
- java.lang.Object
-
- com.authlete.common.dto.TokenBatchStatus
-
- All Implemented Interfaces:
Serializable
public class TokenBatchStatus extends Object implements Serializable
The status of token batch.- Since:
- 3.96
- Author:
- Hideki Ikeda
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenBatchStatus.BatchKindBatch Kind.static classTokenBatchStatus.ResultBatch result.
-
Constructor Summary
Constructors Constructor Description TokenBatchStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenBatchStatus.BatchKindgetBatchKind()Get the kind of the batch.longgetCreatedAt()Get the time when this status was created.StringgetErrorCode()Get the error code.StringgetErrorDescription()Get the error description.longgetModifiedAt()Get the time when this status was last modified.StringgetRequestId()Get the request ID associated with the status.TokenBatchStatus.ResultgetResult()Get the result of the token batch.longgetTokenCount()Get the number of access tokens processed by the batch.TokenBatchStatussetBatchKind(TokenBatchStatus.BatchKind batchKind)Set the kind of the batch.TokenBatchStatussetCreatedAt(long createdAt)Set the time when this status was created.TokenBatchStatussetErrorCode(String errorCode)Set the error code.TokenBatchStatussetErrorDescription(String errorDescription)Set the error description.TokenBatchStatussetModifiedAt(long modifiedAt)Set the time when this status was last modified.TokenBatchStatussetRequestId(String requestId)Set the request ID associated with the status.TokenBatchStatussetResult(TokenBatchStatus.Result result)Set the result of the token batch.TokenBatchStatussetTokenCount(long tokenCount)Set the number of access tokens processed by the batch.
-
-
-
Method Detail
-
getBatchKind
public TokenBatchStatus.BatchKind getBatchKind()
Get the kind of the batch.- Returns:
- The kind of the batch.
-
setBatchKind
public TokenBatchStatus setBatchKind(TokenBatchStatus.BatchKind batchKind)
Set the kind of the batch.- Parameters:
batchKind- The kind of the batch.- Returns:
thisobject.
-
getRequestId
public String getRequestId()
Get the request ID associated with the status.- Returns:
- The request ID associated with the status.
-
setRequestId
public TokenBatchStatus setRequestId(String requestId)
Set the request ID associated with the status.- Parameters:
requestId- The request ID associated with the status.- Returns:
thisobject.
-
getResult
public TokenBatchStatus.Result getResult()
Get the result of the token batch.- Returns:
- The result of the token batch.
-
setResult
public TokenBatchStatus setResult(TokenBatchStatus.Result result)
Set the result of the token batch.- Parameters:
result- The result of the token batch.- Returns:
thisobject.
-
getTokenCount
public long getTokenCount()
Get the number of access tokens processed by the batch.- Returns:
- The number of access tokens processed by the batch.
-
setTokenCount
public TokenBatchStatus setTokenCount(long tokenCount)
Set the number of access tokens processed by the batch.- Parameters:
tokenCount- The number of access tokens processed by the batch.- Returns:
thisobject.
-
getErrorCode
public String getErrorCode()
Get the error code.- Returns:
- The error code.
-
setErrorCode
public TokenBatchStatus setErrorCode(String errorCode)
Set the error code.- Parameters:
errorCode- The error code.- Returns:
thisobject.
-
getErrorDescription
public String getErrorDescription()
Get the error description.- Returns:
- The error description.
-
setErrorDescription
public TokenBatchStatus setErrorDescription(String errorDescription)
Set the error description.- Parameters:
errorDescription- The error description.- Returns:
thisobject.
-
getCreatedAt
public long getCreatedAt()
Get the time when this status was created.- Returns:
- The time at which this status was created. The value is represented as milliseconds since the UNIX epoch (1970-01-01).
-
setCreatedAt
public TokenBatchStatus setCreatedAt(long createdAt)
Set the time when this status was created.- Parameters:
createdAt- The time at which this status was created. The value is represented as milliseconds since the UNIX epoch (1970-01-01).- Returns:
thisobject.
-
getModifiedAt
public long getModifiedAt()
Get the time when this status was last modified.- Returns:
- The time at which this status was last modified. The value is represented as milliseconds since the UNIX epoch (1970-01-01).
-
setModifiedAt
public TokenBatchStatus setModifiedAt(long modifiedAt)
Set the time when this status was last modified.- Parameters:
modifiedAt- The time at which this status was last modified. The value is represented as milliseconds since the UNIX epoch (1970-01-01).- Returns:
thisobject.
-
-