Class DataContractProperties

    • Constructor Detail

      • DataContractProperties

        public DataContractProperties()
    • Method Detail

      • get__type

        @NotNull
        public @NotNull java.lang.String get__type()
        Name of this subclass in SimpleClassName format
        Returns:
        __type
      • getEntity

        @NotNull
        public @NotNull java.lang.String getEntity()
        The entity that this contract is associated with. Currently, we only support Dataset contracts, but in the future we may also support Data Product level contracts.
        Returns:
        entity
      • setEntity

        public void setEntity​(java.lang.String entity)
      • getSchema

        @Valid
        public @Valid java.util.List<SchemaContract> getSchema()
        An optional set of schema contracts. If this is a dataset contract, there will only be one.
        Returns:
        schema
      • setSchema

        public void setSchema​(java.util.List<SchemaContract> schema)
      • getFreshness

        @Valid
        public @Valid java.util.List<FreshnessContract> getFreshness()
        An optional set of FRESHNESS contracts. If this is a dataset contract, there will only be one.
        Returns:
        freshness
      • setFreshness

        public void setFreshness​(java.util.List<FreshnessContract> freshness)
      • getDataQuality

        @Valid
        public @Valid java.util.List<DataQualityContract> getDataQuality()
        An optional set of Data Quality contracts, e.g. table and column level contract constraints.
        Returns:
        dataQuality
      • setDataQuality

        public void setDataQuality​(java.util.List<DataQualityContract> dataQuality)
      • getRawContract

        public java.lang.String getRawContract()
        YAML-formatted contract definition
        Returns:
        rawContract
      • setRawContract

        public void setRawContract​(java.lang.String rawContract)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object