Class ContractSchemaProperty.Builder

  • Enclosing class:
    ContractSchemaProperty

    public static class ContractSchemaProperty.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String name)
        Instantiates a new builder with required properties.
        Parameters:
        name - the name
    • Method Detail

      • build

        public ContractSchemaProperty build()
        Builds a ContractSchemaProperty.
        Returns:
        the new ContractSchemaProperty instance
      • addTags

        public ContractSchemaProperty.Builder addTags​(java.lang.String tags)
        Adds a new element to tags.
        Parameters:
        tags - the new element to be added
        Returns:
        the ContractSchemaProperty builder
      • addExamples

        public ContractSchemaProperty.Builder addExamples​(java.lang.String examples)
        Adds a new element to examples.
        Parameters:
        examples - the new element to be added
        Returns:
        the ContractSchemaProperty builder
      • addTransformSourceObjects

        public ContractSchemaProperty.Builder addTransformSourceObjects​(java.lang.String transformSourceObjects)
        Adds a new element to transformSourceObjects.
        Parameters:
        transformSourceObjects - the new element to be added
        Returns:
        the ContractSchemaProperty builder
      • addAuthoritativeDefinitions

        public ContractSchemaProperty.Builder addAuthoritativeDefinitions​(ContractAuthoritativeDefinition authoritativeDefinitions)
        Adds a new element to authoritativeDefinitions.
        Parameters:
        authoritativeDefinitions - the new element to be added
        Returns:
        the ContractSchemaProperty builder
      • id

        public ContractSchemaProperty.Builder id​(java.lang.String id)
        Set the id.
        Parameters:
        id - the id
        Returns:
        the ContractSchemaProperty builder
      • name

        public ContractSchemaProperty.Builder name​(java.lang.String name)
        Set the name.
        Parameters:
        name - the name
        Returns:
        the ContractSchemaProperty builder
      • primaryKey

        public ContractSchemaProperty.Builder primaryKey​(java.lang.Boolean primaryKey)
        Set the primaryKey.
        Parameters:
        primaryKey - the primaryKey
        Returns:
        the ContractSchemaProperty builder
      • primaryKeyPosition

        public ContractSchemaProperty.Builder primaryKeyPosition​(long primaryKeyPosition)
        Set the primaryKeyPosition.
        Parameters:
        primaryKeyPosition - the primaryKeyPosition
        Returns:
        the ContractSchemaProperty builder
      • logicalType

        public ContractSchemaProperty.Builder logicalType​(java.lang.String logicalType)
        Set the logicalType.
        Parameters:
        logicalType - the logicalType
        Returns:
        the ContractSchemaProperty builder
      • physicalType

        public ContractSchemaProperty.Builder physicalType​(java.lang.String physicalType)
        Set the physicalType.
        Parameters:
        physicalType - the physicalType
        Returns:
        the ContractSchemaProperty builder
      • required

        public ContractSchemaProperty.Builder required​(java.lang.Boolean required)
        Set the required.
        Parameters:
        required - the required
        Returns:
        the ContractSchemaProperty builder
      • unique

        public ContractSchemaProperty.Builder unique​(java.lang.Boolean unique)
        Set the unique.
        Parameters:
        unique - the unique
        Returns:
        the ContractSchemaProperty builder
      • description

        public ContractSchemaProperty.Builder description​(java.lang.String description)
        Set the description.
        Parameters:
        description - the description
        Returns:
        the ContractSchemaProperty builder
      • businessName

        public ContractSchemaProperty.Builder businessName​(java.lang.String businessName)
        Set the businessName.
        Parameters:
        businessName - the businessName
        Returns:
        the ContractSchemaProperty builder
      • tags

        public ContractSchemaProperty.Builder tags​(java.util.List<java.lang.String> tags)
        Set the tags. Existing tags will be replaced.
        Parameters:
        tags - the tags
        Returns:
        the ContractSchemaProperty builder
      • examples

        public ContractSchemaProperty.Builder examples​(java.util.List<java.lang.String> examples)
        Set the examples. Existing examples will be replaced.
        Parameters:
        examples - the examples
        Returns:
        the ContractSchemaProperty builder
      • partitioned

        public ContractSchemaProperty.Builder partitioned​(java.lang.Boolean partitioned)
        Set the partitioned.
        Parameters:
        partitioned - the partitioned
        Returns:
        the ContractSchemaProperty builder
      • partitionKeyPosition

        public ContractSchemaProperty.Builder partitionKeyPosition​(long partitionKeyPosition)
        Set the partitionKeyPosition.
        Parameters:
        partitionKeyPosition - the partitionKeyPosition
        Returns:
        the ContractSchemaProperty builder
      • classification

        public ContractSchemaProperty.Builder classification​(java.lang.String classification)
        Set the classification.
        Parameters:
        classification - the classification
        Returns:
        the ContractSchemaProperty builder
      • physicalName

        public ContractSchemaProperty.Builder physicalName​(java.lang.String physicalName)
        Set the physicalName.
        Parameters:
        physicalName - the physicalName
        Returns:
        the ContractSchemaProperty builder
      • encryptedName

        public ContractSchemaProperty.Builder encryptedName​(java.lang.String encryptedName)
        Set the encryptedName.
        Parameters:
        encryptedName - the encryptedName
        Returns:
        the ContractSchemaProperty builder
      • transformSourceObjects

        public ContractSchemaProperty.Builder transformSourceObjects​(java.util.List<java.lang.String> transformSourceObjects)
        Set the transformSourceObjects. Existing transformSourceObjects will be replaced.
        Parameters:
        transformSourceObjects - the transformSourceObjects
        Returns:
        the ContractSchemaProperty builder
      • transformLogic

        public ContractSchemaProperty.Builder transformLogic​(java.lang.String transformLogic)
        Set the transformLogic.
        Parameters:
        transformLogic - the transformLogic
        Returns:
        the ContractSchemaProperty builder
      • transformDescription

        public ContractSchemaProperty.Builder transformDescription​(java.lang.String transformDescription)
        Set the transformDescription.
        Parameters:
        transformDescription - the transformDescription
        Returns:
        the ContractSchemaProperty builder
      • criticalDataElement

        public ContractSchemaProperty.Builder criticalDataElement​(java.lang.Boolean criticalDataElement)
        Set the criticalDataElement.
        Parameters:
        criticalDataElement - the criticalDataElement
        Returns:
        the ContractSchemaProperty builder
      • authoritativeDefinitions

        public ContractSchemaProperty.Builder authoritativeDefinitions​(java.util.List<ContractAuthoritativeDefinition> authoritativeDefinitions)
        Set the authoritativeDefinitions. Existing authoritativeDefinitions will be replaced.
        Parameters:
        authoritativeDefinitions - the authoritativeDefinitions
        Returns:
        the ContractSchemaProperty builder
      • customProperties

        public ContractSchemaProperty.Builder customProperties​(java.util.List<ContractTemplateCustomProperty> customProperties)
        Set the customProperties. Existing customProperties will be replaced.
        Parameters:
        customProperties - the customProperties
        Returns:
        the ContractSchemaProperty builder
      • relationships

        public ContractSchemaProperty.Builder relationships​(java.util.List<ContractSchemaRelationship> relationships)
        Set the relationships. Existing relationships will be replaced.
        Parameters:
        relationships - the relationships
        Returns:
        the ContractSchemaProperty builder