Class RelationItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.groups.item.sites.item.termstores.item.sets.item.parentgroup.sets.item.children.item.children.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.term entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classTo indicate which terms are related to the current term as either pinned or reused.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionRelationItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRelationItemRequestBuilderand sets the default values.RelationItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRelationItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete navigation property relations for groupsvoiddelete(Consumer<RelationItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property relations for groupsfromTerm()Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity.get()To indicate which terms are related to the current term as either pinned or reused.get(Consumer<RelationItemRequestBuilder.GetRequestConfiguration> requestConfiguration) To indicate which terms are related to the current term as either pinned or reused.Update the navigation property relations in groupspatch(Relation body, Consumer<RelationItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property relations in groupsset()Provides operations to manage the set property of the microsoft.graph.termStore.relation entity.com.microsoft.kiota.RequestInformationDelete navigation property relations for groupscom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<RelationItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property relations for groupscom.microsoft.kiota.RequestInformationTo indicate which terms are related to the current term as either pinned or reused.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<RelationItemRequestBuilder.GetRequestConfiguration> requestConfiguration) To indicate which terms are related to the current term as either pinned or reused.com.microsoft.kiota.RequestInformationUpdate the navigation property relations in groupscom.microsoft.kiota.RequestInformationtoPatchRequestInformation(Relation body, Consumer<RelationItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property relations in groupstoTerm()Provides operations to manage the toTerm property of the microsoft.graph.termStore.relation entity.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
RelationItemRequestBuilder
public RelationItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRelationItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
RelationItemRequestBuilder
public RelationItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newRelationItemRequestBuilderand 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
Provides operations to manage the fromTerm property of the microsoft.graph.termStore.relation entity.- Returns:
- a
FromTermRequestBuilder
-
set
Provides operations to manage the set property of the microsoft.graph.termStore.relation entity.- Returns:
- a
SetRequestBuilder
-
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 groups- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<RelationItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property relations for groups- 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
To indicate which terms are related to the current term as either pinned or reused.- Returns:
- a
Relation - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public Relation get(@Nullable Consumer<RelationItemRequestBuilder.GetRequestConfiguration> requestConfiguration) To indicate which terms are related to the current term as either pinned or reused.- 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
Update the navigation property relations in groups- 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 groups- Parameters:
body- The request bodyrequestConfiguration- 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 groups- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<RelationItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property relations for groups- 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()To indicate which terms are related to the current term as either pinned or reused.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<RelationItemRequestBuilder.GetRequestConfiguration> requestConfiguration) To indicate which terms are related to the current term as either pinned or reused.- 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 groups- 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 groups- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
-