Class OpenShiftsRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.teams.item.schedule.openshifts.OpenShiftsRequestBuilder

@Generated("com.microsoft.kiota") public class OpenShiftsRequestBuilder extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the openShifts property of the microsoft.graph.schedule entity.
  • Constructor Details

    • OpenShiftsRequestBuilder

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

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

    • count

      @Nonnull public CountRequestBuilder count()
      Provides operations to count the resources in the collection.
      Returns:
      a CountRequestBuilder
    • byOpenShiftId

      @Nonnull public OpenShiftItemRequestBuilder byOpenShiftId(@Nonnull String openShiftId)
      Provides operations to manage the openShifts property of the microsoft.graph.schedule entity.
      Parameters:
      openShiftId - The unique identifier of openShift
      Returns:
      a OpenShiftItemRequestBuilder
    • get

      @Nullable public OpenShiftCollectionResponse get()
      List openShift objects in a team.
      Returns:
      a OpenShiftCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      @Nullable public OpenShiftCollectionResponse get(@Nullable Consumer<OpenShiftsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      List openShift objects in a team.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a OpenShiftCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public OpenShift post(@Nonnull OpenShift body)
      Create an instance of an openShift object.
      Parameters:
      body - The request body
      Returns:
      a OpenShift
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • post

      @Nullable public OpenShift post(@Nonnull OpenShift body, @Nullable Consumer<OpenShiftsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create an instance of an openShift object.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a OpenShift
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      List openShift objects in a team.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<OpenShiftsRequestBuilder.GetRequestConfiguration> requestConfiguration)
      List openShift objects in a team.
      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 OpenShift body)
      Create an instance of an openShift object.
      Parameters:
      body - The request body
      Returns:
      a RequestInformation
    • toPostRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull OpenShift body, @Nullable Consumer<OpenShiftsRequestBuilder.PostRequestConfiguration> requestConfiguration)
      Create an instance of an openShift object.
      Parameters:
      body - The request body
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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