Class CpiMetadata.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class CpiMetadata.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for CpiMetadata instances.
-
-
Field Summary
Fields Modifier and Type Field Description public CpiIdentifier
id
public CpiIdentifier.Builder
idBuilder
public SecureHash
hash
public SecureHash.Builder
hashBuilder
public List<CpkMetadata>
cpks
public String
groupPolicy
public int
version
public Instant
timestamp
-
Method Summary
Modifier and Type Method Description CpiIdentifier
getId()
Gets the value of the 'id' field. CpiMetadata.Builder
setId(CpiIdentifier value)
Sets the value of the 'id' field. CpiIdentifier.Builder
getIdBuilder()
Gets the Builder instance for the 'id' field and creates one if it doesn't exist yet. CpiMetadata.Builder
setIdBuilder(CpiIdentifier.Builder value)
Sets the Builder instance for the 'id' field SecureHash
getHash()
Gets the value of the 'hash' field. CpiMetadata.Builder
setHash(SecureHash value)
Sets the value of the 'hash' field. SecureHash.Builder
getHashBuilder()
Gets the Builder instance for the 'hash' field and creates one if it doesn't exist yet. CpiMetadata.Builder
setHashBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'hash' field List<CpkMetadata>
getCpks()
Gets the value of the 'cpks' field. CpiMetadata.Builder
setCpks(List<CpkMetadata> value)
Sets the value of the 'cpks' field. String
getGroupPolicy()
Gets the value of the 'groupPolicy' field. CpiMetadata.Builder
setGroupPolicy(String value)
Sets the value of the 'groupPolicy' field. int
getVersion()
Gets the value of the 'version' field. CpiMetadata.Builder
setVersion(int value)
Sets the value of the 'version' field. Instant
getTimestamp()
Gets the value of the 'timestamp' field. CpiMetadata.Builder
setTimestamp(Instant value)
Sets the value of the 'timestamp' field. boolean
hasId()
Checks whether the 'id' field has been set. boolean
hasIdBuilder()
Checks whether the 'id' field has an active Builder instance CpiMetadata.Builder
clearId()
Clears the value of the 'id' field. boolean
hasHash()
Checks whether the 'hash' field has been set. boolean
hasHashBuilder()
Checks whether the 'hash' field has an active Builder instance CpiMetadata.Builder
clearHash()
Clears the value of the 'hash' field. boolean
hasCpks()
Checks whether the 'cpks' field has been set. CpiMetadata.Builder
clearCpks()
Clears the value of the 'cpks' field. boolean
hasGroupPolicy()
Checks whether the 'groupPolicy' field has been set. CpiMetadata.Builder
clearGroupPolicy()
Clears the value of the 'groupPolicy' field. boolean
hasVersion()
Checks whether the 'version' field has been set. CpiMetadata.Builder
clearVersion()
Clears the value of the 'version' field. boolean
hasTimestamp()
Checks whether the 'timestamp' field has been set. CpiMetadata.Builder
clearTimestamp()
Clears the value of the 'timestamp' field. CpiMetadata
build()
-
-
Method Detail
-
getId
CpiIdentifier getId()
Gets the value of the 'id' field.
-
setId
CpiMetadata.Builder setId(CpiIdentifier value)
Sets the value of the 'id' field.
- Parameters:
value
- The value of 'id'.
-
getIdBuilder
CpiIdentifier.Builder getIdBuilder()
Gets the Builder instance for the 'id' field and creates one if it doesn't exist yet.
-
setIdBuilder
CpiMetadata.Builder setIdBuilder(CpiIdentifier.Builder value)
Sets the Builder instance for the 'id' field
- Parameters:
value
- The builder instance that must be set.
-
getHash
SecureHash getHash()
Gets the value of the 'hash' field.
-
setHash
CpiMetadata.Builder setHash(SecureHash value)
Sets the value of the 'hash' field.
- Parameters:
value
- The value of 'hash'.
-
getHashBuilder
SecureHash.Builder getHashBuilder()
Gets the Builder instance for the 'hash' field and creates one if it doesn't exist yet.
-
setHashBuilder
CpiMetadata.Builder setHashBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'hash' field
- Parameters:
value
- The builder instance that must be set.
-
getCpks
List<CpkMetadata> getCpks()
Gets the value of the 'cpks' field.
-
setCpks
CpiMetadata.Builder setCpks(List<CpkMetadata> value)
Sets the value of the 'cpks' field.
- Parameters:
value
- The value of 'cpks'.
-
getGroupPolicy
String getGroupPolicy()
Gets the value of the 'groupPolicy' field.
-
setGroupPolicy
CpiMetadata.Builder setGroupPolicy(String value)
Sets the value of the 'groupPolicy' field.
- Parameters:
value
- The value of 'groupPolicy'.
-
getVersion
int getVersion()
Gets the value of the 'version' field.
-
setVersion
CpiMetadata.Builder setVersion(int value)
Sets the value of the 'version' field.
- Parameters:
value
- The value of 'version'.
-
getTimestamp
Instant getTimestamp()
Gets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the record was updated or added.
-
setTimestamp
CpiMetadata.Builder setTimestamp(Instant value)
Sets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the record was updated or added.
- Parameters:
value
- The value of 'timestamp'.
-
hasId
boolean hasId()
Checks whether the 'id' field has been set.
-
hasIdBuilder
boolean hasIdBuilder()
Checks whether the 'id' field has an active Builder instance
-
clearId
CpiMetadata.Builder clearId()
Clears the value of the 'id' field.
-
hasHash
boolean hasHash()
Checks whether the 'hash' field has been set.
-
hasHashBuilder
boolean hasHashBuilder()
Checks whether the 'hash' field has an active Builder instance
-
clearHash
CpiMetadata.Builder clearHash()
Clears the value of the 'hash' field.
-
hasCpks
boolean hasCpks()
Checks whether the 'cpks' field has been set.
-
clearCpks
CpiMetadata.Builder clearCpks()
Clears the value of the 'cpks' field.
-
hasGroupPolicy
boolean hasGroupPolicy()
Checks whether the 'groupPolicy' field has been set.
-
clearGroupPolicy
CpiMetadata.Builder clearGroupPolicy()
Clears the value of the 'groupPolicy' field.
-
hasVersion
boolean hasVersion()
Checks whether the 'version' field has been set.
-
clearVersion
CpiMetadata.Builder clearVersion()
Clears the value of the 'version' field.
-
hasTimestamp
boolean hasTimestamp()
Checks whether the 'timestamp' field has been set. Time ([Instant]) in milliseconds when the record was updated or added.
-
clearTimestamp
CpiMetadata.Builder clearTimestamp()
Clears the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the record was updated or added.
-
build
CpiMetadata build()
-
-
-
-