Class TokenLifetimePoliciesRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.applications.item.tokenlifetimepolicies.TokenLifetimePoliciesRequestBuilder

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

    • TokenLifetimePoliciesRequestBuilder

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

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

      @Nonnull public RefRequestBuilder ref()
      Provides operations to manage the collection of application entities.
      Returns:
      a RefRequestBuilder
    • byTokenLifetimePolicyId

      @Nonnull public TokenLifetimePolicyItemRequestBuilder byTokenLifetimePolicyId(@Nonnull String tokenLifetimePolicyId)
      Gets an item from the com.Microsoft.Graph.applications.item.tokenLifetimePolicies.item collection
      Parameters:
      tokenLifetimePolicyId - The unique identifier of tokenLifetimePolicy
      Returns:
      a TokenLifetimePolicyItemRequestBuilder
    • get

      @Nullable public TokenLifetimePolicyCollectionResponse get()
      List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application.
      Returns:
      a TokenLifetimePolicyCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • get

      List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a TokenLifetimePolicyCollectionResponse
      Throws:
      ODataError - When receiving a 4XX or 5XX status code
      See Also:
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()
      List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<TokenLifetimePoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration)
      List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application.
      Parameters:
      requestConfiguration - Configuration for the request such as headers, query parameters, and middleware options.
      Returns:
      a RequestInformation
    • withUrl

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