Package com.microsoft.graph.models
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 Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeDefinitioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.Gets the anchor property value.Gets the apiExpressions property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.Gets the caseExact property value.Gets the defaultValue property value.The deserialization information for the current modelGets the flowNullValues property value.Gets the metadata property value.Gets the multivalued property value.Gets the mutability property value.getName()Gets the name property value.Gets the @odata.type property value.Gets the referencedObjects property value.Gets the required property value.getType()Gets the type property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidSets the anchor property value.voidSets the apiExpressions property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidsetCaseExact(Boolean value) Sets the caseExact property value.voidsetDefaultValue(String value) Sets the defaultValue property value.voidsetFlowNullValues(Boolean value) Sets the flowNullValues property value.voidSets the metadata property value.voidsetMultivalued(Boolean value) Sets the multivalued property value.voidsetMutability(Mutability value) Sets the mutability property value.voidSets the name property value.voidsetOdataType(String value) Sets the @odata.type property value.voidsetReferencedObjects(List<ReferencedObject> value) Sets the referencedObjects property value.voidsetRequired(Boolean value) Sets the required property value.voidsetType(AttributeType value) Sets the type property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
AttributeDefinition
public AttributeDefinition()Instantiates a newAttributeDefinitionand 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
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
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
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:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
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
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 -
getFlowNullValues
Gets the flowNullValues property value. 'true' to allow null values for attributes.- Returns:
- a
Boolean
-
getMetadata
Gets the metadata property value. Metadata for the given object.- Returns:
- a
List<AttributeDefinitionMetadataEntry>
-
getMultivalued
Gets the multivalued property value. true if an attribute can have multiple values. Default is false.- Returns:
- a
Boolean
-
getMutability
Gets the mutability property value. The mutability property- Returns:
- a
Mutability
-
getName
Gets the name property value. Name of the attribute. Must be unique within the object definition. Not nullable.- Returns:
- a
String
-
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
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
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
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
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
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
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
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
Sets the defaultValue property value. The default value of the attribute.- Parameters:
value- Value to set for the defaultValue property.
-
setFlowNullValues
Sets the flowNullValues property value. 'true' to allow null values for attributes.- Parameters:
value- Value to set for the flowNullValues property.
-
setMetadata
Sets the metadata property value. Metadata for the given object.- Parameters:
value- Value to set for the metadata property.
-
setMultivalued
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
Sets the mutability property value. The mutability property- Parameters:
value- Value to set for the mutability property.
-
setName
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
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setReferencedObjects
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
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
Sets the type property value. The type property- Parameters:
value- Value to set for the type property.
-