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 class
TokenBatchStatus.BatchKind
Batch Kind.static class
TokenBatchStatus.Result
Batch result.
-
Constructor Summary
Constructors Constructor Description TokenBatchStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenBatchStatus.BatchKind
getBatchKind()
Get the kind of the batch.long
getCreatedAt()
Get the time when this status was created.String
getErrorCode()
Get the error code.String
getErrorDescription()
Get the error description.long
getModifiedAt()
Get the time when this status was last modified.String
getRequestId()
Get the request ID associated with the status.TokenBatchStatus.Result
getResult()
Get the result of the token batch.long
getTokenCount()
Get the number of access tokens processed by the batch.TokenBatchStatus
setBatchKind(TokenBatchStatus.BatchKind batchKind)
Set the kind of the batch.TokenBatchStatus
setCreatedAt(long createdAt)
Set the time when this status was created.TokenBatchStatus
setErrorCode(String errorCode)
Set the error code.TokenBatchStatus
setErrorDescription(String errorDescription)
Set the error description.TokenBatchStatus
setModifiedAt(long modifiedAt)
Set the time when this status was last modified.TokenBatchStatus
setRequestId(String requestId)
Set the request ID associated with the status.TokenBatchStatus
setResult(TokenBatchStatus.Result result)
Set the result of the token batch.TokenBatchStatus
setTokenCount(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:
this
object.
-
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:
this
object.
-
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:
this
object.
-
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:
this
object.
-
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:
this
object.
-
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:
this
object.
-
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:
this
object.
-
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:
this
object.
-
-