Class InvitationData


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class InvitationData
    extends Object
    InvitationData
    • Constructor Detail

      • InvitationData

        public InvitationData()
    • Method Detail

      • getAppUrl

        @Nonnull
        @NotNull
        public @NotNull String getAppUrl()
        The url of the app that the user will be directed to in order to set their password. Usually admin.trieve.ai, but may differ for local dev or self-hosted setups.
        Returns:
        appUrl
      • setAppUrl

        public void setAppUrl​(String appUrl)
      • getEmail

        @Nonnull
        @NotNull
        public @NotNull String getEmail()
        The email of the user to invite. Must be a valid email as they will be sent an email to register.
        Returns:
        email
      • setEmail

        public void setEmail​(String email)
      • getOrganizationId

        @Nonnull
        @NotNull
        @Valid
        public @NotNull @Valid UUID getOrganizationId()
        The id of the organization to invite the user to.
        Returns:
        organizationId
      • setOrganizationId

        public void setOrganizationId​(UUID organizationId)
      • getRedirectUri

        @Nonnull
        @NotNull
        public @NotNull String getRedirectUri()
        The url that the user will be redirected to after setting their password.
        Returns:
        redirectUri
      • setRedirectUri

        public void setRedirectUri​(String redirectUri)
      • getUserRole

        @Nonnull
        @NotNull
        public @NotNull Integer getUserRole()
        The role the user will have in the organization. 0 = User, 1 = Admin, 2 = Owner.
        Returns:
        userRole
      • setUserRole

        public void setUserRole​(Integer userRole)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to InvitationData
      • fromJson

        public static InvitationData fromJson​(String jsonString)
                                       throws IOException
        Create an instance of InvitationData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of InvitationData
        Throws:
        IOException - if the JSON string is invalid with respect to InvitationData
      • toJson

        public String toJson()
        Convert an instance of InvitationData to an JSON string
        Returns:
        JSON string