Class PreAuthToken.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class PreAuthToken.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for PreAuthToken instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
id
public String
ownerX500Name
public Instant
ttl
public PreAuthTokenStatus
status
public String
creationRemark
public String
removalRemark
-
Method Summary
Modifier and Type Method Description String
getId()
Gets the value of the 'id' field. PreAuthToken.Builder
setId(String value)
Sets the value of the 'id' field. String
getOwnerX500Name()
Gets the value of the 'ownerX500Name' field. PreAuthToken.Builder
setOwnerX500Name(String value)
Sets the value of the 'ownerX500Name' field. Instant
getTtl()
Gets the value of the 'ttl' field. PreAuthToken.Builder
setTtl(Instant value)
Sets the value of the 'ttl' field. PreAuthTokenStatus
getStatus()
Gets the value of the 'status' field. PreAuthToken.Builder
setStatus(PreAuthTokenStatus value)
Sets the value of the 'status' field. String
getCreationRemark()
Gets the value of the 'creationRemark' field. PreAuthToken.Builder
setCreationRemark(String value)
Sets the value of the 'creationRemark' field. String
getRemovalRemark()
Gets the value of the 'removalRemark' field. PreAuthToken.Builder
setRemovalRemark(String value)
Sets the value of the 'removalRemark' field. boolean
hasId()
Checks whether the 'id' field has been set. PreAuthToken.Builder
clearId()
Clears the value of the 'id' field. boolean
hasOwnerX500Name()
Checks whether the 'ownerX500Name' field has been set. PreAuthToken.Builder
clearOwnerX500Name()
Clears the value of the 'ownerX500Name' field. boolean
hasTtl()
Checks whether the 'ttl' field has been set. PreAuthToken.Builder
clearTtl()
Clears the value of the 'ttl' field. boolean
hasStatus()
Checks whether the 'status' field has been set. PreAuthToken.Builder
clearStatus()
Clears the value of the 'status' field. boolean
hasCreationRemark()
Checks whether the 'creationRemark' field has been set. PreAuthToken.Builder
clearCreationRemark()
Clears the value of the 'creationRemark' field. boolean
hasRemovalRemark()
Checks whether the 'removalRemark' field has been set. PreAuthToken.Builder
clearRemovalRemark()
Clears the value of the 'removalRemark' field. PreAuthToken
build()
-
-
Method Detail
-
setId
PreAuthToken.Builder setId(String value)
Sets the value of the 'id' field. A unique identifier of the token.
- Parameters:
value
- The value of 'id'.
-
getOwnerX500Name
String getOwnerX500Name()
Gets the value of the 'ownerX500Name' field. The X500 name of the holding identity that the token belongs to.
-
setOwnerX500Name
PreAuthToken.Builder setOwnerX500Name(String value)
Sets the value of the 'ownerX500Name' field. The X500 name of the holding identity that the token belongs to.
- Parameters:
value
- The value of 'ownerX500Name'.
-
getTtl
Instant getTtl()
Gets the value of the 'ttl' field. Unix timestamp for when the pre auth token expires. In milliseconds since the epoch.
-
setTtl
PreAuthToken.Builder setTtl(Instant value)
Sets the value of the 'ttl' field. Unix timestamp for when the pre auth token expires. In milliseconds since the epoch.
- Parameters:
value
- The value of 'ttl'.
-
getStatus
PreAuthTokenStatus getStatus()
Gets the value of the 'status' field. The current status of the token.
-
setStatus
PreAuthToken.Builder setStatus(PreAuthTokenStatus value)
Sets the value of the 'status' field. The current status of the token.
- Parameters:
value
- The value of 'status'.
-
getCreationRemark
String getCreationRemark()
Gets the value of the 'creationRemark' field. An optional remark added when the token was created.
-
setCreationRemark
PreAuthToken.Builder setCreationRemark(String value)
Sets the value of the 'creationRemark' field. An optional remark added when the token was created.
- Parameters:
value
- The value of 'creationRemark'.
-
getRemovalRemark
String getRemovalRemark()
Gets the value of the 'removalRemark' field. An optional remark added when the token is consumed, revoked or auto invalidated.
-
setRemovalRemark
PreAuthToken.Builder setRemovalRemark(String value)
Sets the value of the 'removalRemark' field. An optional remark added when the token is consumed, revoked or auto invalidated.
- Parameters:
value
- The value of 'removalRemark'.
-
hasId
boolean hasId()
Checks whether the 'id' field has been set. A unique identifier of the token.
-
clearId
PreAuthToken.Builder clearId()
Clears the value of the 'id' field. A unique identifier of the token.
-
hasOwnerX500Name
boolean hasOwnerX500Name()
Checks whether the 'ownerX500Name' field has been set. The X500 name of the holding identity that the token belongs to.
-
clearOwnerX500Name
PreAuthToken.Builder clearOwnerX500Name()
Clears the value of the 'ownerX500Name' field. The X500 name of the holding identity that the token belongs to.
-
hasTtl
boolean hasTtl()
Checks whether the 'ttl' field has been set. Unix timestamp for when the pre auth token expires. In milliseconds since the epoch.
-
clearTtl
PreAuthToken.Builder clearTtl()
Clears the value of the 'ttl' field. Unix timestamp for when the pre auth token expires. In milliseconds since the epoch.
-
hasStatus
boolean hasStatus()
Checks whether the 'status' field has been set. The current status of the token.
-
clearStatus
PreAuthToken.Builder clearStatus()
Clears the value of the 'status' field. The current status of the token.
-
hasCreationRemark
boolean hasCreationRemark()
Checks whether the 'creationRemark' field has been set. An optional remark added when the token was created.
-
clearCreationRemark
PreAuthToken.Builder clearCreationRemark()
Clears the value of the 'creationRemark' field. An optional remark added when the token was created.
-
hasRemovalRemark
boolean hasRemovalRemark()
Checks whether the 'removalRemark' field has been set. An optional remark added when the token is consumed, revoked or auto invalidated.
-
clearRemovalRemark
PreAuthToken.Builder clearRemovalRemark()
Clears the value of the 'removalRemark' field. An optional remark added when the token is consumed, revoked or auto invalidated.
-
build
PreAuthToken build()
-
-
-
-