Class CpkMetadata.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class CpkMetadata.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for CpkMetadata instances.
-
-
Field Summary
Fields Modifier and Type Field Description public CpkIdentifier
id
public CpkIdentifier.Builder
idBuilder
public CpkManifest
manifest
public CpkManifest.Builder
manifestBuilder
public String
mainBundle
public List<String>
libraries
public CorDappManifest
corDappManifest
public CorDappManifest.Builder
corDappManifestBuilder
public CpkType
type
public SecureHash
hash
public SecureHash.Builder
hashBuilder
public List<ByteBuffer>
corDappCertificates
public Instant
timestamp
public String
externalChannelsConfig
-
Method Summary
Modifier and Type Method Description CpkIdentifier
getId()
Gets the value of the 'id' field. CpkMetadata.Builder
setId(CpkIdentifier value)
Sets the value of the 'id' field. CpkIdentifier.Builder
getIdBuilder()
Gets the Builder instance for the 'id' field and creates one if it doesn't exist yet. CpkMetadata.Builder
setIdBuilder(CpkIdentifier.Builder value)
Sets the Builder instance for the 'id' field CpkManifest
getManifest()
Gets the value of the 'manifest' field. CpkMetadata.Builder
setManifest(CpkManifest value)
Sets the value of the 'manifest' field. CpkManifest.Builder
getManifestBuilder()
Gets the Builder instance for the 'manifest' field and creates one if it doesn't exist yet. CpkMetadata.Builder
setManifestBuilder(CpkManifest.Builder value)
Sets the Builder instance for the 'manifest' field String
getMainBundle()
Gets the value of the 'mainBundle' field. CpkMetadata.Builder
setMainBundle(String value)
Sets the value of the 'mainBundle' field. List<String>
getLibraries()
Gets the value of the 'libraries' field. CpkMetadata.Builder
setLibraries(List<String> value)
Sets the value of the 'libraries' field. CorDappManifest
getCorDappManifest()
Gets the value of the 'corDappManifest' field. CpkMetadata.Builder
setCorDappManifest(CorDappManifest value)
Sets the value of the 'corDappManifest' field. CorDappManifest.Builder
getCorDappManifestBuilder()
Gets the Builder instance for the 'corDappManifest' field and creates one if it doesn't exist yet. CpkMetadata.Builder
setCorDappManifestBuilder(CorDappManifest.Builder value)
Sets the Builder instance for the 'corDappManifest' field CpkType
getType()
Gets the value of the 'type' field. CpkMetadata.Builder
setType(CpkType value)
Sets the value of the 'type' field. SecureHash
getHash()
Gets the value of the 'hash' field. CpkMetadata.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. CpkMetadata.Builder
setHashBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'hash' field List<ByteBuffer>
getCorDappCertificates()
Gets the value of the 'corDappCertificates' field. CpkMetadata.Builder
setCorDappCertificates(List<ByteBuffer> value)
Sets the value of the 'corDappCertificates' field. Instant
getTimestamp()
Gets the value of the 'timestamp' field. CpkMetadata.Builder
setTimestamp(Instant value)
Sets the value of the 'timestamp' field. String
getExternalChannelsConfig()
Gets the value of the 'externalChannelsConfig' field. CpkMetadata.Builder
setExternalChannelsConfig(String value)
Sets the value of the 'externalChannelsConfig' field. boolean
hasId()
Checks whether the 'id' field has been set. boolean
hasIdBuilder()
Checks whether the 'id' field has an active Builder instance CpkMetadata.Builder
clearId()
Clears the value of the 'id' field. boolean
hasManifest()
Checks whether the 'manifest' field has been set. boolean
hasManifestBuilder()
Checks whether the 'manifest' field has an active Builder instance CpkMetadata.Builder
clearManifest()
Clears the value of the 'manifest' field. boolean
hasMainBundle()
Checks whether the 'mainBundle' field has been set. CpkMetadata.Builder
clearMainBundle()
Clears the value of the 'mainBundle' field. boolean
hasLibraries()
Checks whether the 'libraries' field has been set. CpkMetadata.Builder
clearLibraries()
Clears the value of the 'libraries' field. boolean
hasCorDappManifest()
Checks whether the 'corDappManifest' field has been set. boolean
hasCorDappManifestBuilder()
Checks whether the 'corDappManifest' field has an active Builder instance CpkMetadata.Builder
clearCorDappManifest()
Clears the value of the 'corDappManifest' field. boolean
hasType()
Checks whether the 'type' field has been set. CpkMetadata.Builder
clearType()
Clears the value of the 'type' field. boolean
hasHash()
Checks whether the 'hash' field has been set. boolean
hasHashBuilder()
Checks whether the 'hash' field has an active Builder instance CpkMetadata.Builder
clearHash()
Clears the value of the 'hash' field. boolean
hasCorDappCertificates()
Checks whether the 'corDappCertificates' field has been set. CpkMetadata.Builder
clearCorDappCertificates()
Clears the value of the 'corDappCertificates' field. boolean
hasTimestamp()
Checks whether the 'timestamp' field has been set. CpkMetadata.Builder
clearTimestamp()
Clears the value of the 'timestamp' field. boolean
hasExternalChannelsConfig()
Checks whether the 'externalChannelsConfig' field has been set. CpkMetadata.Builder
clearExternalChannelsConfig()
Clears the value of the 'externalChannelsConfig' field. CpkMetadata
build()
-
-
Method Detail
-
getId
CpkIdentifier getId()
Gets the value of the 'id' field.
-
setId
CpkMetadata.Builder setId(CpkIdentifier value)
Sets the value of the 'id' field.
- Parameters:
value
- The value of 'id'.
-
getIdBuilder
CpkIdentifier.Builder getIdBuilder()
Gets the Builder instance for the 'id' field and creates one if it doesn't exist yet.
-
setIdBuilder
CpkMetadata.Builder setIdBuilder(CpkIdentifier.Builder value)
Sets the Builder instance for the 'id' field
- Parameters:
value
- The builder instance that must be set.
-
getManifest
CpkManifest getManifest()
Gets the value of the 'manifest' field.
-
setManifest
CpkMetadata.Builder setManifest(CpkManifest value)
Sets the value of the 'manifest' field.
- Parameters:
value
- The value of 'manifest'.
-
getManifestBuilder
CpkManifest.Builder getManifestBuilder()
Gets the Builder instance for the 'manifest' field and creates one if it doesn't exist yet.
-
setManifestBuilder
CpkMetadata.Builder setManifestBuilder(CpkManifest.Builder value)
Sets the Builder instance for the 'manifest' field
- Parameters:
value
- The builder instance that must be set.
-
getMainBundle
String getMainBundle()
Gets the value of the 'mainBundle' field.
-
setMainBundle
CpkMetadata.Builder setMainBundle(String value)
Sets the value of the 'mainBundle' field.
- Parameters:
value
- The value of 'mainBundle'.
-
getLibraries
List<String> getLibraries()
Gets the value of the 'libraries' field.
-
setLibraries
CpkMetadata.Builder setLibraries(List<String> value)
Sets the value of the 'libraries' field.
- Parameters:
value
- The value of 'libraries'.
-
getCorDappManifest
CorDappManifest getCorDappManifest()
Gets the value of the 'corDappManifest' field.
-
setCorDappManifest
CpkMetadata.Builder setCorDappManifest(CorDappManifest value)
Sets the value of the 'corDappManifest' field.
- Parameters:
value
- The value of 'corDappManifest'.
-
getCorDappManifestBuilder
CorDappManifest.Builder getCorDappManifestBuilder()
Gets the Builder instance for the 'corDappManifest' field and creates one if it doesn't exist yet.
-
setCorDappManifestBuilder
CpkMetadata.Builder setCorDappManifestBuilder(CorDappManifest.Builder value)
Sets the Builder instance for the 'corDappManifest' field
- Parameters:
value
- The builder instance that must be set.
-
setType
CpkMetadata.Builder setType(CpkType value)
Sets the value of the 'type' field.
- Parameters:
value
- The value of 'type'.
-
getHash
SecureHash getHash()
Gets the value of the 'hash' field.
-
setHash
CpkMetadata.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
CpkMetadata.Builder setHashBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'hash' field
- Parameters:
value
- The builder instance that must be set.
-
getCorDappCertificates
List<ByteBuffer> getCorDappCertificates()
Gets the value of the 'corDappCertificates' field.
-
setCorDappCertificates
CpkMetadata.Builder setCorDappCertificates(List<ByteBuffer> value)
Sets the value of the 'corDappCertificates' field.
- Parameters:
value
- The value of 'corDappCertificates'.
-
getTimestamp
Instant getTimestamp()
Gets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the record was updated or added.
-
setTimestamp
CpkMetadata.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'.
-
getExternalChannelsConfig
String getExternalChannelsConfig()
Gets the value of the 'externalChannelsConfig' field.
-
setExternalChannelsConfig
CpkMetadata.Builder setExternalChannelsConfig(String value)
Sets the value of the 'externalChannelsConfig' field.
- Parameters:
value
- The value of 'externalChannelsConfig'.
-
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
CpkMetadata.Builder clearId()
Clears the value of the 'id' field.
-
hasManifest
boolean hasManifest()
Checks whether the 'manifest' field has been set.
-
hasManifestBuilder
boolean hasManifestBuilder()
Checks whether the 'manifest' field has an active Builder instance
-
clearManifest
CpkMetadata.Builder clearManifest()
Clears the value of the 'manifest' field.
-
hasMainBundle
boolean hasMainBundle()
Checks whether the 'mainBundle' field has been set.
-
clearMainBundle
CpkMetadata.Builder clearMainBundle()
Clears the value of the 'mainBundle' field.
-
hasLibraries
boolean hasLibraries()
Checks whether the 'libraries' field has been set.
-
clearLibraries
CpkMetadata.Builder clearLibraries()
Clears the value of the 'libraries' field.
-
hasCorDappManifest
boolean hasCorDappManifest()
Checks whether the 'corDappManifest' field has been set.
-
hasCorDappManifestBuilder
boolean hasCorDappManifestBuilder()
Checks whether the 'corDappManifest' field has an active Builder instance
-
clearCorDappManifest
CpkMetadata.Builder clearCorDappManifest()
Clears the value of the 'corDappManifest' field.
-
hasType
boolean hasType()
Checks whether the 'type' field has been set.
-
clearType
CpkMetadata.Builder clearType()
Clears the value of the 'type' 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
CpkMetadata.Builder clearHash()
Clears the value of the 'hash' field.
-
hasCorDappCertificates
boolean hasCorDappCertificates()
Checks whether the 'corDappCertificates' field has been set.
-
clearCorDappCertificates
CpkMetadata.Builder clearCorDappCertificates()
Clears the value of the 'corDappCertificates' field.
-
hasTimestamp
boolean hasTimestamp()
Checks whether the 'timestamp' field has been set. Time ([Instant]) in milliseconds when the record was updated or added.
-
clearTimestamp
CpkMetadata.Builder clearTimestamp()
Clears the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the record was updated or added.
-
hasExternalChannelsConfig
boolean hasExternalChannelsConfig()
Checks whether the 'externalChannelsConfig' field has been set.
-
clearExternalChannelsConfig
CpkMetadata.Builder clearExternalChannelsConfig()
Clears the value of the 'externalChannelsConfig' field.
-
build
CpkMetadata build()
-
-
-
-