java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.sites.item.termstores.item.groups.item.sets.item.relations.item.RelationItemRequestBuilder

@Generated("com.microsoft.kiota") public class RelationItemRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the relations property of the microsoft.graph.termStore.set entity.
  • Constructor Details

    • RelationItemRequestBuilder

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

      public RelationItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter)
      Instantiates a new RelationItemRequestBuilder 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

    • fromTerm

      @Nonnull public FromTermRequestBuilder fromTerm()
      Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity.
      Returns:
      a FromTermRequestBuilder
    • set

      @Nonnull public SetRequestBuilder set()
      Provides operations to manage the set property of the microsoft.graph.termStore.relation entity.
      Returns:
      a SetRequestBuilder
    • toTerm

      @Nonnull public ToTermRequestBuilder toTerm()
      Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity.
      Returns:
      a ToTermRequestBuilder
    • delete

      public void delete()
      Delete navigation property relations for sites
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • delete

      public void delete(@Nullable Consumer<RelationItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property relations for sites
      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 Relation get()
      Indicates which terms have been pinned or reused directly under the set.
      Returns:
      a Relation
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      @Nullable public Relation get(@Nullable Consumer<RelationItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Indicates which terms have been pinned or reused directly under the set.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a Relation
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

      @Nullable public Relation patch(@Nonnull Relation body)
      Update the navigation property relations in sites
      Parameters:
      body - The request body
      Returns:
      a Relation
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • patch

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

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()
      Delete navigation property relations for sites
      Returns:
      a RequestInformation
    • toDeleteRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<RelationItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration)
      Delete navigation property relations for sites
      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()
      Indicates which terms have been pinned or reused directly under the set.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RelationItemRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Indicates which terms have been pinned or reused directly under the set.
      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 Relation body)
      Update the navigation property relations in sites
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPatchRequestInformation

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

      @Nonnull public RelationItemRequestBuilder 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 RelationItemRequestBuilder