Class TokenPoolCacheState.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class TokenPoolCacheState.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for TokenPoolCacheState instances.
-
-
Field Summary
Fields Modifier and Type Field Description public TokenPoolCacheKey
poolKey
public TokenPoolCacheKey.Builder
poolKeyBuilder
public List<TokenClaim>
tokenClaims
public List<Token>
availableTokens
-
Method Summary
Modifier and Type Method Description TokenPoolCacheKey
getPoolKey()
Gets the value of the 'poolKey' field. TokenPoolCacheState.Builder
setPoolKey(TokenPoolCacheKey value)
Sets the value of the 'poolKey' field. TokenPoolCacheKey.Builder
getPoolKeyBuilder()
Gets the Builder instance for the 'poolKey' field and creates one if it doesn't exist yet. TokenPoolCacheState.Builder
setPoolKeyBuilder(TokenPoolCacheKey.Builder value)
Sets the Builder instance for the 'poolKey' field The key of the cache pool the state is for List<TokenClaim>
getTokenClaims()
Gets the value of the 'tokenClaims' field. TokenPoolCacheState.Builder
setTokenClaims(List<TokenClaim> value)
Sets the value of the 'tokenClaims' field. List<Token>
getAvailableTokens()
Gets the value of the 'availableTokens' field. TokenPoolCacheState.Builder
setAvailableTokens(List<Token> value)
Sets the value of the 'availableTokens' field. boolean
hasPoolKey()
Checks whether the 'poolKey' field has been set. boolean
hasPoolKeyBuilder()
Checks whether the 'poolKey' field has an active Builder instance The key of the cache pool the state is for TokenPoolCacheState.Builder
clearPoolKey()
Clears the value of the 'poolKey' field. boolean
hasTokenClaims()
Checks whether the 'tokenClaims' field has been set. TokenPoolCacheState.Builder
clearTokenClaims()
Clears the value of the 'tokenClaims' field. boolean
hasAvailableTokens()
Checks whether the 'availableTokens' field has been set. TokenPoolCacheState.Builder
clearAvailableTokens()
Clears the value of the 'availableTokens' field. TokenPoolCacheState
build()
-
-
Method Detail
-
getPoolKey
TokenPoolCacheKey getPoolKey()
Gets the value of the 'poolKey' field. The key of the cache pool the state is for
-
setPoolKey
TokenPoolCacheState.Builder setPoolKey(TokenPoolCacheKey value)
Sets the value of the 'poolKey' field. The key of the cache pool the state is for
- Parameters:
value
- The value of 'poolKey'.
-
getPoolKeyBuilder
TokenPoolCacheKey.Builder getPoolKeyBuilder()
Gets the Builder instance for the 'poolKey' field and creates one if it doesn't exist yet. The key of the cache pool the state is for
-
setPoolKeyBuilder
TokenPoolCacheState.Builder setPoolKeyBuilder(TokenPoolCacheKey.Builder value)
Sets the Builder instance for the 'poolKey' field The key of the cache pool the state is for
- Parameters:
value
- The builder instance that must be set.
-
getTokenClaims
List<TokenClaim> getTokenClaims()
Gets the value of the 'tokenClaims' field. List of active token claims for the cache pool
-
setTokenClaims
TokenPoolCacheState.Builder setTokenClaims(List<TokenClaim> value)
Sets the value of the 'tokenClaims' field. List of active token claims for the cache pool
- Parameters:
value
- The value of 'tokenClaims'.
-
getAvailableTokens
List<Token> getAvailableTokens()
Gets the value of the 'availableTokens' field.
-
setAvailableTokens
TokenPoolCacheState.Builder setAvailableTokens(List<Token> value)
Sets the value of the 'availableTokens' field.
- Parameters:
value
- The value of 'availableTokens'.
-
hasPoolKey
boolean hasPoolKey()
Checks whether the 'poolKey' field has been set. The key of the cache pool the state is for
-
hasPoolKeyBuilder
boolean hasPoolKeyBuilder()
Checks whether the 'poolKey' field has an active Builder instance The key of the cache pool the state is for
-
clearPoolKey
TokenPoolCacheState.Builder clearPoolKey()
Clears the value of the 'poolKey' field. The key of the cache pool the state is for
-
hasTokenClaims
boolean hasTokenClaims()
Checks whether the 'tokenClaims' field has been set. List of active token claims for the cache pool
-
clearTokenClaims
TokenPoolCacheState.Builder clearTokenClaims()
Clears the value of the 'tokenClaims' field. List of active token claims for the cache pool
-
hasAvailableTokens
boolean hasAvailableTokens()
Checks whether the 'availableTokens' field has been set.
-
clearAvailableTokens
TokenPoolCacheState.Builder clearAvailableTokens()
Clears the value of the 'availableTokens' field.
-
build
TokenPoolCacheState build()
-
-
-
-