Package org.openapitools.client.model
Class InvitationData
- java.lang.Object
-
- org.openapitools.client.model.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvitationData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_APP_URLstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_ORGANIZATION_IDstatic StringSERIALIZED_NAME_REDIRECT_URIstatic StringSERIALIZED_NAME_USER_ROLE
-
Constructor Summary
Constructors Constructor Description InvitationData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InvitationDataappUrl(String appUrl)InvitationDataemail(String email)booleanequals(Object o)static InvitationDatafromJson(String jsonString)Create an instance of InvitationData given an JSON string@NotNull StringgetAppUrl()The url of the app that the user will be directed to in order to set their password.@NotNull StringgetEmail()The email of the user to invite.@NotNull @Valid UUIDgetOrganizationId()The id of the organization to invite the user to.@NotNull StringgetRedirectUri()The url that the user will be redirected to after setting their password.@NotNull IntegergetUserRole()The role the user will have in the organization.inthashCode()InvitationDataorganizationId(UUID organizationId)InvitationDataredirectUri(String redirectUri)voidsetAppUrl(String appUrl)voidsetEmail(String email)voidsetOrganizationId(UUID organizationId)voidsetRedirectUri(String redirectUri)voidsetUserRole(Integer userRole)StringtoJson()Convert an instance of InvitationData to an JSON stringStringtoString()InvitationDatauserRole(Integer userRole)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_APP_URL
public static final String SERIALIZED_NAME_APP_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORGANIZATION_ID
public static final String SERIALIZED_NAME_ORGANIZATION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REDIRECT_URI
public static final String SERIALIZED_NAME_REDIRECT_URI
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER_ROLE
public static final String SERIALIZED_NAME_USER_ROLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
appUrl
public InvitationData appUrl(String appUrl)
-
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)
-
email
public InvitationData email(String email)
-
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:
-
setEmail
public void setEmail(String email)
-
organizationId
public InvitationData organizationId(UUID organizationId)
-
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)
-
redirectUri
public InvitationData redirectUri(String redirectUri)
-
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)
-
userRole
public InvitationData userRole(Integer userRole)
-
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)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-