Package com.microsoft.graph.models
Class ResourceSpecificPermissionGrant
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.ResourceSpecificPermissionGrant
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class ResourceSpecificPermissionGrant
extends DirectoryObject
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newResourceSpecificPermissionGrantand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the clientAppId property value.Gets the clientId property value.The deserialization information for the current modelGets the permission property value.Gets the permissionType property value.Gets the resourceAppId property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetClientAppId(String value) Sets the clientAppId property value.voidsetClientId(String value) Sets the clientId property value.voidsetPermission(String value) Sets the permission property value.voidsetPermissionType(String value) Sets the permissionType property value.voidsetResourceAppId(String value) Sets the resourceAppId property value.Methods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ResourceSpecificPermissionGrant
public ResourceSpecificPermissionGrant()Instantiates a newResourceSpecificPermissionGrantand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static ResourceSpecificPermissionGrant 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
ResourceSpecificPermissionGrant
-
getClientAppId
Gets the clientAppId property value. ID of the service principal of the Microsoft Entra app that has been granted access. Read-only.- Returns:
- a
String
-
getClientId
Gets the clientId property value. ID of the Microsoft Entra app that has been granted access. Read-only.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classDirectoryObject- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getPermission
Gets the permission property value. The name of the resource-specific permission. Read-only.- Returns:
- a
String
-
getPermissionType
Gets the permissionType property value. The type of permission. Possible values are: Application, Delegated. Read-only.- Returns:
- a
String
-
getResourceAppId
Gets the resourceAppId property value. ID of the Microsoft Entra app that is hosting the resource. Read-only.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classDirectoryObject- Parameters:
writer- Serialization writer to use to serialize this model
-
setClientAppId
Sets the clientAppId property value. ID of the service principal of the Microsoft Entra app that has been granted access. Read-only.- Parameters:
value- Value to set for the clientAppId property.
-
setClientId
Sets the clientId property value. ID of the Microsoft Entra app that has been granted access. Read-only.- Parameters:
value- Value to set for the clientId property.
-
setPermission
Sets the permission property value. The name of the resource-specific permission. Read-only.- Parameters:
value- Value to set for the permission property.
-
setPermissionType
Sets the permissionType property value. The type of permission. Possible values are: Application, Delegated. Read-only.- Parameters:
value- Value to set for the permissionType property.
-
setResourceAppId
Sets the resourceAppId property value. ID of the Microsoft Entra app that is hosting the resource. Read-only.- Parameters:
value- Value to set for the resourceAppId property.
-