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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassList the tokenLifetimePolicy objects that are assigned to an application.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
ConstructorsConstructorDescriptionTokenLifetimePoliciesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTokenLifetimePoliciesRequestBuilderand sets the default values.TokenLifetimePoliciesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTokenLifetimePoliciesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyTokenLifetimePolicyId(String tokenLifetimePolicyId) Gets an item from the com.Microsoft.Graph.applications.item.tokenLifetimePolicies.item collectioncount()Provides operations to count the resources in the collection.get()List the tokenLifetimePolicy objects that are assigned to an application.get(Consumer<TokenLifetimePoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration) List the tokenLifetimePolicy objects that are assigned to an application.ref()Provides operations to manage the collection of application entities.com.microsoft.kiota.RequestInformationList the tokenLifetimePolicy objects that are assigned to an application.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<TokenLifetimePoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration) List the tokenLifetimePolicy objects that are assigned to an application.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
TokenLifetimePoliciesRequestBuilder
public TokenLifetimePoliciesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTokenLifetimePoliciesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
TokenLifetimePoliciesRequestBuilder
public TokenLifetimePoliciesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newTokenLifetimePoliciesRequestBuilderand 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
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
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
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
@Nullable public TokenLifetimePolicyCollectionResponse get(@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
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
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
-