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

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

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.Recurrencerule;
import microsoft.dynamics.crm.entity.request.RecurrenceruleRequest;
import microsoft.dynamics.crm.entity.request.RecurringappointmentmasterRequest;

public class RecurrenceruleCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public RecurrenceruleCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Recurrencerule.class, cp -> new RecurrenceruleRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public RecurringappointmentmasterRequest recurrencerule_recurringappointmentmaster(UUID activityid) {
        return new RecurringappointmentmasterRequest(contextPath.addSegment("recurrencerule_recurringappointmentmaster").addKeys(new NameValue(activityid, UUID.class)), Optional.empty());
    }

    public RecurringappointmentmasterCollectionRequest recurrencerule_recurringappointmentmaster() {
        return new RecurringappointmentmasterCollectionRequest(contextPath.addSegment("recurrencerule_recurringappointmentmaster"), Optional.empty());
    }

}