Package net.corda.data.packaging
Class CpkManifest.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class CpkManifest.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for CpkManifest instances.
-
-
Field Summary
Fields Modifier and Type Field Description public CpkFormatVersion
version
public CpkFormatVersion.Builder
versionBuilder
-
Method Summary
Modifier and Type Method Description CpkFormatVersion
getVersion()
Gets the value of the 'version' field. CpkManifest.Builder
setVersion(CpkFormatVersion value)
Sets the value of the 'version' field. CpkFormatVersion.Builder
getVersionBuilder()
Gets the Builder instance for the 'version' field and creates one if it doesn't exist yet. CpkManifest.Builder
setVersionBuilder(CpkFormatVersion.Builder value)
Sets the Builder instance for the 'version' field boolean
hasVersion()
Checks whether the 'version' field has been set. boolean
hasVersionBuilder()
Checks whether the 'version' field has an active Builder instance CpkManifest.Builder
clearVersion()
Clears the value of the 'version' field. CpkManifest
build()
-
-
Method Detail
-
getVersion
CpkFormatVersion getVersion()
Gets the value of the 'version' field.
-
setVersion
CpkManifest.Builder setVersion(CpkFormatVersion value)
Sets the value of the 'version' field.
- Parameters:
value
- The value of 'version'.
-
getVersionBuilder
CpkFormatVersion.Builder getVersionBuilder()
Gets the Builder instance for the 'version' field and creates one if it doesn't exist yet.
-
setVersionBuilder
CpkManifest.Builder setVersionBuilder(CpkFormatVersion.Builder value)
Sets the Builder instance for the 'version' field
- Parameters:
value
- The builder instance that must be set.
-
hasVersion
boolean hasVersion()
Checks whether the 'version' field has been set.
-
hasVersionBuilder
boolean hasVersionBuilder()
Checks whether the 'version' field has an active Builder instance
-
clearVersion
CpkManifest.Builder clearVersion()
Clears the value of the 'version' field.
-
build
CpkManifest build()
-
-
-
-