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

microsoft.dynamics.crm.complex.ComplexEntityMetadata Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
package microsoft.dynamics.crm.complex;

import com.fasterxml.jackson.annotation.JacksonInject;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.odata.client.CollectionPage;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.HttpRequestOptions;
import com.github.davidmoten.odata.client.ODataType;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.Checks;
import com.github.davidmoten.odata.client.internal.UnmappedFields;

import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Optional;

import microsoft.dynamics.crm.enums.OwnershipTypes;
import microsoft.dynamics.crm.schema.SchemaInfo;

@JsonPropertyOrder({
    "@odata.type", 
    "ActivityTypeMask", 
    "Attributes", 
    "AutoRouteToOwnerQueue", 
    "CanTriggerWorkflow", 
    "Description", 
    "DisplayCollectionName", 
    "DisplayName", 
    "EntityHelpUrlEnabled", 
    "EntityHelpUrl", 
    "IsDocumentManagementEnabled", 
    "IsOneNoteIntegrationEnabled", 
    "IsInteractionCentricEnabled", 
    "IsKnowledgeManagementEnabled", 
    "IsSLAEnabled", 
    "IsBPFEntity", 
    "IsDocumentRecommendationsEnabled", 
    "IsMSTeamsIntegrationEnabled", 
    "SettingOf", 
    "DataProviderId", 
    "DataSourceId", 
    "AutoCreateAccessTeams", 
    "IsActivity", 
    "IsActivityParty", 
    "IsAuditEnabled", 
    "IsAvailableOffline", 
    "IsChildEntity", 
    "IsAIRUpdated", 
    "IsValidForQueue", 
    "IsConnectionsEnabled", 
    "IconLargeName", 
    "IconMediumName", 
    "IconSmallName", 
    "IconVectorName", 
    "IsCustomEntity", 
    "IsBusinessProcessEnabled", 
    "IsCustomizable", 
    "IsRenameable", 
    "IsMappable", 
    "IsDuplicateDetectionEnabled", 
    "CanCreateAttributes", 
    "CanCreateForms", 
    "CanCreateViews", 
    "CanCreateCharts", 
    "CanBeRelatedEntityInRelationship", 
    "CanBePrimaryEntityInRelationship", 
    "CanBeInManyToMany", 
    "CanBeInCustomEntityAssociation", 
    "CanEnableSyncToExternalSearchIndex", 
    "SyncToExternalSearchIndex", 
    "CanModifyAdditionalSettings", 
    "CanChangeHierarchicalRelationship", 
    "IsOptimisticConcurrencyEnabled", 
    "ChangeTrackingEnabled", 
    "CanChangeTrackingBeEnabled", 
    "IsImportable", 
    "IsIntersect", 
    "IsMailMergeEnabled", 
    "IsManaged", 
    "IsEnabledForCharts", 
    "IsEnabledForTrace", 
    "IsValidForAdvancedFind", 
    "IsVisibleInMobile", 
    "IsVisibleInMobileClient", 
    "IsReadOnlyInMobileClient", 
    "IsOfflineInMobileClient", 
    "DaysSinceRecordLastModified", 
    "MobileOfflineFilters", 
    "IsReadingPaneEnabled", 
    "IsQuickCreateEnabled", 
    "LogicalName", 
    "ManyToManyRelationships", 
    "ManyToOneRelationships", 
    "OneToManyRelationships", 
    "ObjectTypeCode", 
    "OwnershipType", 
    "PrimaryNameAttribute", 
    "PrimaryImageAttribute", 
    "PrimaryIdAttribute", 
    "Privileges", 
    "RecurrenceBaseEntityLogicalName", 
    "ReportViewName", 
    "SchemaName", 
    "IntroducedVersion", 
    "IsStateModelAware", 
    "EnforceStateTransitions", 
    "ExternalName", 
    "EntityColor", 
    "Keys", 
    "LogicalCollectionName", 
    "ExternalCollectionName", 
    "CollectionSchemaName", 
    "EntitySetName", 
    "IsEnabledForExternalChannels", 
    "IsPrivate", 
    "UsesBusinessDataLabelTable", 
    "IsLogicalEntity", 
    "HasNotes", 
    "HasActivities", 
    "HasFeedback", 
    "IsSolutionAware", 
    "Settings", 
    "CreatedOn", 
    "ModifiedOn", 
    "MetadataId", 
    "HasChanged"})
@JsonInclude(Include.NON_NULL)
public class ComplexEntityMetadata implements ODataType {

