Class AttributeDefinition

java.lang.Object
com.microsoft.graph.models.AttributeDefinition
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class AttributeDefinition extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Attribute Definition.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • anchor

      @SerializedName(value="anchor", alternate="Anchor") @Expose @Nullable public Boolean anchor
      The Anchor. true if the attribute should be used as the anchor for the object. Anchor attributes must have a unique value identifying an object, and must be immutable. Default is false. One, and only one, of the object's attributes must be designated as the anchor to support synchronization.
    • apiExpressions

      @SerializedName(value="apiExpressions", alternate="ApiExpressions") @Expose @Nullable public List<StringKeyStringValuePair> apiExpressions
      The Api Expressions.
    • caseExact

      @SerializedName(value="caseExact", alternate="CaseExact") @Expose @Nullable public Boolean caseExact
      The Case Exact. true if value of this attribute should be treated as case-sensitive. This setting affects how the synchronization engine detects changes for the attribute.
    • defaultValue

      @SerializedName(value="defaultValue", alternate="DefaultValue") @Expose @Nullable public String defaultValue
      The Default Value.
    • flowNullValues

      @SerializedName(value="flowNullValues", alternate="FlowNullValues") @Expose @Nullable public Boolean flowNullValues
      The Flow Null Values. 'true' to allow null values for attributes.
    • metadata

      @SerializedName(value="metadata", alternate="Metadata") @Expose @Nullable public List<AttributeDefinitionMetadataEntry> metadata
      The Metadata. Metadata for the given object.
    • multivalued

      @SerializedName(value="multivalued", alternate="Multivalued") @Expose @Nullable public Boolean multivalued
      The Multivalued. true if an attribute can have multiple values. Default is false.
    • mutability

      @SerializedName(value="mutability", alternate="Mutability") @Expose @Nullable public Mutability mutability
      The Mutability. An attribute's mutability. Possible values are: ReadWrite, ReadOnly, Immutable, WriteOnly. Default is ReadWrite.
    • name

      @SerializedName(value="name", alternate="Name") @Expose @Nullable public String name
      The Name. Name of the attribute. Must be unique within the object definition. Not nullable.
    • referencedObjects

      @SerializedName(value="referencedObjects", alternate="ReferencedObjects") @Expose @Nullable public List<ReferencedObject> referencedObjects
      The Referenced Objects. For attributes with reference type, lists referenced objects (for example, the manager attribute would list User as the referenced object).
    • required

      @SerializedName(value="required", alternate="Required") @Expose @Nullable public Boolean required
      The Required. true if attribute is required. Object can not be created if any of the required attributes are missing. If during synchronization, the required attribute has no value, the default value will be used. If default the value was not set, synchronization will record an error.
    • type

      @SerializedName(value="type", alternate="Type") @Expose @Nullable public AttributeType type
      The Type. Attribute value type. Possible values are: String, Integer, Reference, Binary, Boolean,DateTime. Default is String.
  • Constructor Details

    • AttributeDefinition

      public AttributeDefinition()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to