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.
  • Constructor Details

    • TenantsRequestBuilder

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

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

    • count

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

      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

      @Nullable public MultiTenantOrganizationMember post(@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 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 body
      requestConfiguration - 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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