Class AddComplexRelationRequest.Builder

    • Method Detail

      • setRelation

        public AddComplexRelationRequest.Builder setRelation​(UUID relationTypeId,
                                                             RelationTypeIdWithDirection.Direction direction,
                                                             UUID... assetIds)
        Sets relation(s) with type identified by given ID and provided direction towards related asset(s).
        Parameters:
        relationTypeId - the ID of the relation type
        direction - the direction of the relation(s)
        assetIds - the id(s) of the related asset(s)
      • attributes

        public AddComplexRelationRequest.Builder attributes​(Map<UUID,​List<AttributeValue>> attributes)
        Sets the map of attributes that the complex relation should contain.
        Parameters:
        attributes - the map of attributes that the complex relation should contain
      • setAttribute

        public AddComplexRelationRequest.Builder setAttribute​(UUID attributeTypeId,
                                                              String... values)
        Sets attribute(s) with type identified by given ID or name and provided value(s).
        Parameters:
        attributeTypeId - the attribute type ID
        values - value(s) that should be set for attribute type. Note that this method should be used with attributes that hold single value each
      • setAttribute

        public AddComplexRelationRequest.Builder setAttribute​(UUID attributeTypeId,
                                                              List<String>... values)
        Sets attribute(s) with type identified by given ID or name and provided value(s).
        Parameters:
        attributeTypeId - the attribute type ID
        values - value(s) that should be set for attribute type. Note that this method should be used with attributes that hold multiple values each
      • complexRelationTypeId

        public AddComplexRelationRequest.Builder complexRelationTypeId​(@NotNull
                                                                       @NotNull UUID complexRelationTypeId)
        Required. The ID of the type of the complex relation.
        Returns:
        this.
      • toString

        public String toString()
        Overrides:
        toString in class Object