Class SubscribedSkusRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.subscribedskus.SubscribedSkusRequestBuilder

@Generated("com.microsoft.kiota") public class SubscribedSkusRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of subscribedSku entities.
  • Constructor Details

    • SubscribedSkusRequestBuilder

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

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

    • bySubscribedSkuId

      @Nonnull public SubscribedSkuItemRequestBuilder bySubscribedSkuId(@Nonnull String subscribedSkuId)
      Provides operations to manage the collection of subscribedSku entities.
      Parameters:
      subscribedSkuId - The unique identifier of subscribedSku
      Returns:
      a SubscribedSkuItemRequestBuilder
    • get

      @Nullable public SubscribedSkuCollectionResponse get()
      Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing.
      Returns:
      a SubscribedSkuCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a SubscribedSkuCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public SubscribedSku post(@Nonnull SubscribedSku body)
      Add new entity to subscribedSkus
      Parameters:
      body - The request body
      Returns:
      a SubscribedSku
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public SubscribedSku post(@Nonnull SubscribedSku body, @Nullable Consumer<SubscribedSkusRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Add new entity to subscribedSkus
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a SubscribedSku
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SubscribedSkusRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Get the list of commercial subscriptions that an organization has acquired. For the mapping of license names as displayed on the Microsoft Entra admin center or the Microsoft 365 admin center against their Microsoft Graph skuId and skuPartNumber properties, see Product names and service plan identifiers for licensing.
      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 SubscribedSku body)
      Add new entity to subscribedSkus
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull SubscribedSku body, @Nullable Consumer<SubscribedSkusRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Add new entity to subscribedSkus
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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