Class ContentTypeItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.sites.item.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.site entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRetrieve the metadata for a content type in a site or a 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()Remove a content type from a list or a site.voiddelete(Consumer<ContentTypeItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove a content type from a list or a site.get()Retrieve the metadata for a content type in a site or a list.get(Consumer<ContentTypeItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the metadata for a content type in a site or a list.Provides operations to call the isPublished method.patch(ContentType body) Update a content type.patch(ContentType body, Consumer<ContentTypeItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a content type.publish()Provides operations to call the publish method.com.microsoft.kiota.RequestInformationRemove a content type from a list or a site.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<ContentTypeItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove a content type from a list or a site.com.microsoft.kiota.RequestInformationRetrieve the metadata for a content type in a site or a list.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ContentTypeItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the metadata for a content type in a site or a list.com.microsoft.kiota.RequestInformationUpdate a content type.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(ContentType body, Consumer<ContentTypeItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a content type.Provides 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()Remove a content type from a list or a site.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<ContentTypeItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove a content type from a list or a site.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
Retrieve the metadata for a content type in a site or a list.- Returns:
- a
ContentType - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public ContentType get(@Nullable Consumer<ContentTypeItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the metadata for a content type in a site or a 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- See Also:
-
patch
Update a content type.- Parameters:
body- The request body- Returns:
- a
ContentType - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public ContentType patch(@Nonnull ContentType body, @Nullable Consumer<ContentTypeItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update a content type.- 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- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Remove a content type from a list or a site.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<ContentTypeItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Remove a content type from a list or a site.- 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()Retrieve the metadata for a content type in a site or a list.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ContentTypeItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the metadata for a content type in a site or a 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 a content type.- 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 a content type.- 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
-