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

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

The newest version!
package microsoft.dynamics.crm.entity.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
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.FunctionRequestReturningNonCollectionUnwrapped;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Function;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;

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

import microsoft.dynamics.crm.entity.Appmodule;
import microsoft.dynamics.crm.entity.collection.request.AppconfigCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.AppmodulecomponentCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.RoleCollectionRequest;
import microsoft.dynamics.crm.entity.collection.request.ServiceplanCollectionRequest;

@JsonIgnoreType
public class AppmoduleRequest extends EntityRequest {

    public AppmoduleRequest(ContextPath contextPath, Optional value) {
        super(Appmodule.class, contextPath, value, false);
    }

    public RoleRequest appmoduleroles_association(UUID roleid) {
        return new RoleRequest(contextPath.addSegment("appmoduleroles_association").addKeys(new NameValue(roleid, UUID.class)), Optional.empty());
    }

    public RoleCollectionRequest appmoduleroles_association() {
        return new RoleCollectionRequest(
                        contextPath.addSegment("appmoduleroles_association"), Optional.empty());
    }

    public SystemuserRequest appmodule_modifiedonbehalfby() {
        return new SystemuserRequest(contextPath.addSegment("appmodule_modifiedonbehalfby"), Optional.empty());
    }

    public AppconfigRequest appmodule_appconfig(UUID appconfigid) {
        return new AppconfigRequest(contextPath.addSegment("appmodule_appconfig").addKeys(new NameValue(appconfigid, UUID.class)), Optional.empty());
    }

    public AppconfigCollectionRequest appmodule_appconfig() {
        return new AppconfigCollectionRequest(
                        contextPath.addSegment("appmodule_appconfig"), Optional.empty());
    }

    public SystemuserRequest appmodule_createdby() {
        return new SystemuserRequest(contextPath.addSegment("appmodule_createdby"), Optional.empty());
    }

    public PublisherRequest publisher_appmodule_appmodule() {
        return new PublisherRequest(contextPath.addSegment("publisher_appmodule_appmodule"), Optional.empty());
    }

    public AppmodulecomponentRequest appmodule_appmodulecomponent(UUID appmodulecomponentid) {
        return new AppmodulecomponentRequest(contextPath.addSegment("appmodule_appmodulecomponent").addKeys(new NameValue(appmodulecomponentid, UUID.class)), Optional.empty());
    }

    public AppmodulecomponentCollectionRequest appmodule_appmodulecomponent() {
        return new AppmodulecomponentCollectionRequest(
                        contextPath.addSegment("appmodule_appmodulecomponent"), Optional.empty());
    }

    public SystemuserRequest appmodule_modifiedby() {
        return new SystemuserRequest(contextPath.addSegment("appmodule_modifiedby"), Optional.empty());
    }

    public SystemuserRequest appmodule_createdonbehalfby() {
        return new SystemuserRequest(contextPath.addSegment("appmodule_createdonbehalfby"), Optional.empty());
    }

    public OrganizationRequest organization_appmodule_appmodule() {
        return new OrganizationRequest(contextPath.addSegment("organization_appmodule_appmodule"), Optional.empty());
    }

    public ServiceplanRequest serviceplan_appmodule_association(UUID serviceplanid) {
        return new ServiceplanRequest(contextPath.addSegment("serviceplan_appmodule_association").addKeys(new NameValue(serviceplanid, UUID.class)), Optional.empty());
    }

    public ServiceplanCollectionRequest serviceplan_appmodule_association() {
        return new ServiceplanCollectionRequest(
                        contextPath.addSegment("serviceplan_appmodule_association"), Optional.empty());
    }

    @Function(name = "RetrieveUnpublished")
    @JsonIgnore
    public FunctionRequestReturningNonCollectionUnwrapped retrieveUnpublished() {
        Map _parameters = ParameterMap.empty();
        return new FunctionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.RetrieveUnpublished"), Appmodule.class, _parameters);
    }

}