Class TenantsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.tenantrelationships.multitenantorganization.tenants.TenantsRequestBuilder
@Generated("com.microsoft.kiota")
public class TenantsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassList the tenants and their properties in 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
ConstructorsConstructorDescriptionTenantsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTenantsRequestBuilderand sets the default values.TenantsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTenantsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyMultiTenantOrganizationMemberId(String multiTenantOrganizationMemberId) Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity.count()Provides operations to count the resources in the collection.get()List the tenants and their properties in the multitenant organization.get(Consumer<TenantsRequestBuilder.GetRequestConfiguration> requestConfiguration) List the tenants and their properties in the multitenant organization.Add a tenant to a multitenant organization.post(MultiTenantOrganizationMember body, Consumer<TenantsRequestBuilder.PostRequestConfiguration> requestConfiguration) Add a tenant to a multitenant organization.com.microsoft.kiota.RequestInformationList the tenants and their properties in the multitenant organization.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<TenantsRequestBuilder.GetRequestConfiguration> requestConfiguration) List the tenants and their properties in the multitenant organization.com.microsoft.kiota.RequestInformationAdd a tenant to a multitenant organization.com.microsoft.kiota.RequestInformationtoPostRequestInformation(MultiTenantOrganizationMember body, Consumer<TenantsRequestBuilder.PostRequestConfiguration> requestConfiguration) Add a tenant to a multitenant organization.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
TenantsRequestBuilder
public TenantsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTenantsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
TenantsRequestBuilder
public TenantsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTenantsRequestBuilderand 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byMultiTenantOrganizationMemberId
@Nonnull public MultiTenantOrganizationMemberItemRequestBuilder byMultiTenantOrganizationMemberId(@Nonnull String multiTenantOrganizationMemberId) Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity.- Parameters:
multiTenantOrganizationMemberId- The unique identifier of multiTenantOrganizationMember- Returns:
- a
MultiTenantOrganizationMemberItemRequestBuilder
-
get
List the tenants and their properties in the multitenant organization.- Returns:
- a
MultiTenantOrganizationMemberCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public MultiTenantOrganizationMemberCollectionResponse get(@Nullable Consumer<TenantsRequestBuilder.GetRequestConfiguration> requestConfiguration) List the tenants and their properties in the multitenant organization.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
MultiTenantOrganizationMemberCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Add a tenant to a multitenant organization. The administrator of an owner tenant has the permissions to add tenants to the multitenant organization. The added tenant is in the pending state until the administrator of the added tenant joins the multitenant organization by submitting a join request. A tenant can be part of only one multitenant organization.- Parameters:
body- The request body- Returns:
- a
MultiTenantOrganizationMember - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public MultiTenantOrganizationMember post(@Nonnull MultiTenantOrganizationMember body, @Nullable Consumer<TenantsRequestBuilder.PostRequestConfiguration> requestConfiguration) Add a tenant to a multitenant organization. The administrator of an owner tenant has the permissions to add tenants to the multitenant organization. The added tenant is in the pending state until the administrator of the added tenant joins the multitenant organization by submitting a join request. A tenant can be part of only one multitenant organization.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
MultiTenantOrganizationMember - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()List the tenants and their properties in the multitenant organization.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<TenantsRequestBuilder.GetRequestConfiguration> requestConfiguration) List the tenants and their properties in the multitenant organization.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull MultiTenantOrganizationMember body) Add a tenant to a multitenant organization. The administrator of an owner tenant has the permissions to add tenants to the multitenant organization. The added tenant is in the pending state until the administrator of the added tenant joins the multitenant organization by submitting a join request. A tenant can be part of only one multitenant organization.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull MultiTenantOrganizationMember body, @Nullable Consumer<TenantsRequestBuilder.PostRequestConfiguration> requestConfiguration) Add a tenant to a multitenant organization. The administrator of an owner tenant has the permissions to add tenants to the multitenant organization. The added tenant is in the pending state until the administrator of the added tenant joins the multitenant organization by submitting a join request. A tenant can be part of only one 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
TenantsRequestBuilder
-