Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
microsoft.dynamics.crm.entity.collection.request.EmailCollectionRequest Maven / Gradle / Ivy
Go to download
Java client as template for Microsoft Dynamics organisation endpoints
package microsoft.dynamics.crm.entity.collection.request;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.davidmoten.guavamini.Preconditions;
import com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.internal.Checks;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.TypedObject;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
import microsoft.dynamics.crm.entity.Attachment;
import microsoft.dynamics.crm.entity.Crmbaseentity;
import microsoft.dynamics.crm.entity.Email;
import microsoft.dynamics.crm.entity.request.ActioncardRequest;
import microsoft.dynamics.crm.entity.request.ActivitymimeattachmentRequest;
import microsoft.dynamics.crm.entity.request.ActivitypartyRequest;
import microsoft.dynamics.crm.entity.request.AnnotationRequest;
import microsoft.dynamics.crm.entity.request.AsyncoperationRequest;
import microsoft.dynamics.crm.entity.request.BulkdeletefailureRequest;
import microsoft.dynamics.crm.entity.request.ConnectionRequest;
import microsoft.dynamics.crm.entity.request.DuplicaterecordRequest;
import microsoft.dynamics.crm.entity.request.EmailRequest;
import microsoft.dynamics.crm.entity.request.PrincipalobjectattributeaccessRequest;
import microsoft.dynamics.crm.entity.request.ProcesssessionRequest;
import microsoft.dynamics.crm.entity.request.QueueitemRequest;
import microsoft.dynamics.crm.entity.request.SlakpiinstanceRequest;
import microsoft.dynamics.crm.entity.request.SyncerrorRequest;
public class EmailCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public EmailCollectionRequest(ContextPath contextPath, Optional value) {
super(contextPath, Email.class, cp -> new EmailRequest(cp, Optional.empty()), value);
this.contextPath = contextPath;
}
public SyncerrorRequest email_SyncErrors(UUID syncerrorid) {
return new SyncerrorRequest(contextPath.addSegment("Email_SyncErrors").addKeys(new NameValue(syncerrorid, UUID.class)), Optional.empty());
}
public SyncerrorCollectionRequest email_SyncErrors() {
return new SyncerrorCollectionRequest(contextPath.addSegment("Email_SyncErrors"), Optional.empty());
}
public AsyncoperationRequest email_AsyncOperations(UUID asyncoperationid) {
return new AsyncoperationRequest(contextPath.addSegment("Email_AsyncOperations").addKeys(new NameValue(asyncoperationid, UUID.class)), Optional.empty());
}
public AsyncoperationCollectionRequest email_AsyncOperations() {
return new AsyncoperationCollectionRequest(contextPath.addSegment("Email_AsyncOperations"), Optional.empty());
}
public DuplicaterecordRequest email_DuplicateBaseRecord(UUID duplicateid) {
return new DuplicaterecordRequest(contextPath.addSegment("Email_DuplicateBaseRecord").addKeys(new NameValue(duplicateid, UUID.class)), Optional.empty());
}
public DuplicaterecordCollectionRequest email_DuplicateBaseRecord() {
return new DuplicaterecordCollectionRequest(contextPath.addSegment("Email_DuplicateBaseRecord"), Optional.empty());
}
public ConnectionRequest email_connections1(UUID connectionid) {
return new ConnectionRequest(contextPath.addSegment("email_connections1").addKeys(new NameValue(connectionid, UUID.class)), Optional.empty());
}
public ConnectionCollectionRequest email_connections1() {
return new ConnectionCollectionRequest(contextPath.addSegment("email_connections1"), Optional.empty());
}
public ActivitymimeattachmentRequest email_activity_mime_attachment(UUID activitymimeattachmentid) {
return new ActivitymimeattachmentRequest(contextPath.addSegment("email_activity_mime_attachment").addKeys(new NameValue(activitymimeattachmentid, UUID.class)), Optional.empty());
}
public ActivitymimeattachmentCollectionRequest email_activity_mime_attachment() {
return new ActivitymimeattachmentCollectionRequest(contextPath.addSegment("email_activity_mime_attachment"), Optional.empty());
}
public SlakpiinstanceRequest slakpiinstance_email(UUID slakpiinstanceid) {
return new SlakpiinstanceRequest(contextPath.addSegment("slakpiinstance_email").addKeys(new NameValue(slakpiinstanceid, UUID.class)), Optional.empty());
}
public SlakpiinstanceCollectionRequest slakpiinstance_email() {
return new SlakpiinstanceCollectionRequest(contextPath.addSegment("slakpiinstance_email"), Optional.empty());
}
public ConnectionRequest email_connections2(UUID connectionid) {
return new ConnectionRequest(contextPath.addSegment("email_connections2").addKeys(new NameValue(connectionid, UUID.class)), Optional.empty());
}
public ConnectionCollectionRequest email_connections2() {
return new ConnectionCollectionRequest(contextPath.addSegment("email_connections2"), Optional.empty());
}
public AnnotationRequest email_Annotation(UUID annotationid) {
return new AnnotationRequest(contextPath.addSegment("Email_Annotation").addKeys(new NameValue(annotationid, UUID.class)), Optional.empty());
}
public AnnotationCollectionRequest email_Annotation() {
return new AnnotationCollectionRequest(contextPath.addSegment("Email_Annotation"), Optional.empty());
}
public BulkdeletefailureRequest email_BulkDeleteFailures(UUID bulkdeletefailureid) {
return new BulkdeletefailureRequest(contextPath.addSegment("Email_BulkDeleteFailures").addKeys(new NameValue(bulkdeletefailureid, UUID.class)), Optional.empty());
}
public BulkdeletefailureCollectionRequest email_BulkDeleteFailures() {
return new BulkdeletefailureCollectionRequest(contextPath.addSegment("Email_BulkDeleteFailures"), Optional.empty());
}
public ProcesssessionRequest email_ProcessSessions(UUID processsessionid) {
return new ProcesssessionRequest(contextPath.addSegment("Email_ProcessSessions").addKeys(new NameValue(processsessionid, UUID.class)), Optional.empty());
}
public ProcesssessionCollectionRequest email_ProcessSessions() {
return new ProcesssessionCollectionRequest(contextPath.addSegment("Email_ProcessSessions"), Optional.empty());
}
public ActivitypartyRequest email_activity_parties(UUID activitypartyid) {
return new ActivitypartyRequest(contextPath.addSegment("email_activity_parties").addKeys(new NameValue(activitypartyid, UUID.class)), Optional.empty());
}
public ActivitypartyCollectionRequest email_activity_parties() {
return new ActivitypartyCollectionRequest(contextPath.addSegment("email_activity_parties"), Optional.empty());
}
public ActioncardRequest email_actioncard(UUID actioncardid) {
return new ActioncardRequest(contextPath.addSegment("email_actioncard").addKeys(new NameValue(actioncardid, UUID.class)), Optional.empty());
}
public ActioncardCollectionRequest email_actioncard() {
return new ActioncardCollectionRequest(contextPath.addSegment("email_actioncard"), Optional.empty());
}
public DuplicaterecordRequest email_DuplicateMatchingRecord(UUID duplicateid) {
return new DuplicaterecordRequest(contextPath.addSegment("Email_DuplicateMatchingRecord").addKeys(new NameValue(duplicateid, UUID.class)), Optional.empty());
}
public DuplicaterecordCollectionRequest email_DuplicateMatchingRecord() {
return new DuplicaterecordCollectionRequest(contextPath.addSegment("Email_DuplicateMatchingRecord"), Optional.empty());
}
public PrincipalobjectattributeaccessRequest email_principalobjectattributeaccess(UUID principalobjectattributeaccessid) {
return new PrincipalobjectattributeaccessRequest(contextPath.addSegment("email_principalobjectattributeaccess").addKeys(new NameValue(principalobjectattributeaccessid, UUID.class)), Optional.empty());
}
public PrincipalobjectattributeaccessCollectionRequest email_principalobjectattributeaccess() {
return new PrincipalobjectattributeaccessCollectionRequest(contextPath.addSegment("email_principalobjectattributeaccess"), Optional.empty());
}
public QueueitemRequest email_QueueItem(UUID queueitemid) {
return new QueueitemRequest(contextPath.addSegment("Email_QueueItem").addKeys(new NameValue(queueitemid, UUID.class)), Optional.empty());
}
public QueueitemCollectionRequest email_QueueItem() {
return new QueueitemCollectionRequest(contextPath.addSegment("Email_QueueItem"), Optional.empty());
}
public EmailRequest email_email_parentactivityid(UUID activityid) {
return new EmailRequest(contextPath.addSegment("email_email_parentactivityid").addKeys(new NameValue(activityid, UUID.class)), Optional.empty());
}
public EmailCollectionRequest email_email_parentactivityid() {
return new EmailCollectionRequest(contextPath.addSegment("email_email_parentactivityid"), Optional.empty());
}
@Action(name = "DeliverIncomingEmail")
@JsonIgnore
public ActionRequestReturningNonCollectionUnwrapped deliverIncomingEmail(String messageId, String subject, String from, String to, String cc, String bcc, OffsetDateTime receivedOn, String submittedBy, String importance, String body, List attachments, Crmbaseentity extraProperties, Boolean validateBeforeCreate) {
Preconditions.checkNotNull(messageId, "messageId cannot be null");
Preconditions.checkNotNull(from, "from cannot be null");
Preconditions.checkNotNull(to, "to cannot be null");
Preconditions.checkNotNull(cc, "cc cannot be null");
Preconditions.checkNotNull(bcc, "bcc cannot be null");
Preconditions.checkNotNull(receivedOn, "receivedOn cannot be null");
Preconditions.checkNotNull(submittedBy, "submittedBy cannot be null");
Preconditions.checkNotNull(importance, "importance cannot be null");
Preconditions.checkNotNull(body, "body cannot be null");
Preconditions.checkNotNull(attachments, "attachments cannot be null");
Map _parameters = ParameterMap
.put("MessageId", "Edm.String", Checks.checkIsAscii(messageId))
.put("Subject", "Edm.String", Checks.checkIsAscii(subject))
.put("From", "Edm.String", Checks.checkIsAscii(from))
.put("To", "Edm.String", Checks.checkIsAscii(to))
.put("Cc", "Edm.String", Checks.checkIsAscii(cc))
.put("Bcc", "Edm.String", Checks.checkIsAscii(bcc))
.put("ReceivedOn", "Edm.DateTimeOffset", receivedOn)
.put("SubmittedBy", "Edm.String", Checks.checkIsAscii(submittedBy))
.put("Importance", "Edm.String", Checks.checkIsAscii(importance))
.put("Body", "Edm.String", Checks.checkIsAscii(body))
.put("Attachments", "Collection(Microsoft.Dynamics.CRM.attachment)", attachments)
.put("ExtraProperties", "Microsoft.Dynamics.CRM.crmbaseentity", extraProperties)
.put("ValidateBeforeCreate", "Edm.Boolean", validateBeforeCreate)
.build();
return new ActionRequestReturningNonCollectionUnwrapped(this.contextPath.addActionOrFunctionSegment("Microsoft.Dynamics.CRM.DeliverIncomingEmail"), Email.class, _parameters);
}
}