Class ContractSchema.Builder

  • Enclosing class:
    ContractSchema

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

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

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

      • build

        public ContractSchema build()
        Builds a ContractSchema.
        Returns:
        the new ContractSchema instance
      • addAuthoritativeDefinitions

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

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

        public ContractSchema.Builder addCustomProperties​(ContractTemplateCustomProperty customProperties)
        Adds a new element to customProperties.
        Parameters:
        customProperties - the new element to be added
        Returns:
        the ContractSchema builder
      • addXProperties

        public ContractSchema.Builder addXProperties​(ContractSchemaProperty xProperties)
        Adds a new element to xProperties.
        Parameters:
        xProperties - the new element to be added
        Returns:
        the ContractSchema builder
      • addQuality

        public ContractSchema.Builder addQuality​(ContractQualityRule quality)
        Adds a new element to quality.
        Parameters:
        quality - the new element to be added
        Returns:
        the ContractSchema builder
      • addRelationships

        public ContractSchema.Builder addRelationships​(ContractSchemaRelationship relationships)
        Adds a new element to relationships.
        Parameters:
        relationships - the new element to be added
        Returns:
        the ContractSchema builder
      • id

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

        public ContractSchema.Builder assetId​(java.lang.String assetId)
        Set the assetId.
        Parameters:
        assetId - the assetId
        Returns:
        the ContractSchema builder
      • connectionId

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

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

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

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

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

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

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

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

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

        public ContractSchema.Builder dataGranularityDescription​(java.lang.String dataGranularityDescription)
        Set the dataGranularityDescription.
        Parameters:
        dataGranularityDescription - the dataGranularityDescription
        Returns:
        the ContractSchema builder
      • physicalSchema

        public ContractSchema.Builder physicalSchema​(java.lang.String physicalSchema)
        Set the physicalSchema.
        Parameters:
        physicalSchema - the physicalSchema
        Returns:
        the ContractSchema builder
      • server

        public ContractSchema.Builder server​(java.lang.String server)
        Set the server.
        Parameters:
        server - the server
        Returns:
        the ContractSchema builder
      • authoritativeDefinitions

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

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

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

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

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

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