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

odata.msgraph.client.security.entity.collection.request.VulnerabilityCollectionRequest Maven / Gradle / Ivy

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

import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;

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

import odata.msgraph.client.security.entity.Vulnerability;
import odata.msgraph.client.security.entity.request.ArticleRequest;
import odata.msgraph.client.security.entity.request.VulnerabilityComponentRequest;
import odata.msgraph.client.security.entity.request.VulnerabilityRequest;

public class VulnerabilityCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public VulnerabilityCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Vulnerability.class, cp -> new VulnerabilityRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public ArticleRequest articles(String id) {
        return new ArticleRequest(contextPath.addSegment("articles").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public ArticleCollectionRequest articles() {
        return new ArticleCollectionRequest(contextPath.addSegment("articles"), Optional.empty());
    }

    public VulnerabilityComponentRequest components(String id) {
        return new VulnerabilityComponentRequest(contextPath.addSegment("components").addKeys(new NameValue(id, String.class)), Optional.empty());
    }

    public VulnerabilityComponentCollectionRequest components() {
        return new VulnerabilityComponentCollectionRequest(contextPath.addSegment("components"), Optional.empty());
    }

}