Package com.microsoft.graph.models
Class Permission
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Permission
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Permission
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 Permission
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the expirationDateTime property value.The deserialization information for the current modelGets the grantedTo property value.Gets the grantedToIdentities property value.Gets the grantedToIdentitiesV2 property value.Gets the grantedToV2 property value.Gets the hasPassword property value.Gets the inheritedFrom property value.Gets the invitation property value.getLink()
Gets the link property value.getRoles()
Gets the roles property value.Gets the shareId property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the expirationDateTime property value.void
setGrantedTo
(IdentitySet value) Sets the grantedTo property value.void
setGrantedToIdentities
(List<IdentitySet> value) Sets the grantedToIdentities property value.void
Sets the grantedToIdentitiesV2 property value.void
Sets the grantedToV2 property value.void
setHasPassword
(Boolean value) Sets the hasPassword property value.void
setInheritedFrom
(ItemReference value) Sets the inheritedFrom property value.void
setInvitation
(SharingInvitation value) Sets the invitation property value.void
setLink
(SharingLink value) Sets the link property value.void
Sets the roles property value.void
setShareId
(String value) Sets the shareId property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Permission
public Permission()Instantiates a newPermission
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Permission 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
Permission
-
getExpirationDateTime
Gets the expirationDateTime property value. A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there's no expiration set for this permission. Optional.- Returns:
- a
OffsetDateTime
-
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>>
-
getGrantedTo
Gets the grantedTo property value. For user type permissions, the details of the users and applications for this permission. Read-only.- Returns:
- a
IdentitySet
-
getGrantedToIdentities
Gets the grantedToIdentities property value. For type permissions, the details of the users to whom permission was granted. Read-only.- Returns:
- a
List<IdentitySet>
-
getGrantedToIdentitiesV2
Gets the grantedToIdentitiesV2 property value. For link type permissions, the details of the users to whom permission was granted. Read-only.- Returns:
- a
List<SharePointIdentitySet>
-
getGrantedToV2
Gets the grantedToV2 property value. For user type permissions, the details of the users and applications for this permission. Read-only.- Returns:
- a
SharePointIdentitySet
-
getHasPassword
Gets the hasPassword property value. Indicates whether the password is set for this permission. This property only appears in the response. Optional. Read-only. For OneDrive Personal only..- Returns:
- a
Boolean
-
getInheritedFrom
Gets the inheritedFrom property value. Provides a reference to the ancestor of the current permission, if it's inherited from an ancestor. Read-only.- Returns:
- a
ItemReference
-
getInvitation
Gets the invitation property value. Details of any associated sharing invitation for this permission. Read-only.- Returns:
- a
SharingInvitation
-
getLink
Gets the link property value. Provides the link details of the current permission, if it's a link type permission. Read-only.- Returns:
- a
SharingLink
-
getRoles
Gets the roles property value. The type of permission, for example, read. See below for the full list of roles. Read-only. -
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setExpirationDateTime
Sets the expirationDateTime property value. A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there's no expiration set for this permission. Optional.- Parameters:
value
- Value to set for the expirationDateTime property.
-
setGrantedTo
Sets the grantedTo property value. For user type permissions, the details of the users and applications for this permission. Read-only.- Parameters:
value
- Value to set for the grantedTo property.
-
setGrantedToIdentities
Sets the grantedToIdentities property value. For type permissions, the details of the users to whom permission was granted. Read-only.- Parameters:
value
- Value to set for the grantedToIdentities property.
-
setGrantedToIdentitiesV2
Sets the grantedToIdentitiesV2 property value. For link type permissions, the details of the users to whom permission was granted. Read-only.- Parameters:
value
- Value to set for the grantedToIdentitiesV2 property.
-
setHasPassword
Sets the hasPassword property value. Indicates whether the password is set for this permission. This property only appears in the response. Optional. Read-only. For OneDrive Personal only..- Parameters:
value
- Value to set for the hasPassword property.
-
setInheritedFrom
Sets the inheritedFrom property value. Provides a reference to the ancestor of the current permission, if it's inherited from an ancestor. Read-only.- Parameters:
value
- Value to set for the inheritedFrom property.
-
setInvitation
Sets the invitation property value. Details of any associated sharing invitation for this permission. Read-only.- Parameters:
value
- Value to set for the invitation property.
-
setLink
Sets the link property value. Provides the link details of the current permission, if it's a link type permission. Read-only.- Parameters:
value
- Value to set for the link property.
-
setRoles
Sets the roles property value. The type of permission, for example, read. See below for the full list of roles. Read-only.- Parameters:
value
- Value to set for the roles property.
-