Package microsoft.dynamics.crm.entity
Class AttributeMetadata
- java.lang.Object
-
- microsoft.dynamics.crm.entity.Crmmodelbaseentity
-
- microsoft.dynamics.crm.entity.MetadataBase
-
- microsoft.dynamics.crm.entity.AttributeMetadata
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
BigIntAttributeMetadata,BooleanAttributeMetadata,DateTimeAttributeMetadata,DecimalAttributeMetadata,DoubleAttributeMetadata,EnumAttributeMetadata,FileAttributeMetadata,ImageAttributeMetadata,IntegerAttributeMetadata,LookupAttributeMetadata,ManagedPropertyAttributeMetadata,MemoAttributeMetadata,MoneyAttributeMetadata,StringAttributeMetadata,UniqueIdentifierAttributeMetadata
public class AttributeMetadata extends MetadataBase implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttributeMetadata.Builder
-
Field Summary
-
Fields inherited from class microsoft.dynamics.crm.entity.MetadataBase
hasChanged, metadataId
-
Fields inherited from class microsoft.dynamics.crm.entity.Crmmodelbaseentity
changedFields, contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttributeMetadata()
-
Method Summary
-
Methods inherited from class microsoft.dynamics.crm.entity.MetadataBase
getHasChanged, getMetadataId, withHasChanged, withMetadataId
-
-
-
-
Field Detail
-
attributeOf
protected String attributeOf
-
attributeType
protected AttributeTypeCode attributeType
-
attributeTypeName
protected AttributeTypeDisplayName attributeTypeName
-
columnNumber
protected Integer columnNumber
-
description
protected Label description
-
displayName
protected Label displayName
-
deprecatedVersion
protected String deprecatedVersion
-
introducedVersion
protected String introducedVersion
-
entityLogicalName
protected String entityLogicalName
-
isAuditEnabled
protected BooleanManagedProperty isAuditEnabled
-
isCustomAttribute
protected Boolean isCustomAttribute
-
isPrimaryId
protected Boolean isPrimaryId
-
isValidODataAttribute
protected Boolean isValidODataAttribute
-
isPrimaryName
protected Boolean isPrimaryName
-
isValidForCreate
protected Boolean isValidForCreate
-
isValidForRead
protected Boolean isValidForRead
-
isValidForUpdate
protected Boolean isValidForUpdate
-
canBeSecuredForRead
protected Boolean canBeSecuredForRead
-
canBeSecuredForCreate
protected Boolean canBeSecuredForCreate
-
canBeSecuredForUpdate
protected Boolean canBeSecuredForUpdate
-
isSecured
protected Boolean isSecured
-
isRetrievable
protected Boolean isRetrievable
-
isFilterable
protected Boolean isFilterable
-
isSearchable
protected Boolean isSearchable
-
isManaged
protected Boolean isManaged
-
isGlobalFilterEnabled
protected BooleanManagedProperty isGlobalFilterEnabled
-
isSortableEnabled
protected BooleanManagedProperty isSortableEnabled
-
linkedAttributeId
protected UUID linkedAttributeId
-
logicalName
protected String logicalName
-
isCustomizable
protected BooleanManagedProperty isCustomizable
-
isRenameable
protected BooleanManagedProperty isRenameable
-
isValidForAdvancedFind
protected BooleanManagedProperty isValidForAdvancedFind
-
isValidForForm
protected Boolean isValidForForm
-
isRequiredForForm
protected Boolean isRequiredForForm
-
isValidForGrid
protected Boolean isValidForGrid
-
requiredLevel
protected AttributeRequiredLevelManagedProperty requiredLevel
-
canModifyAdditionalSettings
protected BooleanManagedProperty canModifyAdditionalSettings
-
schemaName
protected String schemaName
-
externalName
protected String externalName
-
isLogical
protected Boolean isLogical
-
isDataSourceSecret
protected Boolean isDataSourceSecret
-
inheritsFrom
protected String inheritsFrom
-
createdOn
protected OffsetDateTime createdOn
-
modifiedOn
protected OffsetDateTime modifiedOn
-
sourceType
protected Integer sourceType
-
autoNumberFormat
protected String autoNumberFormat
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classMetadataBase
-
builderAttributeMetadata
public static AttributeMetadata.Builder builderAttributeMetadata()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classMetadataBase
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classMetadataBase
-
withAttributeOf
public AttributeMetadata withAttributeOf(String attributeOf)
-
getAttributeType
public Optional<AttributeTypeCode> getAttributeType()
-
withAttributeType
public AttributeMetadata withAttributeType(AttributeTypeCode attributeType)
-
getAttributeTypeName
public Optional<AttributeTypeDisplayName> getAttributeTypeName()
-
withAttributeTypeName
public AttributeMetadata withAttributeTypeName(AttributeTypeDisplayName attributeTypeName)
-
withColumnNumber
public AttributeMetadata withColumnNumber(Integer columnNumber)
-
withDescription
public AttributeMetadata withDescription(Label description)
-
withDisplayName
public AttributeMetadata withDisplayName(Label displayName)
-
withDeprecatedVersion
public AttributeMetadata withDeprecatedVersion(String deprecatedVersion)
-
withIntroducedVersion
public AttributeMetadata withIntroducedVersion(String introducedVersion)
-
withEntityLogicalName
public AttributeMetadata withEntityLogicalName(String entityLogicalName)
-
getIsAuditEnabled
public Optional<BooleanManagedProperty> getIsAuditEnabled()
-
withIsAuditEnabled
public AttributeMetadata withIsAuditEnabled(BooleanManagedProperty isAuditEnabled)
-
withIsCustomAttribute
public AttributeMetadata withIsCustomAttribute(Boolean isCustomAttribute)
-
withIsPrimaryId
public AttributeMetadata withIsPrimaryId(Boolean isPrimaryId)
-
withIsValidODataAttribute
public AttributeMetadata withIsValidODataAttribute(Boolean isValidODataAttribute)
-
withIsPrimaryName
public AttributeMetadata withIsPrimaryName(Boolean isPrimaryName)
-
withIsValidForCreate
public AttributeMetadata withIsValidForCreate(Boolean isValidForCreate)
-
withIsValidForRead
public AttributeMetadata withIsValidForRead(Boolean isValidForRead)
-
withIsValidForUpdate
public AttributeMetadata withIsValidForUpdate(Boolean isValidForUpdate)
-
withCanBeSecuredForRead
public AttributeMetadata withCanBeSecuredForRead(Boolean canBeSecuredForRead)
-
withCanBeSecuredForCreate
public AttributeMetadata withCanBeSecuredForCreate(Boolean canBeSecuredForCreate)
-
withCanBeSecuredForUpdate
public AttributeMetadata withCanBeSecuredForUpdate(Boolean canBeSecuredForUpdate)
-
withIsSecured
public AttributeMetadata withIsSecured(Boolean isSecured)
-
withIsRetrievable
public AttributeMetadata withIsRetrievable(Boolean isRetrievable)
-
withIsFilterable
public AttributeMetadata withIsFilterable(Boolean isFilterable)
-
withIsSearchable
public AttributeMetadata withIsSearchable(Boolean isSearchable)
-
withIsManaged
public AttributeMetadata withIsManaged(Boolean isManaged)
-
getIsGlobalFilterEnabled
public Optional<BooleanManagedProperty> getIsGlobalFilterEnabled()
-
withIsGlobalFilterEnabled
public AttributeMetadata withIsGlobalFilterEnabled(BooleanManagedProperty isGlobalFilterEnabled)
-
getIsSortableEnabled
public Optional<BooleanManagedProperty> getIsSortableEnabled()
-
withIsSortableEnabled
public AttributeMetadata withIsSortableEnabled(BooleanManagedProperty isSortableEnabled)
-
withLinkedAttributeId
public AttributeMetadata withLinkedAttributeId(UUID linkedAttributeId)
-
withLogicalName
public AttributeMetadata withLogicalName(String logicalName)
-
getIsCustomizable
public Optional<BooleanManagedProperty> getIsCustomizable()
-
withIsCustomizable
public AttributeMetadata withIsCustomizable(BooleanManagedProperty isCustomizable)
-
getIsRenameable
public Optional<BooleanManagedProperty> getIsRenameable()
-
withIsRenameable
public AttributeMetadata withIsRenameable(BooleanManagedProperty isRenameable)
-
getIsValidForAdvancedFind
public Optional<BooleanManagedProperty> getIsValidForAdvancedFind()
-
withIsValidForAdvancedFind
public AttributeMetadata withIsValidForAdvancedFind(BooleanManagedProperty isValidForAdvancedFind)
-
withIsValidForForm
public AttributeMetadata withIsValidForForm(Boolean isValidForForm)
-
withIsRequiredForForm
public AttributeMetadata withIsRequiredForForm(Boolean isRequiredForForm)
-
withIsValidForGrid
public AttributeMetadata withIsValidForGrid(Boolean isValidForGrid)
-
getRequiredLevel
public Optional<AttributeRequiredLevelManagedProperty> getRequiredLevel()
-
withRequiredLevel
public AttributeMetadata withRequiredLevel(AttributeRequiredLevelManagedProperty requiredLevel)
-
getCanModifyAdditionalSettings
public Optional<BooleanManagedProperty> getCanModifyAdditionalSettings()
-
withCanModifyAdditionalSettings
public AttributeMetadata withCanModifyAdditionalSettings(BooleanManagedProperty canModifyAdditionalSettings)
-
withSchemaName
public AttributeMetadata withSchemaName(String schemaName)
-
withExternalName
public AttributeMetadata withExternalName(String externalName)
-
withIsLogical
public AttributeMetadata withIsLogical(Boolean isLogical)
-
withIsDataSourceSecret
public AttributeMetadata withIsDataSourceSecret(Boolean isDataSourceSecret)
-
withInheritsFrom
public AttributeMetadata withInheritsFrom(String inheritsFrom)
-
getCreatedOn
public Optional<OffsetDateTime> getCreatedOn()
-
withCreatedOn
public AttributeMetadata withCreatedOn(OffsetDateTime createdOn)
-
getModifiedOn
public Optional<OffsetDateTime> getModifiedOn()
-
withModifiedOn
public AttributeMetadata withModifiedOn(OffsetDateTime modifiedOn)
-
withSourceType
public AttributeMetadata withSourceType(Integer sourceType)
-
withAutoNumberFormat
public AttributeMetadata withAutoNumberFormat(String autoNumberFormat)
-
withUnmappedField
public AttributeMetadata withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classMetadataBase
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classMetadataBase
-
patch
public AttributeMetadata patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classMetadataBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public AttributeMetadata put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classMetadataBase- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classMetadataBase
-
-