Class MultiTenantOrganizationRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.tenantrelationships.multitenantorganization.MultiTenantOrganizationRequestBuilder
@Generated("com.microsoft.kiota")
public class MultiTenantOrganizationRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the multiTenantOrganization property of the microsoft.graph.tenantRelationship entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassGet properties of the multitenant organization.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
ConstructorsConstructorDescriptionMultiTenantOrganizationRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMultiTenantOrganizationRequestBuilderand sets the default values.MultiTenantOrganizationRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMultiTenantOrganizationRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget()Get properties of the multitenant organization.get(Consumer<MultiTenantOrganizationRequestBuilder.GetRequestConfiguration> requestConfiguration) Get properties of the multitenant organization.Provides operations to manage the joinRequest property of the microsoft.graph.multiTenantOrganization entity.patch(MultiTenantOrganization body) Update the properties of a multitenant organization.patch(MultiTenantOrganization body, Consumer<MultiTenantOrganizationRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a multitenant organization.tenants()Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity.com.microsoft.kiota.RequestInformationGet properties of the multitenant organization.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<MultiTenantOrganizationRequestBuilder.GetRequestConfiguration> requestConfiguration) Get properties of the multitenant organization.com.microsoft.kiota.RequestInformationUpdate the properties of a multitenant organization.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(MultiTenantOrganization body, Consumer<MultiTenantOrganizationRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a multitenant organization.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
MultiTenantOrganizationRequestBuilder
public MultiTenantOrganizationRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMultiTenantOrganizationRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
MultiTenantOrganizationRequestBuilder
public MultiTenantOrganizationRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMultiTenantOrganizationRequestBuilderand 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
-
joinRequest
Provides operations to manage the joinRequest property of the microsoft.graph.multiTenantOrganization entity.- Returns:
- a
JoinRequestRequestBuilder
-
tenants
Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity.- Returns:
- a
TenantsRequestBuilder
-
get
Get properties of the multitenant organization.- Returns:
- a
MultiTenantOrganization - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public MultiTenantOrganization get(@Nullable Consumer<MultiTenantOrganizationRequestBuilder.GetRequestConfiguration> requestConfiguration) Get properties of the multitenant organization.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
MultiTenantOrganization - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update the properties of a multitenant organization.- Parameters:
body- The request body- Returns:
- a
MultiTenantOrganization - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public MultiTenantOrganization patch(@Nonnull MultiTenantOrganization body, @Nullable Consumer<MultiTenantOrganizationRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a multitenant organization.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
MultiTenantOrganization - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get properties of the multitenant organization.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<MultiTenantOrganizationRequestBuilder.GetRequestConfiguration> requestConfiguration) Get properties of the multitenant organization.- 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 MultiTenantOrganization body) Update the properties of a multitenant organization.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull MultiTenantOrganization body, @Nullable Consumer<MultiTenantOrganizationRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a multitenant organization.- 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
MultiTenantOrganizationRequestBuilder
-