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

microsoft.dynamics.crm.entity.collection.request.AppconfigmasterCollectionRequest Maven / Gradle / Ivy

The newest version!
package microsoft.dynamics.crm.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.util.Optional;
import java.util.UUID;

import microsoft.dynamics.crm.entity.Appconfigmaster;
import microsoft.dynamics.crm.entity.request.AppconfiginstanceRequest;
import microsoft.dynamics.crm.entity.request.AppconfigmasterRequest;

public class AppconfigmasterCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public AppconfigmasterCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Appconfigmaster.class, cp -> new AppconfigmasterRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public AppconfiginstanceRequest appconfigmaster_appconfiginstance(UUID appconfiginstanceid) {
        return new AppconfiginstanceRequest(contextPath.addSegment("appconfigmaster_appconfiginstance").addKeys(new NameValue(appconfiginstanceid, UUID.class)), Optional.empty());
    }

    public AppconfiginstanceCollectionRequest appconfigmaster_appconfiginstance() {
        return new AppconfiginstanceCollectionRequest(contextPath.addSegment("appconfigmaster_appconfiginstance"), Optional.empty());
    }

}