    @JacksonInject
    @JsonIgnore
    protected ContextPath contextPath;

    @JacksonInject
    @JsonIgnore
    protected UnmappedFields unmappedFields;

    @JsonProperty("@odata.type")
    protected String odataType;

    @JsonProperty("ActivityTypeMask")
    protected Integer activityTypeMask;

    @JsonProperty("Attributes")
    protected List attributes;

    @JsonProperty("Attributes@nextLink")
    protected String attributesNextLink;

    @JsonProperty("AutoRouteToOwnerQueue")
    protected Boolean autoRouteToOwnerQueue;

    @JsonProperty("CanTriggerWorkflow")
    protected Boolean canTriggerWorkflow;

    @JsonProperty("Description")
    protected Label description;

    @JsonProperty("DisplayCollectionName")
    protected Label displayCollectionName;

    @JsonProperty("DisplayName")
    protected Label displayName;

    @JsonProperty("EntityHelpUrlEnabled")
    protected Boolean entityHelpUrlEnabled;

    @JsonProperty("EntityHelpUrl")
    protected String entityHelpUrl;

    @JsonProperty("IsDocumentManagementEnabled")
    protected Boolean isDocumentManagementEnabled;

    @JsonProperty("IsOneNoteIntegrationEnabled")
    protected Boolean isOneNoteIntegrationEnabled;

    @JsonProperty("IsInteractionCentricEnabled")
    protected Boolean isInteractionCentricEnabled;

    @JsonProperty("IsKnowledgeManagementEnabled")
    protected Boolean isKnowledgeManagementEnabled;

    @JsonProperty("IsSLAEnabled")
    protected Boolean isSLAEnabled;

    @JsonProperty("IsBPFEntity")
    protected Boolean isBPFEntity;

    @JsonProperty("IsDocumentRecommendationsEnabled")
    protected Boolean isDocumentRecommendationsEnabled;

    @JsonProperty("IsMSTeamsIntegrationEnabled")
    protected Boolean isMSTeamsIntegrationEnabled;

    @JsonProperty("SettingOf")
    protected String settingOf;

    @JsonProperty("DataProviderId")
    protected String dataProviderId;

    @JsonProperty("DataSourceId")
    protected String dataSourceId;

    @JsonProperty("AutoCreateAccessTeams")
    protected Boolean autoCreateAccessTeams;

    @JsonProperty("IsActivity")
    protected Boolean isActivity;

    @JsonProperty("IsActivityParty")
    protected Boolean isActivityParty;

    @JsonProperty("IsAuditEnabled")
    protected BooleanManagedProperty isAuditEnabled;

    @JsonProperty("IsAvailableOffline")
    protected Boolean isAvailableOffline;

    @JsonProperty("IsChildEntity")
    protected Boolean isChildEntity;

    @JsonProperty("IsAIRUpdated")
    protected Boolean isAIRUpdated;

    @JsonProperty("IsValidForQueue")
    protected BooleanManagedProperty isValidForQueue;

    @JsonProperty("IsConnectionsEnabled")
    protected BooleanManagedProperty isConnectionsEnabled;

    @JsonProperty("IconLargeName")
    protected String iconLargeName;

    @JsonProperty("IconMediumName")
    protected String iconMediumName;

    @JsonProperty("IconSmallName")
    protected String iconSmallName;

    @JsonProperty("IconVectorName")
    protected String iconVectorName;

    @JsonProperty("IsCustomEntity")
    protected Boolean isCustomEntity;

    @JsonProperty("IsBusinessProcessEnabled")
    protected Boolean isBusinessProcessEnabled;

    @JsonProperty("IsCustomizable")
    protected BooleanManagedProperty isCustomizable;

    @JsonProperty("IsRenameable")
    protected BooleanManagedProperty isRenameable;

    @JsonProperty("IsMappable")
    protected BooleanManagedProperty isMappable;

    @JsonProperty("IsDuplicateDetectionEnabled")
    protected BooleanManagedProperty isDuplicateDetectionEnabled;

    @JsonProperty("CanCreateAttributes")
    protected BooleanManagedProperty canCreateAttributes;

    @JsonProperty("CanCreateForms")
    protected BooleanManagedProperty canCreateForms;

    @JsonProperty("CanCreateViews")
    protected BooleanManagedProperty canCreateViews;

    @JsonProperty("CanCreateCharts")
    protected BooleanManagedProperty canCreateCharts;

