Package com.microsoft.graph.models
Class Invitation
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Invitation
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Invitation
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Invitation
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueThe deserialization information for the current modelGets the invitedUser property value.Gets the invitedUserDisplayName property value.Gets the invitedUserEmailAddress property value.Gets the invitedUserMessageInfo property value.Gets the invitedUserSponsors property value.Gets the invitedUserType property value.Gets the inviteRedeemUrl property value.Gets the inviteRedirectUrl property value.Gets the resetRedemption property value.Gets the sendInvitationMessage property value.Gets the status property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setInvitedUser
(User value) Sets the invitedUser property value.void
setInvitedUserDisplayName
(String value) Sets the invitedUserDisplayName property value.void
setInvitedUserEmailAddress
(String value) Sets the invitedUserEmailAddress property value.void
Sets the invitedUserMessageInfo property value.void
Sets the invitedUserSponsors property value.void
setInvitedUserType
(String value) Sets the invitedUserType property value.void
setInviteRedeemUrl
(String value) Sets the inviteRedeemUrl property value.void
setInviteRedirectUrl
(String value) Sets the inviteRedirectUrl property value.void
setResetRedemption
(Boolean value) Sets the resetRedemption property value.void
setSendInvitationMessage
(Boolean value) Sets the sendInvitationMessage property value.void
Sets the status property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Invitation
public Invitation()Instantiates a newInvitation
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Invitation createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
Invitation
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getInvitedUser
Gets the invitedUser property value. The user created as part of the invitation creation. Read-only. The id property is required in the request body to reset a redemption status.- Returns:
- a
User
-
getInvitedUserDisplayName
Gets the invitedUserDisplayName property value. The display name of the user being invited.- Returns:
- a
String
-
getInvitedUserEmailAddress
Gets the invitedUserEmailAddress property value. The email address of the user being invited. Required. The following special characters aren't permitted in the email address:Tilde (~)Exclamation point (!)Number sign (#)Dollar sign ($)Percent (%)Circumflex (^)Ampersand (&)Asterisk (*)Parentheses (( ))Plus sign (+)Equal sign (=)Brackets ([ ])Braces ({ })Backslash (/)Slash mark (/)Pipe (/|)Semicolon (;)Colon (:)Quotation marks (')Angle brackets (< >)Question mark (?)Comma (,)However, the following exceptions apply:A period (.) or a hyphen (-) is permitted anywhere in the user name, except at the beginning or end of the name.An underscore (_) is permitted anywhere in the user name, including at the beginning or end of the name.- Returns:
- a
String
-
getInvitedUserMessageInfo
Gets the invitedUserMessageInfo property value. Contains configuration for the message being sent to the invited user, including customizing message text, language, and cc recipient list.- Returns:
- a
InvitedUserMessageInfo
-
getInvitedUserSponsors
Gets the invitedUserSponsors property value. The users or groups who are sponsors of the invited user. Sponsors are users and groups that are responsible for guest users' privileges in the tenant and for keeping the guest users' information and access up to date.- Returns:
- a
List<DirectoryObject>
-
getInvitedUserType
Gets the invitedUserType property value. The userType of the user being invited. By default, this is Guest. You can invite as Member if you're a company administrator.- Returns:
- a
String
-
getInviteRedeemUrl
Gets the inviteRedeemUrl property value. The URL the user can use to redeem their invitation. Read-only.- Returns:
- a
String
-
getInviteRedirectUrl
Gets the inviteRedirectUrl property value. The URL the user should be redirected to after the invitation is redeemed. Required.- Returns:
- a
String
-
getResetRedemption
Gets the resetRedemption property value. Reset the user's redemption status and reinvite a user while retaining their user identifier, group memberships, and app assignments. This property allows you to enable a user to sign-in using a different email address from the one in the previous invitation. When true, the invitedUser/id relationship is required. For more information about using this property, see Reset redemption status for a guest user.- Returns:
- a
Boolean
-
getSendInvitationMessage
Gets the sendInvitationMessage property value. Indicates whether an email should be sent to the user being invited. The default is false.- Returns:
- a
Boolean
-
getStatus
Gets the status property value. The status of the invitation. Possible values are: PendingAcceptance, Completed, InProgress, and Error.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setInvitedUser
Sets the invitedUser property value. The user created as part of the invitation creation. Read-only. The id property is required in the request body to reset a redemption status.- Parameters:
value
- Value to set for the invitedUser property.
-
setInvitedUserDisplayName
Sets the invitedUserDisplayName property value. The display name of the user being invited.- Parameters:
value
- Value to set for the invitedUserDisplayName property.
-
setInvitedUserEmailAddress
Sets the invitedUserEmailAddress property value. The email address of the user being invited. Required. The following special characters aren't permitted in the email address:Tilde (~)Exclamation point (!)Number sign (#)Dollar sign ($)Percent (%)Circumflex (^)Ampersand (&)Asterisk (*)Parentheses (( ))Plus sign (+)Equal sign (=)Brackets ([ ])Braces ({ })Backslash (/)Slash mark (/)Pipe (/|)Semicolon (;)Colon (:)Quotation marks (')Angle brackets (< >)Question mark (?)Comma (,)However, the following exceptions apply:A period (.) or a hyphen (-) is permitted anywhere in the user name, except at the beginning or end of the name.An underscore (_) is permitted anywhere in the user name, including at the beginning or end of the name.- Parameters:
value
- Value to set for the invitedUserEmailAddress property.
-
setInvitedUserMessageInfo
Sets the invitedUserMessageInfo property value. Contains configuration for the message being sent to the invited user, including customizing message text, language, and cc recipient list.- Parameters:
value
- Value to set for the invitedUserMessageInfo property.
-
setInvitedUserSponsors
Sets the invitedUserSponsors property value. The users or groups who are sponsors of the invited user. Sponsors are users and groups that are responsible for guest users' privileges in the tenant and for keeping the guest users' information and access up to date.- Parameters:
value
- Value to set for the invitedUserSponsors property.
-
setInvitedUserType
Sets the invitedUserType property value. The userType of the user being invited. By default, this is Guest. You can invite as Member if you're a company administrator.- Parameters:
value
- Value to set for the invitedUserType property.
-
setInviteRedeemUrl
Sets the inviteRedeemUrl property value. The URL the user can use to redeem their invitation. Read-only.- Parameters:
value
- Value to set for the inviteRedeemUrl property.
-
setInviteRedirectUrl
Sets the inviteRedirectUrl property value. The URL the user should be redirected to after the invitation is redeemed. Required.- Parameters:
value
- Value to set for the inviteRedirectUrl property.
-
setResetRedemption
Sets the resetRedemption property value. Reset the user's redemption status and reinvite a user while retaining their user identifier, group memberships, and app assignments. This property allows you to enable a user to sign-in using a different email address from the one in the previous invitation. When true, the invitedUser/id relationship is required. For more information about using this property, see Reset redemption status for a guest user.- Parameters:
value
- Value to set for the resetRedemption property.
-
setSendInvitationMessage
Sets the sendInvitationMessage property value. Indicates whether an email should be sent to the user being invited. The default is false.- Parameters:
value
- Value to set for the sendInvitationMessage property.
-
setStatus
Sets the status property value. The status of the invitation. Possible values are: PendingAcceptance, Completed, InProgress, and Error.- Parameters:
value
- Value to set for the status property.
-