Class ChartsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.drives.item.items.item.workbook.worksheets.item.charts.ChartsRequestBuilder
@Generated("com.microsoft.kiota")
public class ChartsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe list of charts that are part of the worksheet.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionChartsRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChartsRequestBuilderand sets the default values.ChartsRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChartsRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionadd()Provides operations to call the add method.byWorkbookChartId(String workbookChartId) Provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity.count()Provides operations to call the count method.get()The list of charts that are part of the worksheet.get(Consumer<ChartsRequestBuilder.GetRequestConfiguration> requestConfiguration) The list of charts that are part of the worksheet.itemAtWithIndex(Integer index) Provides operations to call the itemAt method.itemWithName(String name) Provides operations to call the item method.post(WorkbookChart body) Create new navigation property to charts for drivespost(WorkbookChart body, Consumer<ChartsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to charts for drivescom.microsoft.kiota.RequestInformationThe list of charts that are part of the worksheet.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ChartsRequestBuilder.GetRequestConfiguration> requestConfiguration) The list of charts that are part of the worksheet.com.microsoft.kiota.RequestInformationCreate new navigation property to charts for drivescom.microsoft.kiota.RequestInformationtoPostRequestInformation(WorkbookChart body, Consumer<ChartsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to charts for drivesReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ChartsRequestBuilder
public ChartsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChartsRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ChartsRequestBuilder
public ChartsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newChartsRequestBuilderand 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
-
add
Provides operations to call the add method.- Returns:
- a
AddRequestBuilder
-
count
Provides operations to call the count method.- Returns:
- a
CountRequestBuilder
-
byWorkbookChartId
Provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity.- Parameters:
workbookChartId- The unique identifier of workbookChart- Returns:
- a
WorkbookChartItemRequestBuilder
-
get
The list of charts that are part of the worksheet. Read-only.- Returns:
- a
WorkbookChartCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public WorkbookChartCollectionResponse get(@Nullable Consumer<ChartsRequestBuilder.GetRequestConfiguration> requestConfiguration) The list of charts that are part of the worksheet. Read-only.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
WorkbookChartCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
itemAtWithIndex
Provides operations to call the itemAt method.- Parameters:
index- Usage: index={index}- Returns:
- a
ItemAtWithIndexRequestBuilder
-
itemWithName
Provides operations to call the item method.- Parameters:
name- Usage: name='{name}'- Returns:
- a
ItemWithNameRequestBuilder
-
post
Create new navigation property to charts for drives- Parameters:
body- The request body- Returns:
- a
WorkbookChart - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public WorkbookChart post(@Nonnull WorkbookChart body, @Nullable Consumer<ChartsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to charts for drives- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
WorkbookChart - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()The list of charts that are part of the worksheet. Read-only.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ChartsRequestBuilder.GetRequestConfiguration> requestConfiguration) The list of charts that are part of the worksheet. Read-only.- 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 WorkbookChart body) Create new navigation property to charts for drives- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull WorkbookChart body, @Nullable Consumer<ChartsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to charts for drives- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
ChartsRequestBuilder
-