Class AppDefinitionsRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.appcatalogs.teamsapps.item.appdefinitions.AppDefinitionsRequestBuilder

@Generated("com.microsoft.kiota") public class AppDefinitionsRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.
  • Constructor Details

    • AppDefinitionsRequestBuilder

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

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

      @Nonnull public TeamsAppDefinitionItemRequestBuilder byTeamsAppDefinitionId(@Nonnull String teamsAppDefinitionId)
      Provides operations to manage the appDefinitions property of the microsoft.graph.teamsApp entity.
      Parameters:
      teamsAppDefinitionId - The unique identifier of teamsAppDefinition
      Returns:
      a TeamsAppDefinitionItemRequestBuilder
    • get

      @Nullable public TeamsAppDefinitionCollectionResponse get()
      The details for each version of the app.
      Returns:
      a TeamsAppDefinitionCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • get

      The details for each version of the app.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a TeamsAppDefinitionCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
    • post

      @Nullable public TeamsAppDefinition post(@Nonnull TeamsAppDefinition body)
      Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).
      Parameters:
      body - The request body
      Returns:
      a TeamsAppDefinition
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public TeamsAppDefinition post(@Nonnull TeamsAppDefinition body, @Nullable Consumer<AppDefinitionsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a TeamsAppDefinition
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      The details for each version of the app.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<AppDefinitionsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      The details for each version of the app.
      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 TeamsAppDefinition body)
      Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull TeamsAppDefinition body, @Nullable Consumer<AppDefinitionsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Update an app previously published to the Microsoft Teams app catalog. To update an app, the distributionMethod property for the app must be set to organization. This API specifically updates an app published to your organization's app catalog (the tenant app catalog).
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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