    @JsonProperty("CanBeRelatedEntityInRelationship")
    protected BooleanManagedProperty canBeRelatedEntityInRelationship;

    @JsonProperty("CanBePrimaryEntityInRelationship")
    protected BooleanManagedProperty canBePrimaryEntityInRelationship;

    @JsonProperty("CanBeInManyToMany")
    protected BooleanManagedProperty canBeInManyToMany;

    @JsonProperty("CanBeInCustomEntityAssociation")
    protected BooleanManagedProperty canBeInCustomEntityAssociation;

    @JsonProperty("CanEnableSyncToExternalSearchIndex")
    protected BooleanManagedProperty canEnableSyncToExternalSearchIndex;

    @JsonProperty("SyncToExternalSearchIndex")
    protected Boolean syncToExternalSearchIndex;

    @JsonProperty("CanModifyAdditionalSettings")
    protected BooleanManagedProperty canModifyAdditionalSettings;

    @JsonProperty("CanChangeHierarchicalRelationship")
    protected BooleanManagedProperty canChangeHierarchicalRelationship;

    @JsonProperty("IsOptimisticConcurrencyEnabled")
    protected Boolean isOptimisticConcurrencyEnabled;

    @JsonProperty("ChangeTrackingEnabled")
    protected Boolean changeTrackingEnabled;

    @JsonProperty("CanChangeTrackingBeEnabled")
    protected BooleanManagedProperty canChangeTrackingBeEnabled;

    @JsonProperty("IsImportable")
    protected Boolean isImportable;

    @JsonProperty("IsIntersect")
    protected Boolean isIntersect;

    @JsonProperty("IsMailMergeEnabled")
    protected BooleanManagedProperty isMailMergeEnabled;

    @JsonProperty("IsManaged")
    protected Boolean isManaged;

    @JsonProperty("IsEnabledForCharts")
    protected Boolean isEnabledForCharts;

    @JsonProperty("IsEnabledForTrace")
    protected Boolean isEnabledForTrace;

    @JsonProperty("IsValidForAdvancedFind")
    protected Boolean isValidForAdvancedFind;

    @JsonProperty("IsVisibleInMobile")
    protected BooleanManagedProperty isVisibleInMobile;

    @JsonProperty("IsVisibleInMobileClient")
    protected BooleanManagedProperty isVisibleInMobileClient;

    @JsonProperty("IsReadOnlyInMobileClient")
    protected BooleanManagedProperty isReadOnlyInMobileClient;

    @JsonProperty("IsOfflineInMobileClient")
    protected BooleanManagedProperty isOfflineInMobileClient;

    @JsonProperty("DaysSinceRecordLastModified")
    protected Integer daysSinceRecordLastModified;

    @JsonProperty("MobileOfflineFilters")
    protected String mobileOfflineFilters;

    @JsonProperty("IsReadingPaneEnabled")
    protected Boolean isReadingPaneEnabled;

    @JsonProperty("IsQuickCreateEnabled")
    protected Boolean isQuickCreateEnabled;

    @JsonProperty("LogicalName")
    protected String logicalName;

    @JsonProperty("ManyToManyRelationships")
    protected List manyToManyRelationships;

    @JsonProperty("ManyToManyRelationships@nextLink")
    protected String manyToManyRelationshipsNextLink;

    @JsonProperty("ManyToOneRelationships")
    protected List manyToOneRelationships;

    @JsonProperty("ManyToOneRelationships@nextLink")
    protected String manyToOneRelationshipsNextLink;

    @JsonProperty("OneToManyRelationships")
    protected List oneToManyRelationships;

    @JsonProperty("OneToManyRelationships@nextLink")
    protected String oneToManyRelationshipsNextLink;

    @JsonProperty("ObjectTypeCode")
    protected Integer objectTypeCode;

    @JsonProperty("OwnershipType")
    protected OwnershipTypes ownershipType;

    @JsonProperty("PrimaryNameAttribute")
    protected String primaryNameAttribute;

    @JsonProperty("PrimaryImageAttribute")
    protected String primaryImageAttribute;

    @JsonProperty("PrimaryIdAttribute")
    protected String primaryIdAttribute;

    @JsonProperty("Privileges")
    protected List privileges;

    @JsonProperty("Privileges@nextLink")
    protected String privilegesNextLink;

    @JsonProperty("RecurrenceBaseEntityLogicalName")
    protected String recurrenceBaseEntityLogicalName;

    @JsonProperty("ReportViewName")
    protected String reportViewName;

