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

microsoft.dynamics.crm.entity.request.EntityrelationshipRequest Maven / Gradle / Ivy

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

import microsoft.dynamics.crm.entity.Entityrelationship;
import microsoft.dynamics.crm.entity.collection.request.SolutioncomponentrelationshipconfigurationCollectionRequest;

@JsonIgnoreType
public class EntityrelationshipRequest extends EntityRequest {

    public EntityrelationshipRequest(ContextPath contextPath, Optional value) {
        super(Entityrelationship.class, contextPath, value, false);
    }

    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());
    }

}