com.microsoft.graph.beta.generated.applications.item.ApplicationItemRequestBuilder Maven / Gradle / Ivy
package com.microsoft.graph.beta.applications.item;
import com.microsoft.graph.beta.applications.item.addkey.AddKeyRequestBuilder;
import com.microsoft.graph.beta.applications.item.addpassword.AddPasswordRequestBuilder;
import com.microsoft.graph.beta.applications.item.appmanagementpolicies.AppManagementPoliciesRequestBuilder;
import com.microsoft.graph.beta.applications.item.checkmembergroups.CheckMemberGroupsRequestBuilder;
import com.microsoft.graph.beta.applications.item.checkmemberobjects.CheckMemberObjectsRequestBuilder;
import com.microsoft.graph.beta.applications.item.connectorgroup.ConnectorGroupRequestBuilder;
import com.microsoft.graph.beta.applications.item.createdonbehalfof.CreatedOnBehalfOfRequestBuilder;
import com.microsoft.graph.beta.applications.item.extensionproperties.ExtensionPropertiesRequestBuilder;
import com.microsoft.graph.beta.applications.item.federatedidentitycredentials.FederatedIdentityCredentialsRequestBuilder;
import com.microsoft.graph.beta.applications.item.federatedidentitycredentialswithname.FederatedIdentityCredentialsWithNameRequestBuilder;
import com.microsoft.graph.beta.applications.item.getmembergroups.GetMemberGroupsRequestBuilder;
import com.microsoft.graph.beta.applications.item.getmemberobjects.GetMemberObjectsRequestBuilder;
import com.microsoft.graph.beta.applications.item.homerealmdiscoverypolicies.HomeRealmDiscoveryPoliciesRequestBuilder;
import com.microsoft.graph.beta.applications.item.logo.LogoRequestBuilder;
import com.microsoft.graph.beta.applications.item.owners.OwnersRequestBuilder;
import com.microsoft.graph.beta.applications.item.removekey.RemoveKeyRequestBuilder;
import com.microsoft.graph.beta.applications.item.removepassword.RemovePasswordRequestBuilder;
import com.microsoft.graph.beta.applications.item.restore.RestoreRequestBuilder;
import com.microsoft.graph.beta.applications.item.setverifiedpublisher.SetVerifiedPublisherRequestBuilder;
import com.microsoft.graph.beta.applications.item.synchronization.SynchronizationRequestBuilder;
import com.microsoft.graph.beta.applications.item.tokenissuancepolicies.TokenIssuancePoliciesRequestBuilder;
import com.microsoft.graph.beta.applications.item.tokenlifetimepolicies.TokenLifetimePoliciesRequestBuilder;
import com.microsoft.graph.beta.applications.item.unsetverifiedpublisher.UnsetVerifiedPublisherRequestBuilder;
import com.microsoft.graph.beta.models.Application;
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 collection of application entities.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ApplicationItemRequestBuilder extends BaseRequestBuilder {
/**
* Provides operations to call the addKey method.
* @return a {@link AddKeyRequestBuilder}
*/
@jakarta.annotation.Nonnull
public AddKeyRequestBuilder addKey() {
return new AddKeyRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the addPassword method.
* @return a {@link AddPasswordRequestBuilder}
*/
@jakarta.annotation.Nonnull
public AddPasswordRequestBuilder addPassword() {
return new AddPasswordRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the appManagementPolicies property of the microsoft.graph.application entity.
* @return a {@link AppManagementPoliciesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public AppManagementPoliciesRequestBuilder appManagementPolicies() {
return new AppManagementPoliciesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the checkMemberGroups method.
* @return a {@link CheckMemberGroupsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public CheckMemberGroupsRequestBuilder checkMemberGroups() {
return new CheckMemberGroupsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the checkMemberObjects method.
* @return a {@link CheckMemberObjectsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public CheckMemberObjectsRequestBuilder checkMemberObjects() {
return new CheckMemberObjectsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the connectorGroup property of the microsoft.graph.application entity.
* @return a {@link ConnectorGroupRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ConnectorGroupRequestBuilder connectorGroup() {
return new ConnectorGroupRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the createdOnBehalfOf property of the microsoft.graph.application entity.
* @return a {@link CreatedOnBehalfOfRequestBuilder}
*/
@jakarta.annotation.Nonnull
public CreatedOnBehalfOfRequestBuilder createdOnBehalfOf() {
return new CreatedOnBehalfOfRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the extensionProperties property of the microsoft.graph.application entity.
* @return a {@link ExtensionPropertiesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ExtensionPropertiesRequestBuilder extensionProperties() {
return new ExtensionPropertiesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity.
* @return a {@link FederatedIdentityCredentialsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public FederatedIdentityCredentialsRequestBuilder federatedIdentityCredentials() {
return new FederatedIdentityCredentialsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the getMemberGroups method.
* @return a {@link GetMemberGroupsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public GetMemberGroupsRequestBuilder getMemberGroups() {
return new GetMemberGroupsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the getMemberObjects method.
* @return a {@link GetMemberObjectsRequestBuilder}
*/
@jakarta.annotation.Nonnull
public GetMemberObjectsRequestBuilder getMemberObjects() {
return new GetMemberObjectsRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the homeRealmDiscoveryPolicies property of the microsoft.graph.application entity.
* @return a {@link HomeRealmDiscoveryPoliciesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public HomeRealmDiscoveryPoliciesRequestBuilder homeRealmDiscoveryPolicies() {
return new HomeRealmDiscoveryPoliciesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the media for the application entity.
* @return a {@link LogoRequestBuilder}
*/
@jakarta.annotation.Nonnull
public LogoRequestBuilder logo() {
return new LogoRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the owners property of the microsoft.graph.application entity.
* @return a {@link OwnersRequestBuilder}
*/
@jakarta.annotation.Nonnull
public OwnersRequestBuilder owners() {
return new OwnersRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the removeKey method.
* @return a {@link RemoveKeyRequestBuilder}
*/
@jakarta.annotation.Nonnull
public RemoveKeyRequestBuilder removeKey() {
return new RemoveKeyRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the removePassword method.
* @return a {@link RemovePasswordRequestBuilder}
*/
@jakarta.annotation.Nonnull
public RemovePasswordRequestBuilder removePassword() {
return new RemovePasswordRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the restore method.
* @return a {@link RestoreRequestBuilder}
*/
@jakarta.annotation.Nonnull
public RestoreRequestBuilder restore() {
return new RestoreRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the setVerifiedPublisher method.
* @return a {@link SetVerifiedPublisherRequestBuilder}
*/
@jakarta.annotation.Nonnull
public SetVerifiedPublisherRequestBuilder setVerifiedPublisher() {
return new SetVerifiedPublisherRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the synchronization property of the microsoft.graph.application entity.
* @return a {@link SynchronizationRequestBuilder}
*/
@jakarta.annotation.Nonnull
public SynchronizationRequestBuilder synchronization() {
return new SynchronizationRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the tokenIssuancePolicies property of the microsoft.graph.application entity.
* @return a {@link TokenIssuancePoliciesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public TokenIssuancePoliciesRequestBuilder tokenIssuancePolicies() {
return new TokenIssuancePoliciesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to manage the tokenLifetimePolicies property of the microsoft.graph.application entity.
* @return a {@link TokenLifetimePoliciesRequestBuilder}
*/
@jakarta.annotation.Nonnull
public TokenLifetimePoliciesRequestBuilder tokenLifetimePolicies() {
return new TokenLifetimePoliciesRequestBuilder(pathParameters, requestAdapter);
}
/**
* Provides operations to call the unsetVerifiedPublisher method.
* @return a {@link UnsetVerifiedPublisherRequestBuilder}
*/
@jakarta.annotation.Nonnull
public UnsetVerifiedPublisherRequestBuilder unsetVerifiedPublisher() {
return new UnsetVerifiedPublisherRequestBuilder(pathParameters, requestAdapter);
}
/**
* Instantiates a new {@link ApplicationItemRequestBuilder} and sets the default values.
* @param pathParameters Path parameters for the request
* @param requestAdapter The request adapter to use to execute the requests.
*/
public ApplicationItemRequestBuilder(@jakarta.annotation.Nonnull final HashMap pathParameters, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/applications/{application%2Did}{?%24expand,%24select}", pathParameters);
}
/**
* Instantiates a new {@link ApplicationItemRequestBuilder} 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 ApplicationItemRequestBuilder(@jakarta.annotation.Nonnull final String rawUrl, @jakarta.annotation.Nonnull final RequestAdapter requestAdapter) {
super(requestAdapter, "{+baseurl}/applications/{application%2Did}{?%24expand,%24select}", rawUrl);
}
/**
* Deletes an application. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted.
* @throws ODataError When receiving a 4XX or 5XX status code
* @see Find more info here
*/
public void delete() {
delete(null);
}
/**
* Deletes an application. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws ODataError When receiving a 4XX or 5XX status code
* @see Find more info here
*/
public void delete(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
final RequestInformation requestInfo = toDeleteRequestInformation(requestConfiguration);
final HashMap> errorMapping = new HashMap>();
errorMapping.put("XXX", ODataError::createFromDiscriminatorValue);
this.requestAdapter.sendPrimitive(requestInfo, errorMapping, Void.class);
}
/**
* Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity.
* @param name Alternate key of federatedIdentityCredential
* @return a {@link FederatedIdentityCredentialsWithNameRequestBuilder}
*/
@jakarta.annotation.Nonnull
public FederatedIdentityCredentialsWithNameRequestBuilder federatedIdentityCredentialsWithName(@jakarta.annotation.Nonnull final String name) {
Objects.requireNonNull(name);
return new FederatedIdentityCredentialsWithNameRequestBuilder(pathParameters, requestAdapter, name);
}
/**
* Get the properties and relationships of an application object.
* @return a {@link Application}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see Find more info here
*/
@jakarta.annotation.Nullable
public Application get() {
return get(null);
}
/**
* Get the properties and relationships of an application object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link Application}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see Find more info here
*/
@jakarta.annotation.Nullable
public Application 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, Application::createFromDiscriminatorValue);
}
/**
* Create a new application object if it doesn't exist, or update the properties of an existing application object.
* @param body The request body
* @return a {@link Application}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see Find more info here
*/
@jakarta.annotation.Nullable
public Application patch(@jakarta.annotation.Nonnull final Application body) {
return patch(body, null);
}
/**
* Create a new application object if it doesn't exist, or update the properties of an existing application object.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link Application}
* @throws ODataError When receiving a 4XX or 5XX status code
* @see Find more info here
*/
@jakarta.annotation.Nullable
public Application patch(@jakarta.annotation.Nonnull final Application 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, Application::createFromDiscriminatorValue);
}
/**
* Deletes an application. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toDeleteRequestInformation() {
return toDeleteRequestInformation(null);
}
/**
* Deletes an application. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toDeleteRequestInformation(@jakarta.annotation.Nullable final java.util.function.Consumer requestConfiguration) {
final RequestInformation requestInfo = new RequestInformation(HttpMethod.DELETE, urlTemplate, pathParameters);
requestInfo.configure(requestConfiguration, DeleteRequestConfiguration::new);
requestInfo.headers.tryAdd("Accept", "application/json");
return requestInfo;
}
/**
* Get the properties and relationships of an application object.
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toGetRequestInformation() {
return toGetRequestInformation(null);
}
/**
* Get the properties and relationships of an application object.
* @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;
}
/**
* Create a new application object if it doesn't exist, or update the properties of an existing application object.
* @param body The request body
* @return a {@link RequestInformation}
*/
@jakarta.annotation.Nonnull
public RequestInformation toPatchRequestInformation(@jakarta.annotation.Nonnull final Application body) {
return toPatchRequestInformation(body, null);
}
/**
* Create a new application object if it doesn't exist, or update the properties of an existing application object.
* @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 Application 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 ApplicationItemRequestBuilder}
*/
@jakarta.annotation.Nonnull
public ApplicationItemRequestBuilder withUrl(@jakarta.annotation.Nonnull final String rawUrl) {
Objects.requireNonNull(rawUrl);
return new ApplicationItemRequestBuilder(rawUrl, requestAdapter);
}
/**
* Configuration for the request such as headers, query parameters, and middleware options.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class DeleteRequestConfiguration extends BaseRequestConfiguration {
}
/**
* Get the properties and relationships of an application object.
*/
@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