Class GraphSitePageRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.sites.item.pages.item.graphsitepage.GraphSitePageRequestBuilder

@Generated("com.microsoft.kiota") public class GraphSitePageRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Casts the previous resource to sitePage.
  • Constructor Details

    • GraphSitePageRequestBuilder

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

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

    • canvasLayout

      @Nonnull public CanvasLayoutRequestBuilder canvasLayout()
      Provides operations to manage the canvasLayout property of the microsoft.graph.sitePage entity.
      Returns:
      a CanvasLayoutRequestBuilder
    • createdByUser

      @Nonnull public CreatedByUserRequestBuilder createdByUser()
      Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity.
      Returns:
      a CreatedByUserRequestBuilder
    • lastModifiedByUser

      @Nonnull public LastModifiedByUserRequestBuilder lastModifiedByUser()
      Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity.
      Returns:
      a LastModifiedByUserRequestBuilder
    • webParts

      @Nonnull public WebPartsRequestBuilder webParts()
      Provides operations to manage the webParts property of the microsoft.graph.sitePage entity.
      Returns:
      a WebPartsRequestBuilder
    • get

      @Nullable public SitePage get()
      Returns the metadata for a sitePage in the site pages list in a site.
      Returns:
      a SitePage
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public SitePage get(@Nullable Consumer<GraphSitePageRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Returns the metadata for a sitePage in the site pages list in a site.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a SitePage
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      Returns the metadata for a sitePage in the site pages list in a site.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<GraphSitePageRequestBuilder.GetRequestConfiguration> requestConfiguration)
      Returns the metadata for a sitePage in the site pages list in a site.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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