Class NamesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.drives.item.items.item.workbook.names.NamesRequestBuilder
@Generated("com.microsoft.kiota")
public class NamesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the names property of the microsoft.graph.workbook entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRepresents a collection of workbooks scoped named items (named ranges and constants).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
ConstructorsConstructorDescriptionNamesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newNamesRequestBuilderand sets the default values.NamesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newNamesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionadd()Provides operations to call the add method.Provides operations to call the addFormulaLocal method.byWorkbookNamedItemId(String workbookNamedItemId) Provides operations to manage the names property of the microsoft.graph.workbook entity.count()Provides operations to count the resources in the collection.get()Represents a collection of workbooks scoped named items (named ranges and constants).get(Consumer<NamesRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents a collection of workbooks scoped named items (named ranges and constants).post(WorkbookNamedItem body) Create new navigation property to names for drivespost(WorkbookNamedItem body, Consumer<NamesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to names for drivescom.microsoft.kiota.RequestInformationRepresents a collection of workbooks scoped named items (named ranges and constants).com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<NamesRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents a collection of workbooks scoped named items (named ranges and constants).com.microsoft.kiota.RequestInformationCreate new navigation property to names for drivescom.microsoft.kiota.RequestInformationtoPostRequestInformation(WorkbookNamedItem body, Consumer<NamesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to names for drivesReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
NamesRequestBuilder
public NamesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newNamesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
NamesRequestBuilder
public NamesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newNamesRequestBuilderand 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
-
addFormulaLocal
Provides operations to call the addFormulaLocal method.- Returns:
- a
AddFormulaLocalRequestBuilder
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byWorkbookNamedItemId
@Nonnull public WorkbookNamedItemItemRequestBuilder byWorkbookNamedItemId(@Nonnull String workbookNamedItemId) Provides operations to manage the names property of the microsoft.graph.workbook entity.- Parameters:
workbookNamedItemId- The unique identifier of workbookNamedItem- Returns:
- a
WorkbookNamedItemItemRequestBuilder
-
get
Represents a collection of workbooks scoped named items (named ranges and constants). Read-only.- Returns:
- a
WorkbookNamedItemCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public WorkbookNamedItemCollectionResponse get(@Nullable Consumer<NamesRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents a collection of workbooks scoped named items (named ranges and constants). Read-only.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
WorkbookNamedItemCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
Create new navigation property to names for drives- Parameters:
body- The request body- Returns:
- a
WorkbookNamedItem - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
post
@Nullable public WorkbookNamedItem post(@Nonnull WorkbookNamedItem body, @Nullable Consumer<NamesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to names for drives- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
WorkbookNamedItem - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Represents a collection of workbooks scoped named items (named ranges and constants). Read-only.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<NamesRequestBuilder.GetRequestConfiguration> requestConfiguration) Represents a collection of workbooks scoped named items (named ranges and constants). 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 WorkbookNamedItem body) Create new navigation property to names for drives- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull WorkbookNamedItem body, @Nullable Consumer<NamesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create new navigation property to names 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
NamesRequestBuilder
-