Class FeedViewRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifacts.feedmanagement.FeedViewRequestBuilder

public class FeedViewRequestBuilder extends BaseRequestBuilder
Feed view request builder to manage feed view Api.
  • Constructor Details

    • FeedViewRequestBuilder

      public FeedViewRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential)
      Instantiates a new RequestBuilder instance and sets the default values.
      Parameters:
      organizationUrl - Represents organization location request url.
      accessTokenCredential - Access token credential object.
  • Method Details

    • createAsync

      public CompletableFuture<FeedView> createAsync(String feedId, FeedView feedView) throws AzDException
      Create a new view on the referenced feed. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Id of the feed.
      feedView - Feed view object to create the feed view.
      Returns:
      Feed view object FeedView
      Throws:
      AzDException - Default Api Exception handler.
    • deleteAsync

      public CompletableFuture<Void> deleteAsync(String feedId, String viewId) throws AzDException
      Delete a feed view. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Name or Id of the feed
      viewId - Id of the feed view
      Throws:
      AzDException - Default Api Exception handler.
    • getAsync

      public CompletableFuture<FeedView> getAsync(String feedId, String viewId) throws AzDException
      Get a view by Id. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Name or Id of the feed.
      viewId - Name or Id of the view.
      Returns:
      feed view FeedView
      Throws:
      AzDException - Default Api Exception handler.
    • listAsync

      public CompletableFuture<FeedViews> listAsync(String feedId) throws AzDException
      Get all views for a feed. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Name or Id of the feed.
      Returns:
      feed view FeedView
      Throws:
      AzDException - Default Api Exception handler.
    • updateAsync

      public CompletableFuture<FeedView> updateAsync(String feedId, String viewId, FeedView feedView) throws AzDException
      Update a view. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Name or Id of the feed.
      viewId - Name or Id of the view.
      feedView - Feed view object to update the settings for.
      Returns:
      the updated feed view FeedView
      Throws:
      AzDException - Default Api Exception handler.
    • create

      public FeedView create(String feedId, FeedView feedView) throws AzDException
      Create a new view on the referenced feed. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Id of the feed.
      feedView - Feed view object to create the feed view.
      Returns:
      Feed view object FeedView
      Throws:
      AzDException - Default Api Exception handler.
    • delete

      public Void delete(String feedId, String viewId) throws AzDException
      Delete a feed view. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Name or Id of the feed
      viewId - Id of the feed view
      Throws:
      AzDException - Default Api Exception handler.
    • get

      public FeedView get(String feedId, String viewId) throws AzDException
      Get a view by Id. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Name or Id of the feed.
      viewId - Name or Id of the view.
      Returns:
      feed view FeedView
      Throws:
      AzDException - Default Api Exception handler.
    • list

      public FeedViews list(String feedId) throws AzDException
      Get all views for a feed. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Name or Id of the feed.
      Returns:
      feed view FeedView
      Throws:
      AzDException - Default Api Exception handler.
    • update

      public FeedView update(String feedId, String viewId, FeedView feedView) throws AzDException
      Update a view. The project parameter must be supplied if the feed was created in a project.
      Parameters:
      feedId - Name or Id of the feed.
      viewId - Name or Id of the view.
      feedView - Feed view object to update the settings for.
      Returns:
      the updated feed view FeedView
      Throws:
      AzDException - Default Api Exception handler.