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

microsoft.dynamics.crm.complex.ComplexAttributeMetadata 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.ContextPath;
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.Optional;

import microsoft.dynamics.crm.enums.AttributeTypeCode;

@JsonPropertyOrder({
    "@odata.type", 
    "AttributeOf", 
    "AttributeType", 
    "AttributeTypeName", 
    "ColumnNumber", 
    "Description", 
    "DisplayName", 
    "DeprecatedVersion", 
    "IntroducedVersion", 
    "EntityLogicalName", 
    "IsAuditEnabled", 
    "IsCustomAttribute", 
    "IsPrimaryId", 
    "IsPrimaryName", 
    "IsValidForCreate", 
    "IsValidForRead", 
    "IsValidForUpdate", 
    "CanBeSecuredForRead", 
    "CanBeSecuredForCreate", 
    "CanBeSecuredForUpdate", 
    "IsSecured", 
    "IsRetrievable", 
    "IsFilterable", 
    "IsSearchable", 
    "IsManaged", 
    "IsGlobalFilterEnabled", 
    "IsSortableEnabled", 
    "LinkedAttributeId", 
    "LogicalName", 
    "IsCustomizable", 
    "IsRenameable", 
    "IsValidForAdvancedFind", 
    "IsValidForForm", 
    "IsRequiredForForm", 
    "IsValidForGrid", 
    "RequiredLevel", 
    "CanModifyAdditionalSettings", 
    "SchemaName", 
    "ExternalName", 
    "IsLogical", 
    "IsDataSourceSecret", 
    "InheritsFrom", 
    "CreatedOn", 
    "ModifiedOn", 
    "SourceType", 
    "AutoNumberFormat", 
    "MetadataId", 
    "HasChanged"})
@JsonInclude(Include.NON_NULL)
public class ComplexAttributeMetadata implements ODataType {

    @JacksonInject
    @JsonIgnore
    protected ContextPath contextPath;

    @JacksonInject
    @JsonIgnore
    protected UnmappedFields unmappedFields;

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

    @JsonProperty("AttributeOf")
    protected String attributeOf;

    @JsonProperty("AttributeType")
    protected AttributeTypeCode attributeType;

    @JsonProperty("AttributeTypeName")
    protected AttributeTypeDisplayName attributeTypeName;

    @JsonProperty("ColumnNumber")
    protected Integer columnNumber;

    @JsonProperty("Description")
    protected Label description;

    @JsonProperty("DisplayName")
    protected Label displayName;

    @JsonProperty("DeprecatedVersion")
    protected String deprecatedVersion;

    @JsonProperty("IntroducedVersion")
    protected String introducedVersion;

    @JsonProperty("EntityLogicalName")
    protected String entityLogicalName;

    @JsonProperty("IsAuditEnabled")
    protected BooleanManagedProperty isAuditEnabled;

    @JsonProperty("IsCustomAttribute")
    protected Boolean isCustomAttribute;

    @JsonProperty("IsPrimaryId")
    protected Boolean isPrimaryId;

    @JsonProperty("IsPrimaryName")
    protected Boolean isPrimaryName;

    @JsonProperty("IsValidForCreate")
    protected Boolean isValidForCreate;

    @JsonProperty("IsValidForRead")
    protected Boolean isValidForRead;

    @JsonProperty("IsValidForUpdate")
    protected Boolean isValidForUpdate;

    @JsonProperty("CanBeSecuredForRead")
    protected Boolean canBeSecuredForRead;

    @JsonProperty("CanBeSecuredForCreate")
    protected Boolean canBeSecuredForCreate;

    @JsonProperty("CanBeSecuredForUpdate")
    protected Boolean canBeSecuredForUpdate;

    @JsonProperty("IsSecured")
    protected Boolean isSecured;

    @JsonProperty("IsRetrievable")
    protected Boolean isRetrievable;

    @JsonProperty("IsFilterable")
    protected Boolean isFilterable;

