Class MicrosoftGraphResourceSpecificPermissionGrant


public final class MicrosoftGraphResourceSpecificPermissionGrant extends MicrosoftGraphDirectoryObjectInner
resourceSpecificPermissionGrant

Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

  • Constructor Details

    • MicrosoftGraphResourceSpecificPermissionGrant

      public MicrosoftGraphResourceSpecificPermissionGrant()
      Creates an instance of MicrosoftGraphResourceSpecificPermissionGrant class.
  • Method Details

    • clientAppId

      public String clientAppId()
      Get the clientAppId property: The clientAppId property.
      Returns:
      the clientAppId value.
    • withClientAppId

      public MicrosoftGraphResourceSpecificPermissionGrant withClientAppId(String clientAppId)
      Set the clientAppId property: The clientAppId property.
      Parameters:
      clientAppId - the clientAppId value to set.
      Returns:
      the MicrosoftGraphResourceSpecificPermissionGrant object itself.
    • clientId

      public String clientId()
      Get the clientId property: The clientId property.
      Returns:
      the clientId value.
    • withClientId

      public MicrosoftGraphResourceSpecificPermissionGrant withClientId(String clientId)
      Set the clientId property: The clientId property.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the MicrosoftGraphResourceSpecificPermissionGrant object itself.
    • permission

      public String permission()
      Get the permission property: The permission property.
      Returns:
      the permission value.
    • withPermission

      public MicrosoftGraphResourceSpecificPermissionGrant withPermission(String permission)
      Set the permission property: The permission property.
      Parameters:
      permission - the permission value to set.
      Returns:
      the MicrosoftGraphResourceSpecificPermissionGrant object itself.
    • permissionType

      public String permissionType()
      Get the permissionType property: The permissionType property.
      Returns:
      the permissionType value.
    • withPermissionType

      public MicrosoftGraphResourceSpecificPermissionGrant withPermissionType(String permissionType)
      Set the permissionType property: The permissionType property.
      Parameters:
      permissionType - the permissionType value to set.
      Returns:
      the MicrosoftGraphResourceSpecificPermissionGrant object itself.
    • resourceAppId

      public String resourceAppId()
      Get the resourceAppId property: The resourceAppId property.
      Returns:
      the resourceAppId value.
    • withResourceAppId

      public MicrosoftGraphResourceSpecificPermissionGrant withResourceAppId(String resourceAppId)
      Set the resourceAppId property: The resourceAppId property.
      Parameters:
      resourceAppId - the resourceAppId value to set.
      Returns:
      the MicrosoftGraphResourceSpecificPermissionGrant object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
      Overrides:
      additionalProperties in class MicrosoftGraphDirectoryObjectInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphResourceSpecificPermissionGrant withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphResourceSpecificPermissionGrant object itself.
    • withDeletedDateTime

      public MicrosoftGraphResourceSpecificPermissionGrant withDeletedDateTime(OffsetDateTime deletedDateTime)
      Set the deletedDateTime property: The deletedDateTime property.
      Overrides:
      withDeletedDateTime in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      deletedDateTime - the deletedDateTime value to set.
      Returns:
      the MicrosoftGraphDirectoryObjectInner object itself.
    • withId

      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphDirectoryObjectInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.