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

com.aliyun.dingtalkcrm_1_0.models.CreateCustomerRequest Maven / Gradle / Ivy

There is a newer version: 2.1.67
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkcrm_1_0.models;

import com.aliyun.tea.*;

public class CreateCustomerRequest extends TeaModel {
    @NameInMap("contacts")
    public java.util.List contacts;

    /**
     * 

This parameter is required.

* * example: *

manager123

*/ @NameInMap("creatorUserId") public String creatorUserId; /** *

This parameter is required.

*/ @NameInMap("data") public java.util.Map data; @NameInMap("extendData") public java.util.Map extendData; /** * example: *

xxxx-xxxx-xxxx-xxxx

* * if can be null: *

true

*/ @NameInMap("instanceId") public String instanceId; /** * example: *

crm_customer

* * if can be null: *

true

*/ @NameInMap("objectType") public String objectType; @NameInMap("permission") public CreateCustomerRequestPermission permission; /** *

This parameter is required.

*/ @NameInMap("saveOption") public CreateCustomerRequestSaveOption saveOption; public static CreateCustomerRequest build(java.util.Map map) throws Exception { CreateCustomerRequest self = new CreateCustomerRequest(); return TeaModel.build(map, self); } public CreateCustomerRequest setContacts(java.util.List contacts) { this.contacts = contacts; return this; } public java.util.List getContacts() { return this.contacts; } public CreateCustomerRequest setCreatorUserId(String creatorUserId) { this.creatorUserId = creatorUserId; return this; } public String getCreatorUserId() { return this.creatorUserId; } public CreateCustomerRequest setData(java.util.Map data) { this.data = data; return this; } public java.util.Map getData() { return this.data; } public CreateCustomerRequest setExtendData(java.util.Map extendData) { this.extendData = extendData; return this; } public java.util.Map getExtendData() { return this.extendData; } public CreateCustomerRequest setInstanceId(String instanceId) { this.instanceId = instanceId; return this; } public String getInstanceId() { return this.instanceId; } public CreateCustomerRequest setObjectType(String objectType) { this.objectType = objectType; return this; } public String getObjectType() { return this.objectType; } public CreateCustomerRequest setPermission(CreateCustomerRequestPermission permission) { this.permission = permission; return this; } public CreateCustomerRequestPermission getPermission() { return this.permission; } public CreateCustomerRequest setSaveOption(CreateCustomerRequestSaveOption saveOption) { this.saveOption = saveOption; return this; } public CreateCustomerRequestSaveOption getSaveOption() { return this.saveOption; } public static class CreateCustomerRequestContacts extends TeaModel { /** *

This parameter is required.

*/ @NameInMap("data") public java.util.Map data; @NameInMap("extendData") public java.util.Map extendData; public static CreateCustomerRequestContacts build(java.util.Map map) throws Exception { CreateCustomerRequestContacts self = new CreateCustomerRequestContacts(); return TeaModel.build(map, self); } public CreateCustomerRequestContacts setData(java.util.Map data) { this.data = data; return this; } public java.util.Map getData() { return this.data; } public CreateCustomerRequestContacts setExtendData(java.util.Map extendData) { this.extendData = extendData; return this; } public java.util.Map getExtendData() { return this.extendData; } } public static class CreateCustomerRequestPermission extends TeaModel { @NameInMap("ownerStaffIds") public java.util.List ownerStaffIds; @NameInMap("participantStaffIds") public java.util.List participantStaffIds; public static CreateCustomerRequestPermission build(java.util.Map map) throws Exception { CreateCustomerRequestPermission self = new CreateCustomerRequestPermission(); return TeaModel.build(map, self); } public CreateCustomerRequestPermission setOwnerStaffIds(java.util.List ownerStaffIds) { this.ownerStaffIds = ownerStaffIds; return this; } public java.util.List getOwnerStaffIds() { return this.ownerStaffIds; } public CreateCustomerRequestPermission setParticipantStaffIds(java.util.List participantStaffIds) { this.participantStaffIds = participantStaffIds; return this; } public java.util.List getParticipantStaffIds() { return this.participantStaffIds; } } public static class CreateCustomerRequestSaveOption extends TeaModel { /** * example: *

APPEND_CONTACT_FORCE

*/ @NameInMap("customerExistedPolicy") public String customerExistedPolicy; /** * example: *

false

*/ @NameInMap("skipDuplicateCheck") public Boolean skipDuplicateCheck; /** * example: *

0

*/ @NameInMap("subscribePolicy") public Long subscribePolicy; /** * example: *

true

*/ @NameInMap("throwExceptionWhileSavingContactFailed") public Boolean throwExceptionWhileSavingContactFailed; public static CreateCustomerRequestSaveOption build(java.util.Map map) throws Exception { CreateCustomerRequestSaveOption self = new CreateCustomerRequestSaveOption(); return TeaModel.build(map, self); } public CreateCustomerRequestSaveOption setCustomerExistedPolicy(String customerExistedPolicy) { this.customerExistedPolicy = customerExistedPolicy; return this; } public String getCustomerExistedPolicy() { return this.customerExistedPolicy; } public CreateCustomerRequestSaveOption setSkipDuplicateCheck(Boolean skipDuplicateCheck) { this.skipDuplicateCheck = skipDuplicateCheck; return this; } public Boolean getSkipDuplicateCheck() { return this.skipDuplicateCheck; } public CreateCustomerRequestSaveOption setSubscribePolicy(Long subscribePolicy) { this.subscribePolicy = subscribePolicy; return this; } public Long getSubscribePolicy() { return this.subscribePolicy; } public CreateCustomerRequestSaveOption setThrowExceptionWhileSavingContactFailed(Boolean throwExceptionWhileSavingContactFailed) { this.throwExceptionWhileSavingContactFailed = throwExceptionWhileSavingContactFailed; return this; } public Boolean getThrowExceptionWhileSavingContactFailed() { return this.throwExceptionWhileSavingContactFailed; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy