Class ContractSchemaRelationship.Builder

  • Enclosing class:
    ContractSchemaRelationship

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

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public ContractSchemaRelationship build()
        Builds a ContractSchemaRelationship.
        Returns:
        the new ContractSchemaRelationship instance
      • addFrom

        public ContractSchemaRelationship.Builder addFrom​(java.lang.String from)
        Adds a new element to from.
        Parameters:
        from - the new element to be added
        Returns:
        the ContractSchemaRelationship builder
      • addTo

        public ContractSchemaRelationship.Builder addTo​(java.lang.String to)
        Adds a new element to to.
        Parameters:
        to - the new element to be added
        Returns:
        the ContractSchemaRelationship builder
      • type

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

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

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