    @JsonProperty("IsSearchable")
    protected Boolean isSearchable;

    @JsonProperty("IsManaged")
    protected Boolean isManaged;

    @JsonProperty("IsGlobalFilterEnabled")
    protected BooleanManagedProperty isGlobalFilterEnabled;

    @JsonProperty("IsSortableEnabled")
    protected BooleanManagedProperty isSortableEnabled;

    @JsonProperty("LinkedAttributeId")
    protected String linkedAttributeId;

    @JsonProperty("LogicalName")
    protected String logicalName;

    @JsonProperty("IsCustomizable")
    protected BooleanManagedProperty isCustomizable;

    @JsonProperty("IsRenameable")
    protected BooleanManagedProperty isRenameable;

    @JsonProperty("IsValidForAdvancedFind")
    protected BooleanManagedProperty isValidForAdvancedFind;

    @JsonProperty("IsValidForForm")
    protected Boolean isValidForForm;

    @JsonProperty("IsRequiredForForm")
    protected Boolean isRequiredForForm;

    @JsonProperty("IsValidForGrid")
    protected Boolean isValidForGrid;

    @JsonProperty("RequiredLevel")
    protected AttributeRequiredLevelManagedProperty requiredLevel;

    @JsonProperty("CanModifyAdditionalSettings")
    protected BooleanManagedProperty canModifyAdditionalSettings;

    @JsonProperty("SchemaName")
    protected String schemaName;

    @JsonProperty("ExternalName")
    protected String externalName;

    @JsonProperty("IsLogical")
    protected Boolean isLogical;

    @JsonProperty("IsDataSourceSecret")
    protected Boolean isDataSourceSecret;

    @JsonProperty("InheritsFrom")
    protected String inheritsFrom;

    @JsonProperty("CreatedOn")
    protected OffsetDateTime createdOn;

    @JsonProperty("ModifiedOn")
    protected OffsetDateTime modifiedOn;

    @JsonProperty("SourceType")
    protected Integer sourceType;

    @JsonProperty("AutoNumberFormat")
    protected String autoNumberFormat;

    @JsonProperty("MetadataId")
    protected String metadataId;

    @JsonProperty("HasChanged")
    protected Boolean hasChanged;

    protected ComplexAttributeMetadata() {
    }

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

    @Property(name="AttributeOf")
    @JsonIgnore
    public Optional getAttributeOf() {
        return Optional.ofNullable(attributeOf);
    }

    public ComplexAttributeMetadata withAttributeOf(String attributeOf) {
        Checks.checkIsAscii(attributeOf);
        ComplexAttributeMetadata _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.ComplexAttributeMetadata");
        _x.attributeOf = attributeOf;
        return _x;
    }

    @Property(name="AttributeType")
    @JsonIgnore
    public Optional getAttributeType() {
        return Optional.ofNullable(attributeType);
    }

    public ComplexAttributeMetadata withAttributeType(AttributeTypeCode attributeType) {
        ComplexAttributeMetadata _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.ComplexAttributeMetadata");
        _x.attributeType = attributeType;
        return _x;
    }

    @Property(name="AttributeTypeName")
    @JsonIgnore
    public Optional getAttributeTypeName() {
        return Optional.ofNullable(attributeTypeName);
    }

    public ComplexAttributeMetadata withAttributeTypeName(AttributeTypeDisplayName attributeTypeName) {
        ComplexAttributeMetadata _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.ComplexAttributeMetadata");
        _x.attributeTypeName = attributeTypeName;
        return _x;
    }

    @Property(name="ColumnNumber")
    @JsonIgnore
    public Optional getColumnNumber() {
        return Optional.ofNullable(columnNumber);
    }

    public ComplexAttributeMetadata withColumnNumber(Integer columnNumber) {
        ComplexAttributeMetadata _x = _copy();
        _x.odataType = Util.nvl(odataType, "Microsoft.Dynamics.CRM.ComplexAttributeMetadata");
        _x.columnNumber = columnNumber;
        return _x;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy