com.microsoft.graph.beta.generated.deviceappmanagement.DeviceAppManagementRequestBuilder Maven / Gradle / Ivy
package com.microsoft.graph.beta.deviceappmanagement;
import com.microsoft.graph.beta.deviceappmanagement.androidmanagedappprotections.AndroidManagedAppProtectionsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.defaultmanagedappprotections.DefaultManagedAppProtectionsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.deviceappmanagementtasks.DeviceAppManagementTasksRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.enterprisecodesigningcertificates.EnterpriseCodeSigningCertificatesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.ioslobappprovisioningconfigurations.IosLobAppProvisioningConfigurationsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.iosmanagedappprotections.IosManagedAppProtectionsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.managedapppolicies.ManagedAppPoliciesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.managedappregistrations.ManagedAppRegistrationsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.managedappstatuses.ManagedAppStatusesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.managedebookcategories.ManagedEBookCategoriesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.managedebooks.ManagedEBooksRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.mdmwindowsinformationprotectionpolicies.MdmWindowsInformationProtectionPoliciesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.mobileappcatalogpackages.MobileAppCatalogPackagesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.mobileappcategories.MobileAppCategoriesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.mobileappconfigurations.MobileAppConfigurationsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.mobileapps.MobileAppsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.policysets.PolicySetsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.symanteccodesigningcertificate.SymantecCodeSigningCertificateRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.syncmicrosoftstoreforbusinessapps.SyncMicrosoftStoreForBusinessAppsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.targetedmanagedappconfigurations.TargetedManagedAppConfigurationsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.vpptokens.VppTokensRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.wdacsupplementalpolicies.WdacSupplementalPoliciesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.windowsinformationprotectiondeviceregistrations.WindowsInformationProtectionDeviceRegistrationsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.windowsinformationprotectionpolicies.WindowsInformationProtectionPoliciesRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.windowsinformationprotectionwipeactions.WindowsInformationProtectionWipeActionsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.windowsmanagedappprotections.WindowsManagedAppProtectionsRequestBuilder;
import com.microsoft.graph.beta.deviceappmanagement.windowsmanagementapp.WindowsManagementAppRequestBuilder;
import com.microsoft.graph.beta.models.DeviceAppManagement;
import com.microsoft.graph.beta.models.odataerrors.ODataError;
import com.microsoft.kiota.BaseRequestBuilder;
import com.microsoft.kiota.BaseRequestConfiguration;
import com.microsoft.kiota.HttpMethod;
import com.microsoft.kiota.QueryParameters;
import com.microsoft.kiota.RequestAdapter;
import com.microsoft.kiota.RequestInformation;
import com.microsoft.kiota.RequestOption;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParsableFactory;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Provides operations to manage the deviceAppManagement singleton.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeviceAppManagementRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to manage the androidManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link AndroidManagedAppProtectionsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public AndroidManagedAppProtectionsRequestBuilder androidManagedAppProtections() {
return new AndroidManagedAppProtectionsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the defaultManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link DefaultManagedAppProtectionsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public DefaultManagedAppProtectionsRequestBuilder defaultManagedAppProtections() {
return new DefaultManagedAppProtectionsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the deviceAppManagementTasks property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link DeviceAppManagementTasksRequestBuilder}
*/
@jakarta.annotation.Nonnull
public DeviceAppManagementTasksRequestBuilder deviceAppManagementTasks() {
return new DeviceAppManagementTasksRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the enterpriseCodeSigningCertificates property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link EnterpriseCodeSigningCertificatesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public EnterpriseCodeSigningCertificatesRequestBuilder enterpriseCodeSigningCertificates() {
return new EnterpriseCodeSigningCertificatesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the iosLobAppProvisioningConfigurations property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link IosLobAppProvisioningConfigurationsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public IosLobAppProvisioningConfigurationsRequestBuilder iosLobAppProvisioningConfigurations() {
return new IosLobAppProvisioningConfigurationsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the iosManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link IosManagedAppProtectionsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public IosManagedAppProtectionsRequestBuilder iosManagedAppProtections() {
return new IosManagedAppProtectionsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the managedAppPolicies property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link ManagedAppPoliciesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ManagedAppPoliciesRequestBuilder managedAppPolicies() {
return new ManagedAppPoliciesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the managedAppRegistrations property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link ManagedAppRegistrationsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ManagedAppRegistrationsRequestBuilder managedAppRegistrations() {
return new ManagedAppRegistrationsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the managedAppStatuses property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link ManagedAppStatusesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ManagedAppStatusesRequestBuilder managedAppStatuses() {
return new ManagedAppStatusesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the managedEBookCategories property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link ManagedEBookCategoriesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ManagedEBookCategoriesRequestBuilder managedEBookCategories() {
return new ManagedEBookCategoriesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the managedEBooks property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link ManagedEBooksRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ManagedEBooksRequestBuilder managedEBooks() {
return new ManagedEBooksRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the mdmWindowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link MdmWindowsInformationProtectionPoliciesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public MdmWindowsInformationProtectionPoliciesRequestBuilder mdmWindowsInformationProtectionPolicies() {
return new MdmWindowsInformationProtectionPoliciesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the mobileAppCatalogPackages property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link MobileAppCatalogPackagesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public MobileAppCatalogPackagesRequestBuilder mobileAppCatalogPackages() {
return new MobileAppCatalogPackagesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the mobileAppCategories property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link MobileAppCategoriesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public MobileAppCategoriesRequestBuilder mobileAppCategories() {
return new MobileAppCategoriesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the mobileAppConfigurations property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link MobileAppConfigurationsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public MobileAppConfigurationsRequestBuilder mobileAppConfigurations() {
return new MobileAppConfigurationsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the mobileApps property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link MobileAppsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public MobileAppsRequestBuilder mobileApps() {
return new MobileAppsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the policySets property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link PolicySetsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public PolicySetsRequestBuilder policySets() {
return new PolicySetsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the symantecCodeSigningCertificate property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link SymantecCodeSigningCertificateRequestBuilder}
*/
@jakarta.annotation.Nonnull
public SymantecCodeSigningCertificateRequestBuilder symantecCodeSigningCertificate() {
return new SymantecCodeSigningCertificateRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the syncMicrosoftStoreForBusinessApps method.
* @return a {@link SyncMicrosoftStoreForBusinessAppsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public SyncMicrosoftStoreForBusinessAppsRequestBuilder syncMicrosoftStoreForBusinessApps() {
return new SyncMicrosoftStoreForBusinessAppsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the targetedManagedAppConfigurations property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link TargetedManagedAppConfigurationsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public TargetedManagedAppConfigurationsRequestBuilder targetedManagedAppConfigurations() {
return new TargetedManagedAppConfigurationsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the vppTokens property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link VppTokensRequestBuilder}
*/
@jakarta.annotation.Nonnull
public VppTokensRequestBuilder vppTokens() {
return new VppTokensRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the wdacSupplementalPolicies property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link WdacSupplementalPoliciesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public WdacSupplementalPoliciesRequestBuilder wdacSupplementalPolicies() {
return new WdacSupplementalPoliciesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the windowsInformationProtectionDeviceRegistrations property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link WindowsInformationProtectionDeviceRegistrationsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public WindowsInformationProtectionDeviceRegistrationsRequestBuilder windowsInformationProtectionDeviceRegistrations() {
return new WindowsInformationProtectionDeviceRegistrationsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the windowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link WindowsInformationProtectionPoliciesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public WindowsInformationProtectionPoliciesRequestBuilder windowsInformationProtectionPolicies() {
return new WindowsInformationProtectionPoliciesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the windowsInformationProtectionWipeActions property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link WindowsInformationProtectionWipeActionsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public WindowsInformationProtectionWipeActionsRequestBuilder windowsInformationProtectionWipeActions() {
return new WindowsInformationProtectionWipeActionsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the windowsManagedAppProtections property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link WindowsManagedAppProtectionsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public WindowsManagedAppProtectionsRequestBuilder windowsManagedAppProtections() {
return new WindowsManagedAppProtectionsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the windowsManagementApp property of the microsoft.graph.deviceAppManagement entity.
* @return a {@link WindowsManagementAppRequestBuilder}
*/
@jakarta.annotation.Nonnull
public WindowsManagementAppRequestBuilder windowsManagementApp() {
return new WindowsManagementAppRequestBuilder(pathParameters, requestAdapter);
}
/**
* Instantiates a new {@link DeviceAppManagementRequestBuilder} and sets the default values.
* @param pathParameters Path parameters for the request
* @param requestAdapter The request adapter to use to execute the requests.
*/
public DeviceAppManagementRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/deviceAppManagement{?%24expand,%24select}", pathParameters);
}
/**
* Instantiates a new {@link DeviceAppManagementRequestBuilder} and sets the default values.
* @param rawUrl The raw URL to use for the request builder.
* @param requestAdapter The request adapter to use to execute the requests.
*/
public DeviceAppManagementRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/deviceAppManagement{?%24expand,%24select}", rawUrl);
}
/**
* Get deviceAppManagement
* @return a {@link DeviceAppManagement}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
@jakarta.annotation.Nullable
public DeviceAppManagement get() {
return get(null);
}
/**
* Get deviceAppManagement
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link DeviceAppManagement}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
@jakarta.annotation.Nullable
public DeviceAppManagement get(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
final RequestInformation requestInfo = toGetRequestInformation(requestConfiguration);
final HashMap> errorMapping = new HashMap>();
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, DeviceAppManagement::createFromDiscriminatorValue);
}
/**
* Update deviceAppManagement
* @param body The request body
* @return a {@link DeviceAppManagement}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
@jakarta.annotation.Nullable
public DeviceAppManagement patch(@jakarta.annotation.Nonnull final DeviceAppManagement body) {
return patch(body, null);
}
/**
* Update deviceAppManagement
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link DeviceAppManagement}
* @throws ODataError When receiving a 4XX or 5XX status code
*/
@jakarta.annotation.Nullable
public DeviceAppManagement patch(@jakarta.annotation.Nonnull final DeviceAppManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = toPatchRequestInformation(body, requestConfiguration);
final HashMap> errorMapping = new HashMap>();
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
return this.requestAdapter.send(requestInfo, errorMapping, DeviceAppManagement::createFromDiscriminatorValue);
}
/**
* Get deviceAppManagement
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Get deviceAppManagement
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.GET, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, GetRequestConfiguration::new, x -> x.queryParameters);
requestInfo.headers.tryAdd("Accept", "application/json");
return requestInfo;
}
/**
* Update deviceAppManagement
* @param body The request body
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DeviceAppManagement body) {
return toPatchRequestInformation(body, null);
}
/**
* Update deviceAppManagement
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final DeviceAppManagement body, @jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
Objects.requireNonNull(body);
final RequestInformation requestInfo = new RequestInformation(HttpMethod.PATCH, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, PatchRequestConfiguration::new);
requestInfo.headers.tryAdd("Accept", "application/json");
requestInfo.setContentFromParsable(requestAdapter, "application/json", body);
return requestInfo;
}
/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param rawUrl The raw URL to use for the request builder.
* @return a {@link DeviceAppManagementRequestBuilder}
*/
@jakarta.annotation.Nonnull
public DeviceAppManagementRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new DeviceAppManagementRequestBuilder(rawUrl, requestAdapter);
}
/**
* Get deviceAppManagement
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetQueryParameters implements QueryParameters {
/**
* Expand related entities
*/
@jakarta.annotation.Nullable
public String[] expand;
/**
* Select properties to be returned
*/
@jakarta.annotation.Nullable
public String[] select;
/**
* Extracts the query parameters into a map for the URI template parsing.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map toQueryParameters() {
final Map allQueryParams = new HashMap();
allQueryParams.put("%24expand", expand);
allQueryParams.put("%24select", select);
return allQueryParams;
}
}
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class GetRequestConfiguration extends BaseRequestConfiguration {
/**
* Request query parameters
*/
@jakarta.annotation.Nullable
public GetQueryParameters queryParameters = new GetQueryParameters();
}
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class PatchRequestConfiguration extends BaseRequestConfiguration {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy