All Downloads are FREE. Search and download functionalities are using the official Maven repository.

odata.msgraph.client.beta.entity.collection.request.UserExperienceAnalyticsRemoteConnectionCollectionRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package odata.msgraph.client.beta.entity.collection.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.davidmoten.guavamini.Preconditions;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.CollectionPageNonEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.annotation.Function;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;

import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Optional;

import odata.msgraph.client.beta.entity.UserExperienceAnalyticsRemoteConnection;
import odata.msgraph.client.beta.entity.request.UserExperienceAnalyticsRemoteConnectionRequest;
import odata.msgraph.client.beta.enums.UserExperienceAnalyticsSummarizedBy;

public class UserExperienceAnalyticsRemoteConnectionCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public UserExperienceAnalyticsRemoteConnectionCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, UserExperienceAnalyticsRemoteConnection.class, cp -> new UserExperienceAnalyticsRemoteConnectionRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    @Function(name = "summarizeDeviceRemoteConnection")
    @JsonIgnore
    public CollectionPageNonEntityRequest summarizeDeviceRemoteConnection(UserExperienceAnalyticsSummarizedBy summarizeBy) {
        Preconditions.checkNotNull(summarizeBy, "summarizeBy cannot be null");
        Map _parameters = ParameterMap
            .put("summarizeBy", "microsoft.graph.userExperienceAnalyticsSummarizedBy", summarizeBy)
            .build();
        return CollectionPageNonEntityRequest.forFunction(this.contextPath.addActionOrFunctionSegment("microsoft.graph.summarizeDeviceRemoteConnection"), UserExperienceAnalyticsRemoteConnection.class, _parameters);
    }

}