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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassList the tokenLifetimePolicy objects that are assigned to a servicePrincipal.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) Provides operations to manage the tokenLifetimePolicies property of the microsoft.graph.servicePrincipal entity.count()Provides operations to count the resources in the collection.get()List the tokenLifetimePolicy objects that are assigned to a servicePrincipal.get(Consumer<TokenLifetimePoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration) List the tokenLifetimePolicy objects that are assigned to a servicePrincipal.com.microsoft.kiota.RequestInformationList the tokenLifetimePolicy objects that are assigned to a servicePrincipal.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<TokenLifetimePoliciesRequestBuilder.GetRequestConfiguration> requestConfiguration) List the tokenLifetimePolicy objects that are assigned to a servicePrincipal.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
-
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
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
@Nullable public TokenLifetimePolicyCollectionResponse get(@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
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
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
-