Class MicrosoftGraphResourceAccess

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphResourceAccess

public final class MicrosoftGraphResourceAccess extends Object
resourceAccess.
  • Constructor Details

    • MicrosoftGraphResourceAccess

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

    • id

      public UUID id()
      Get the id property: The unique identifier for one of the oauth2PermissionScopes or appRole instances that the resource application exposes.
      Returns:
      the id value.
    • withId

      public MicrosoftGraphResourceAccess withId(UUID id)
      Set the id property: The unique identifier for one of the oauth2PermissionScopes or appRole instances that the resource application exposes.
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphResourceAccess object itself.
    • type

      public String type()
      Get the type property: Specifies whether the id property references an oauth2PermissionScopes or an appRole. Possible values are Scope or Role.
      Returns:
      the type value.
    • withType

      public MicrosoftGraphResourceAccess withType(String type)
      Set the type property: Specifies whether the id property references an oauth2PermissionScopes or an appRole. Possible values are Scope or Role.
      Parameters:
      type - the type value to set.
      Returns:
      the MicrosoftGraphResourceAccess object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: resourceAccess.
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphResourceAccess withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: resourceAccess.
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphResourceAccess object itself.
    • validate

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