Class DirectoryRoleItemRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.directoryroles.item.DirectoryRoleItemRequestBuilder

@Generated("com.microsoft.kiota") public class DirectoryRoleItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of directoryRole entities.
  • Constructor Details

    • DirectoryRoleItemRequestBuilder

      public DirectoryRoleItemRequestBuilder(@Nonnull HashMap<String,Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new DirectoryRoleItemRequestBuilder and sets the default values.
      Parameters:
      pathParameters - Path parameters for the request
      requestAdapter - The request adapter to use to execute the requests.
    • DirectoryRoleItemRequestBuilder

      public DirectoryRoleItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new DirectoryRoleItemRequestBuilder and sets the default values.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      requestAdapter - The request adapter to use to execute the requests.
  • Method Details

    • checkMemberGroups

      @Nonnull public CheckMemberGroupsRequestBuilder checkMemberGroups()
      Provides operations to call the checkMemberGroups method.
      Returns:
      a CheckMemberGroupsRequestBuilder
    • checkMemberObjects

      @Nonnull public CheckMemberObjectsRequestBuilder checkMemberObjects()
      Provides operations to call the checkMemberObjects method.
      Returns:
      a CheckMemberObjectsRequestBuilder
    • getMemberGroups

      @Nonnull public GetMemberGroupsRequestBuilder getMemberGroups()
      Provides operations to call the getMemberGroups method.
      Returns:
      a GetMemberGroupsRequestBuilder
    • getMemberObjects

      @Nonnull public GetMemberObjectsRequestBuilder getMemberObjects()
      Provides operations to call the getMemberObjects method.
      Returns:
      a GetMemberObjectsRequestBuilder
    • members

      @Nonnull public MembersRequestBuilder members()
      Provides operations to manage the members property of the microsoft.graph.directoryRole entity.
      Returns:
      a MembersRequestBuilder
    • restore

      @Nonnull public RestoreRequestBuilder restore()
      Provides operations to call the restore method.
      Returns:
      a RestoreRequestBuilder
    • scopedMembers

      @Nonnull public ScopedMembersRequestBuilder scopedMembers()
      Provides operations to manage the scopedMembers property of the microsoft.graph.directoryRole entity.
      Returns:
      a ScopedMembersRequestBuilder
    • delete

      public void delete()
      Delete entity from directoryRoles
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<DirectoryRoleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete entity from directoryRoles
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public DirectoryRole get()
      Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs.
      Returns:
      a DirectoryRole
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public DirectoryRole get(@Nullable Consumer<DirectoryRoleItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a DirectoryRole
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • patch

      @Nullable public DirectoryRole patch(@Nonnull DirectoryRole body)
      Update entity in directoryRoles
      Parameters:
      body - The request body
      Returns:
      a DirectoryRole
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public DirectoryRole patch(@Nonnull DirectoryRole body, @Nullable Consumer<DirectoryRoleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update entity in directoryRoles
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a DirectoryRole
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete entity from directoryRoles
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<DirectoryRoleItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete entity from directoryRoles
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DirectoryRoleItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull DirectoryRole body)
      Update entity in directoryRoles
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull DirectoryRole body, @Nullable Consumer<DirectoryRoleItemRequestBuilder.PatchRequestConfiguration> requestConfiguration)
      Update entity in directoryRoles
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

      @Nonnull public DirectoryRoleItemRequestBuilder withUrl(@Nonnull String rawUrl)
      Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
      Parameters:
      rawUrl - The raw URL to use for the request builder.
      Returns:
      a DirectoryRoleItemRequestBuilder