    @JsonProperty("SchemaName")
    protected String schemaName;

    @JsonProperty("IntroducedVersion")
    protected String introducedVersion;

    @JsonProperty("IsStateModelAware")
    protected Boolean isStateModelAware;

    @JsonProperty("EnforceStateTransitions")
    protected Boolean enforceStateTransitions;

    @JsonProperty("ExternalName")
    protected String externalName;

    @JsonProperty("EntityColor")
    protected String entityColor;

    @JsonProperty("Keys")
    protected List keys;

    @JsonProperty("Keys@nextLink")
    protected String keysNextLink;

    @JsonProperty("LogicalCollectionName")
    protected String logicalCollectionName;

    @JsonProperty("ExternalCollectionName")
    protected String externalCollectionName;

    @JsonProperty("CollectionSchemaName")
    protected String collectionSchemaName;

    @JsonProperty("EntitySetName")
    protected String entitySetName;

    @JsonProperty("IsEnabledForExternalChannels")
    protected Boolean isEnabledForExternalChannels;

    @JsonProperty("IsPrivate")
    protected Boolean isPrivate;

    @JsonProperty("UsesBusinessDataLabelTable")
    protected Boolean usesBusinessDataLabelTable;

    @JsonProperty("IsLogicalEntity")
    protected Boolean isLogicalEntity;

    @JsonProperty("HasNotes")
    protected Boolean hasNotes;

    @JsonProperty("HasActivities")
    protected Boolean hasActivities;

    @JsonProperty("HasFeedback")
    protected Boolean hasFeedback;

    @JsonProperty("IsSolutionAware")
    protected Boolean isSolutionAware;

    @JsonProperty("Settings")
    protected List settings;

    @JsonProperty("Settings@nextLink")
    protected String settingsNextLink;

    @JsonProperty("CreatedOn")
    protected OffsetDateTime createdOn;

    @JsonProperty("ModifiedOn")
    protected OffsetDateTime modifiedOn;

    @JsonProperty("MetadataId")
    protected String metadataId;

    @JsonProperty("HasChanged")
    protected Boolean hasChanged;

    protected ComplexEntityMetadata() {
    }

    @Override
    public String odataTypeName() {
        return "Microsoft.Dynamics.CRM.ComplexEntityMetadata";
    }

    @Property(name="ActivityTypeMask")
    @JsonIgnore
    public Optional getActivityTypeMask() {
        return Optional.ofNullable(activityTypeMask);
    }

    public ComplexEntityMetadata withActivityTypeMask(Integer activityTypeMask) {
        ComplexEntityMetadata _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.ComplexEntityMetadata");
        _x.activityTypeMask = activityTypeMask;
        return _x;
    }

    @Property(name="Attributes")
    @JsonIgnore
    public CollectionPage getAttributes() {
        return new CollectionPage(contextPath, ComplexAttributeMetadata.class, this.attributes, Optional.ofNullable(attributesNextLink), SchemaInfo.INSTANCE, Collections.emptyList(), HttpRequestOptions.EMPTY);
    }

    @Property(name="Attributes")
    @JsonIgnore
    public CollectionPage getAttributes(HttpRequestOptions options) {
        return new CollectionPage(contextPath, ComplexAttributeMetadata.class, this.attributes, Optional.ofNullable(attributesNextLink), SchemaInfo.INSTANCE, Collections.emptyList(), options);
    }

    @Property(name="AutoRouteToOwnerQueue")
    @JsonIgnore
    public Optional getAutoRouteToOwnerQueue() {
        return Optional.ofNullable(autoRouteToOwnerQueue);
    }

    public ComplexEntityMetadata withAutoRouteToOwnerQueue(Boolean autoRouteToOwnerQueue) {
        ComplexEntityMetadata _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.ComplexEntityMetadata");
        _x.autoRouteToOwnerQueue = autoRouteToOwnerQueue;
        return _x;
    }

    @Property(name="CanTriggerWorkflow")
    @JsonIgnore
    public Optional getCanTriggerWorkflow() {
        return Optional.ofNullable(canTriggerWorkflow);
    }

    public ComplexEntityMetadata withCanTriggerWorkflow(Boolean canTriggerWorkflow) {
        ComplexEntityMetadata _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.ComplexEntityMetadata");
        _x.canTriggerWorkflow = canTriggerWorkflow;
        return _x;
    }

    @Property(name="Description")
    @JsonIgnore
    public Optional




© 2015 - 2025 Weber Informatics LLC | Privacy Policy