Class AttributeDefinition

java.lang.Object
com.microsoft.graph.models.AttributeDefinition
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class AttributeDefinition extends Object implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
  • Field Details

    • backingStore

      @Nonnull protected com.microsoft.kiota.store.BackingStore backingStore
      Stores model information.
  • Constructor Details

    • AttributeDefinition

      public AttributeDefinition()
      Instantiates a new AttributeDefinition and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static AttributeDefinition createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a AttributeDefinition
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getAnchor

      @Nullable public Boolean getAnchor()
      Gets the anchor property value. 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.
      Returns:
      a Boolean
    • getApiExpressions

      @Nullable public List<StringKeyStringValuePair> getApiExpressions()
      Gets the apiExpressions property value. The apiExpressions property
      Returns:
      a List<StringKeyStringValuePair>
    • getBackingStore

      @Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()
      Gets the backingStore property value. Stores model information.
      Specified by:
      getBackingStore in interface com.microsoft.kiota.store.BackedModel
      Returns:
      a BackingStore
    • getCaseExact

      @Nullable public Boolean getCaseExact()
      Gets the caseExact property value. true if value of this attribute should be treated as case-sensitive. This setting affects how the synchronization engine detects changes for the attribute.
      Returns:
      a Boolean
    • getDefaultValue

      @Nullable public String getDefaultValue()
      Gets the defaultValue property value. The default value of the attribute.
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFlowNullValues

      @Nullable public Boolean getFlowNullValues()
      Gets the flowNullValues property value. 'true' to allow null values for attributes.
      Returns:
      a Boolean
    • getMetadata

      @Nullable public List<AttributeDefinitionMetadataEntry> getMetadata()
      Gets the metadata property value. Metadata for the given object.
      Returns:
      a List<AttributeDefinitionMetadataEntry>
    • getMultivalued

      @Nullable public Boolean getMultivalued()
      Gets the multivalued property value. true if an attribute can have multiple values. Default is false.
      Returns:
      a Boolean
    • getMutability

      @Nullable public Mutability getMutability()
      Gets the mutability property value. The mutability property
      Returns:
      a Mutability
    • getName

      @Nullable public String getName()
      Gets the name property value. Name of the attribute. Must be unique within the object definition. Not nullable.
      Returns:
      a String
    • getOdataType

      @Nullable public String getOdataType()
      Gets the @odata.type property value. The OdataType property
      Returns:
      a String
    • getReferencedObjects

      @Nullable public List<ReferencedObject> getReferencedObjects()
      Gets the referencedObjects property value. For attributes with reference type, lists referenced objects (for example, the manager attribute would list User as the referenced object).
      Returns:
      a List<ReferencedObject>
    • getRequired

      @Nullable public Boolean getRequired()
      Gets the required property value. 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.
      Returns:
      a Boolean
    • getType

      @Nullable public AttributeType getType()
      Gets the type property value. The type property
      Returns:
      a AttributeType
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      value - Value to set for the AdditionalData property.
    • setAnchor

      public void setAnchor(@Nullable Boolean value)
      Sets the anchor property value. 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.
      Parameters:
      value - Value to set for the anchor property.
    • setApiExpressions

      public void setApiExpressions(@Nullable List<StringKeyStringValuePair> value)
      Sets the apiExpressions property value. The apiExpressions property
      Parameters:
      value - Value to set for the apiExpressions property.
    • setBackingStore

      public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value)
      Sets the backingStore property value. Stores model information.
      Parameters:
      value - Value to set for the backingStore property.
    • setCaseExact

      public void setCaseExact(@Nullable Boolean value)
      Sets the caseExact property value. true if value of this attribute should be treated as case-sensitive. This setting affects how the synchronization engine detects changes for the attribute.
      Parameters:
      value - Value to set for the caseExact property.
    • setDefaultValue

      public void setDefaultValue(@Nullable String value)
      Sets the defaultValue property value. The default value of the attribute.
      Parameters:
      value - Value to set for the defaultValue property.
    • setFlowNullValues

      public void setFlowNullValues(@Nullable Boolean value)
      Sets the flowNullValues property value. 'true' to allow null values for attributes.
      Parameters:
      value - Value to set for the flowNullValues property.
    • setMetadata

      public void setMetadata(@Nullable List<AttributeDefinitionMetadataEntry> value)
      Sets the metadata property value. Metadata for the given object.
      Parameters:
      value - Value to set for the metadata property.
    • setMultivalued

      public void setMultivalued(@Nullable Boolean value)
      Sets the multivalued property value. true if an attribute can have multiple values. Default is false.
      Parameters:
      value - Value to set for the multivalued property.
    • setMutability

      public void setMutability(@Nullable Mutability value)
      Sets the mutability property value. The mutability property
      Parameters:
      value - Value to set for the mutability property.
    • setName

      public void setName(@Nullable String value)
      Sets the name property value. Name of the attribute. Must be unique within the object definition. Not nullable.
      Parameters:
      value - Value to set for the name property.
    • setOdataType

      public void setOdataType(@Nullable String value)
      Sets the @odata.type property value. The OdataType property
      Parameters:
      value - Value to set for the @odata.type property.
    • setReferencedObjects

      public void setReferencedObjects(@Nullable List<ReferencedObject> value)
      Sets the referencedObjects property value. For attributes with reference type, lists referenced objects (for example, the manager attribute would list User as the referenced object).
      Parameters:
      value - Value to set for the referencedObjects property.
    • setRequired

      public void setRequired(@Nullable Boolean value)
      Sets the required property value. 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.
      Parameters:
      value - Value to set for the required property.
    • setType

      public void setType(@Nullable AttributeType value)
      Sets the type property value. The type property
      Parameters:
      value - Value to set for the type property.