Class ContentTypeItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.shares.item.list.contenttypes.item.ContentTypeItemRequestBuilder
@Generated("com.microsoft.kiota")
public class ContentTypeItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the contentTypes property of the microsoft.graph.list entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classThe collection of content types present in this list.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
ConstructorsConstructorDescriptionContentTypeItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContentTypeItemRequestBuilderand sets the default values.ContentTypeItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContentTypeItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to call the associateWithHubSites method.base()Provides operations to manage the base property of the microsoft.graph.contentType entity.Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity.Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity.Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity.columns()Provides operations to manage the columns property of the microsoft.graph.contentType entity.Provides operations to call the copyToDefaultContentLocation method.voiddelete()Delete navigation property contentTypes for sharesvoiddelete(Consumer<ContentTypeItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property contentTypes for sharesget()The collection of content types present in this list.get(Consumer<ContentTypeItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of content types present in this list.Provides operations to call the isPublished method.patch(ContentType body) Update the navigation property contentTypes in sharespatch(ContentType body, Consumer<ContentTypeItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property contentTypes in sharespublish()Provides operations to call the publish method.com.microsoft.kiota.RequestInformationDelete navigation property contentTypes for sharescom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<ContentTypeItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property contentTypes for sharescom.microsoft.kiota.RequestInformationThe collection of content types present in this list.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ContentTypeItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of content types present in this list.com.microsoft.kiota.RequestInformationUpdate the navigation property contentTypes in sharescom.microsoft.kiota.RequestInformationtoPatchRequestInformation(ContentType body, Consumer<ContentTypeItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property contentTypes in sharesProvides operations to call the unpublish method.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ContentTypeItemRequestBuilder
public ContentTypeItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContentTypeItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ContentTypeItemRequestBuilder
public ContentTypeItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContentTypeItemRequestBuilderand 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
-
associateWithHubSites
Provides operations to call the associateWithHubSites method.- Returns:
- a
AssociateWithHubSitesRequestBuilder
-
base
Provides operations to manage the base property of the microsoft.graph.contentType entity.- Returns:
- a
BaseRequestBuilderEscaped
-
baseTypes
Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity.- Returns:
- a
BaseTypesRequestBuilder
-
columnLinks
Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity.- Returns:
- a
ColumnLinksRequestBuilder
-
columnPositions
Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity.- Returns:
- a
ColumnPositionsRequestBuilder
-
columns
Provides operations to manage the columns property of the microsoft.graph.contentType entity.- Returns:
- a
ColumnsRequestBuilder
-
copyToDefaultContentLocation
Provides operations to call the copyToDefaultContentLocation method.- Returns:
- a
CopyToDefaultContentLocationRequestBuilder
-
isPublished
Provides operations to call the isPublished method.- Returns:
- a
IsPublishedRequestBuilder
-
publish
Provides operations to call the publish method.- Returns:
- a
PublishRequestBuilder
-
unpublish
Provides operations to call the unpublish method.- Returns:
- a
UnpublishRequestBuilder
-
delete
public void delete()Delete navigation property contentTypes for shares- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<ContentTypeItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property contentTypes for shares- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
The collection of content types present in this list.- Returns:
- a
ContentType - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public ContentType get(@Nullable Consumer<ContentTypeItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of content types present in this list.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ContentType - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update the navigation property contentTypes in shares- Parameters:
body- The request body- Returns:
- a
ContentType - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public ContentType patch(@Nonnull ContentType body, @Nullable Consumer<ContentTypeItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property contentTypes in shares- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ContentType - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property contentTypes for shares- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ContentTypeItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property contentTypes for shares- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()The collection of content types present in this list.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ContentTypeItemRequestBuilder.GetRequestConfiguration> requestConfiguration) The collection of content types present in this list.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull ContentType body) Update the navigation property contentTypes in shares- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull ContentType body, @Nullable Consumer<ContentTypeItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property contentTypes in shares- 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
ContentTypeItemRequestBuilder
-