Class TokenLifetimePoliciesRequestBuilder

java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.serviceprincipals.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.servicePrincipal 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
    • byTokenLifetimePolicyId

      @Nonnull public TokenLifetimePolicyItemRequestBuilder byTokenLifetimePolicyId(@Nonnull String tokenLifetimePolicyId)
      Provides operations to manage the tokenLifetimePolicies property of the microsoft.graph.servicePrincipal entity.
      Parameters:
      tokenLifetimePolicyId - The unique identifier of tokenLifetimePolicy
      Returns:
      a TokenLifetimePolicyItemRequestBuilder
    • get

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

      List the tokenLifetimePolicy objects that are assigned to a servicePrincipal. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to a service principal.
      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 a servicePrincipal. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to a service principal.
      Returns:
      a RequestInformation
    • toGetRequestInformation

      @Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<TokenLifetimePoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration)
      List the tokenLifetimePolicy objects that are assigned to a servicePrincipal. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to a service principal.
      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