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.
  • Constructor Details

    • ContentTypeItemRequestBuilder

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

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

    • associateWithHubSites

      @Nonnull public AssociateWithHubSitesRequestBuilder associateWithHubSites()
      Provides operations to call the associateWithHubSites method.
      Returns:
      a AssociateWithHubSitesRequestBuilder
    • base

      @Nonnull public BaseRequestBuilderEscaped base()
      Provides operations to manage the base property of the microsoft.graph.contentType entity.
      Returns:
      a BaseRequestBuilderEscaped
    • baseTypes

      @Nonnull public BaseTypesRequestBuilder baseTypes()
      Provides operations to manage the baseTypes property of the microsoft.graph.contentType entity.
      Returns:
      a BaseTypesRequestBuilder
    • columnLinks

      @Nonnull public ColumnLinksRequestBuilder columnLinks()
      Provides operations to manage the columnLinks property of the microsoft.graph.contentType entity.
      Returns:
      a ColumnLinksRequestBuilder
    • columnPositions

      @Nonnull public ColumnPositionsRequestBuilder columnPositions()
      Provides operations to manage the columnPositions property of the microsoft.graph.contentType entity.
      Returns:
      a ColumnPositionsRequestBuilder
    • columns

      @Nonnull public ColumnsRequestBuilder columns()
      Provides operations to manage the columns property of the microsoft.graph.contentType entity.
      Returns:
      a ColumnsRequestBuilder
    • copyToDefaultContentLocation

      @Nonnull public CopyToDefaultContentLocationRequestBuilder copyToDefaultContentLocation()
      Provides operations to call the copyToDefaultContentLocation method.
      Returns:
      a CopyToDefaultContentLocationRequestBuilder
    • isPublished

      @Nonnull public IsPublishedRequestBuilder isPublished()
      Provides operations to call the isPublished method.
      Returns:
      a IsPublishedRequestBuilder
    • publish

      @Nonnull public PublishRequestBuilder publish()
      Provides operations to call the publish method.
      Returns:
      a PublishRequestBuilder
    • unpublish

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

      @Nullable public ContentType 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

      @Nullable public ContentType patch(@Nonnull ContentType body)
      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 body
      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
    • 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 body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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