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
      • 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
      • 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
      • 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
      • 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