Class MicrosoftGraphPermission
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPermission
permission.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphPermission class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: permission.Get the expirationDateTime property: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission.Get the grantedTo property: identitySet.Get the grantedToIdentities property: For link type permissions, the details of the users to whom permission was granted.Get the hasPassword property: This indicates whether password is set for this permission, it's only showing in response.Get the inheritedFrom property: itemReference.Get the invitation property: sharingInvitation.link()Get the link property: sharingLink.roles()Get the roles property: The type of permission, e.g.shareId()Get the shareId property: A unique token that can be used to access this shared item via the **shares** API.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: permission.withExpirationDateTime(OffsetDateTime expirationDateTime) Set the expirationDateTime property: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission.withGrantedTo(MicrosoftGraphIdentitySet grantedTo) Set the grantedTo property: identitySet.withGrantedToIdentities(List<MicrosoftGraphIdentitySet> grantedToIdentities) Set the grantedToIdentities property: For link type permissions, the details of the users to whom permission was granted.withHasPassword(Boolean hasPassword) Set the hasPassword property: This indicates whether password is set for this permission, it's only showing in response.Set the id property: Read-only.withInheritedFrom(MicrosoftGraphItemReference inheritedFrom) Set the inheritedFrom property: itemReference.withInvitation(MicrosoftGraphSharingInvitation invitation) Set the invitation property: sharingInvitation.Set the link property: sharingLink.Set the roles property: The type of permission, e.g.withShareId(String shareId) Set the shareId property: A unique token that can be used to access this shared item via the **shares** API.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphPermission
public MicrosoftGraphPermission()Creates an instance of MicrosoftGraphPermission class.
-
-
Method Details
-
expirationDateTime
Get the expirationDateTime property: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.- Returns:
- the expirationDateTime value.
-
withExpirationDateTime
Set the expirationDateTime property: A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.- Parameters:
expirationDateTime- the expirationDateTime value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
grantedTo
Get the grantedTo property: identitySet.- Returns:
- the grantedTo value.
-
withGrantedTo
Set the grantedTo property: identitySet.- Parameters:
grantedTo- the grantedTo value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
grantedToIdentities
Get the grantedToIdentities property: For link type permissions, the details of the users to whom permission was granted. Read-only.- Returns:
- the grantedToIdentities value.
-
withGrantedToIdentities
public MicrosoftGraphPermission withGrantedToIdentities(List<MicrosoftGraphIdentitySet> grantedToIdentities) Set the grantedToIdentities property: For link type permissions, the details of the users to whom permission was granted. Read-only.- Parameters:
grantedToIdentities- the grantedToIdentities value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
hasPassword
Get the hasPassword property: This indicates whether password is set for this permission, it's only showing in response. Optional and Read-only and for OneDrive Personal only.- Returns:
- the hasPassword value.
-
withHasPassword
Set the hasPassword property: This indicates whether password is set for this permission, it's only showing in response. Optional and Read-only and for OneDrive Personal only.- Parameters:
hasPassword- the hasPassword value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
inheritedFrom
Get the inheritedFrom property: itemReference.- Returns:
- the inheritedFrom value.
-
withInheritedFrom
Set the inheritedFrom property: itemReference.- Parameters:
inheritedFrom- the inheritedFrom value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
invitation
Get the invitation property: sharingInvitation.- Returns:
- the invitation value.
-
withInvitation
Set the invitation property: sharingInvitation.- Parameters:
invitation- the invitation value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
link
Get the link property: sharingLink.- Returns:
- the link value.
-
withLink
Set the link property: sharingLink.- Parameters:
link- the link value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
roles
Get the roles property: The type of permission, e.g. read. See below for the full list of roles. Read-only.- Returns:
- the roles value.
-
withRoles
Set the roles property: The type of permission, e.g. read. See below for the full list of roles. Read-only.- Parameters:
roles- the roles value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
additionalProperties
Get the additionalProperties property: permission.- Overrides:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: permission.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphPermission object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-