Class AddAttachmentRequest

  • All Implemented Interfaces:
    Serializable

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

      • AddAttachmentRequest

        public AddAttachmentRequest()
    • Method Detail

      • setBaseResourceId

        public void setBaseResourceId​(UUID baseResourceId)
        Sets the ID of the resource which the new attachment should be attached to. This is a convenience method for setting base resource ID.
        Parameters:
        baseResourceId - the ID of the resource which the new attachment should be attached to
      • setBaseResourceType

        public void setBaseResourceType​(ResourceType baseResourceType)
        Sets the type of the resource which the new attachment should be attached to. This is a convenience method for setting base resource type. An attachment can be added on those resource types: User, Community, Domain, Asset, Role, ValidationRule, Workflow.
        Parameters:
        baseResourceType - the type of the resource which the new attachment should be attached to
      • getBaseResource

        @NotNull
        public @NotNull ResourceReference getBaseResource()
        Required. The reference to the resource new attachment should be attached to. An attachment can be added on those resource types: User, Community, Domain, Asset, Role, ValidationRule, Workflow.
      • setBaseResource

        public void setBaseResource​(@NotNull
                                    @NotNull ResourceReference baseResource)
        Required. The reference to the resource new attachment should be attached to. An attachment can be added on those resource types: User, Community, Domain, Asset, Role, ValidationRule, Workflow.
      • 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