Class InvitationModel
- java.lang.Object
-
- com.configcat.publicapi.java.client.model.InvitationModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-20T16:55:24.304297906Z[Etc/UTC]", comments="Generator version: 7.7.0") public class InvitationModel extends java.lang.ObjectInvitationModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvitationModel.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_CREATED_ATstatic java.lang.StringSERIALIZED_NAME_EMAILstatic java.lang.StringSERIALIZED_NAME_EXPIREDstatic java.lang.StringSERIALIZED_NAME_INVITATION_IDstatic java.lang.StringSERIALIZED_NAME_PERMISSION_GROUP_ID
-
Constructor Summary
Constructors Constructor Description InvitationModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InvitationModelcreatedAt(java.time.OffsetDateTime createdAt)InvitationModelemail(java.lang.String email)booleanequals(java.lang.Object o)InvitationModelexpired(java.lang.Boolean expired)static InvitationModelfromJson(java.lang.String jsonString)Create an instance of InvitationModel given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.time.OffsetDateTimegetCreatedAt()Creation time of the Invitation.java.lang.StringgetEmail()The invited user's email address.java.lang.BooleangetExpired()Determines whether the Invitation is expired.java.util.UUIDgetInvitationId()The identifier of the Invitation.java.lang.LonggetPermissionGroupId()The identifier of the Permission Group the user was invited to.inthashCode()InvitationModelinvitationId(java.util.UUID invitationId)InvitationModelpermissionGroupId(java.lang.Long permissionGroupId)InvitationModelputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.voidsetCreatedAt(java.time.OffsetDateTime createdAt)voidsetEmail(java.lang.String email)voidsetExpired(java.lang.Boolean expired)voidsetInvitationId(java.util.UUID invitationId)voidsetPermissionGroupId(java.lang.Long permissionGroupId)java.lang.StringtoJson()Convert an instance of InvitationModel to an JSON stringjava.lang.StringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_INVITATION_ID
public static final java.lang.String SERIALIZED_NAME_INVITATION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMAIL
public static final java.lang.String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PERMISSION_GROUP_ID
public static final java.lang.String SERIALIZED_NAME_PERMISSION_GROUP_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final java.lang.String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRED
public static final java.lang.String SERIALIZED_NAME_EXPIRED
- See Also:
- Constant Field Values
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
invitationId
public InvitationModel invitationId(java.util.UUID invitationId)
-
getInvitationId
@Nullable public java.util.UUID getInvitationId()
The identifier of the Invitation.- Returns:
- invitationId
-
setInvitationId
public void setInvitationId(java.util.UUID invitationId)
-
email
public InvitationModel email(java.lang.String email)
-
getEmail
@Nullable public java.lang.String getEmail()
The invited user's email address.- Returns:
-
setEmail
public void setEmail(java.lang.String email)
-
permissionGroupId
public InvitationModel permissionGroupId(java.lang.Long permissionGroupId)
-
getPermissionGroupId
@Nullable public java.lang.Long getPermissionGroupId()
The identifier of the Permission Group the user was invited to.- Returns:
- permissionGroupId
-
setPermissionGroupId
public void setPermissionGroupId(java.lang.Long permissionGroupId)
-
createdAt
public InvitationModel createdAt(java.time.OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public java.time.OffsetDateTime getCreatedAt()
Creation time of the Invitation.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(java.time.OffsetDateTime createdAt)
-
expired
public InvitationModel expired(java.lang.Boolean expired)
-
getExpired
@Nullable public java.lang.Boolean getExpired()
Determines whether the Invitation is expired.- Returns:
- expired
-
setExpired
public void setExpired(java.lang.Boolean expired)
-
putAdditionalProperty
public InvitationModel putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the InvitationModel instance itself
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws java.io.IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
java.io.IOException- if the JSON Element is invalid with respect to InvitationModel
-
fromJson
public static InvitationModel fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of InvitationModel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InvitationModel
- Throws:
java.io.IOException- if the JSON string is invalid with respect to InvitationModel
-
toJson
public java.lang.String toJson()
Convert an instance of InvitationModel to an JSON string- Returns:
- JSON string
-
-