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

microsoft.graph.externalconnectors.entity.request.ExternalEntityRequest Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package microsoft.graph.externalconnectors.entity.request;

import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.EntityRequest;
import com.github.davidmoten.odata.client.NameValue;

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

import microsoft.graph.externalconnectors.collection.request.ExternalConnectionCollectionRequest;
import microsoft.graph.externalconnectors.entity.External;

@JsonIgnoreType
public class ExternalEntityRequest extends EntityRequest {

    public ExternalEntityRequest(ContextPath contextPath, Optional value) {
        super(External.class, contextPath, value, false);
    }

    public ExternalConnectionCollectionRequest connections() {
        return new ExternalConnectionCollectionRequest(
                        contextPath.addSegment("connections"), Optional.empty());
    }

    public ExternalConnectionEntityRequest connections(String id) {
        return new ExternalConnectionEntityRequest(contextPath.addSegment("connections").addKeys(new NameValue(id.toString())), Optional.empty());
    }

}