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

microsoft.dynamics.crm.entity.collection.request.EntityrelationshipCollectionRequest 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.Entityrelationship;
import microsoft.dynamics.crm.entity.request.EntityrelationshipRequest;
import microsoft.dynamics.crm.entity.request.SolutioncomponentrelationshipconfigurationRequest;

public class EntityrelationshipCollectionRequest extends CollectionPageEntityRequest{

    protected ContextPath contextPath;

    public EntityrelationshipCollectionRequest(ContextPath contextPath, Optional value) {
        super(contextPath, Entityrelationship.class, cp -> new EntityrelationshipRequest(cp, Optional.empty()), value);
        this.contextPath = contextPath;
    }

    public SolutioncomponentrelationshipconfigurationRequest entityrelationship_config(UUID solutioncomponentrelationshipconfigurationid) {
        return new SolutioncomponentrelationshipconfigurationRequest(contextPath.addSegment("entityrelationship_config").addKeys(new NameValue(solutioncomponentrelationshipconfigurationid, UUID.class)), Optional.empty());
    }

    public SolutioncomponentrelationshipconfigurationCollectionRequest entityrelationship_config() {
        return new SolutioncomponentrelationshipconfigurationCollectionRequest(contextPath.addSegment("entityrelationship_config"), Optional.empty());
    }

}