Class AddComplexRelationRequest

  • All Implemented Interfaces:
    Serializable

    public class AddComplexRelationRequest
    extends Object
    implements Serializable
    The properties of the complex relation to be added.
    See Also:
    Serialized Form
    • Constructor Detail

      • AddComplexRelationRequest

        public AddComplexRelationRequest()
    • Method Detail

      • setAttributes

        public void setAttributes​(Map<UUID,​List<AttributeValue>> attributes)
        Sets the attributes that the new complex relation should contain.
        Parameters:
        attributes - the attributes that the new complex relation should contain
      • setAttributes

        @Deprecated
        public void setAttributes​(List<ComplexRelationAttributeRequest> attributeRequests)
        Deprecated.
        This method will be removed in the future. Please, use setAttributes(Map).
        Sets the list of attributes that the new complex relation should contain.
        Parameters:
        attributeRequests - the attributes that the new complex relation should contain
      • getId

        public UUID getId()
        The ID of the new complex relation.
      • getComplexRelationTypeId

        @NotNull
        public @NotNull UUID getComplexRelationTypeId()
        Required. The ID of the type of the complex relation.
      • getAttributes

        public Map<UUID,​List<AttributeValue>> getAttributes()
        The attributes that the new complex relation should contain.
      • setId

        public void setId​(UUID id)
        The ID of the new complex relation.
      • setComplexRelationTypeId

        public void setComplexRelationTypeId​(@NotNull
                                             @NotNull UUID complexRelationTypeId)
        Required. The ID of the type of the complex relation.
      • setLegs

        public void setLegs​(List<ComplexRelationLegRequest> legs)
        The list of legs that the new complex relation should contain.
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Object
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

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

        public String toString()
        Overrides:
        toString in class Object