Class ProfileCardProperty

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

@Generated("com.microsoft.kiota") public class ProfileCardProperty extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • ProfileCardProperty

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

    • createFromDiscriminatorValue

      @Nonnull public static ProfileCardProperty 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 ProfileCardProperty
    • getAnnotations

      @Nullable public List<ProfileCardAnnotation> getAnnotations()
      Gets the annotations property value. Allows an administrator to set a custom display label for the directory property and localize it for the users in their tenant.
      Returns:
      a List<ProfileCardAnnotation>
    • getDirectoryPropertyName

      @Nullable public String getDirectoryPropertyName()
      Gets the directoryPropertyName property value. Identifies a profileCardProperty resource in Get, Update, or Delete operations. Allows an administrator to surface hidden Microsoft Entra ID properties on the Microsoft 365 profile card within their tenant. When present, the Microsoft Entra ID field referenced in this property is visible to all users in your tenant on the contact pane of the profile card. Allowed values for this field are: UserPrincipalName, Fax, StreetAddress, PostalCode, StateOrProvince, Alias, CustomAttribute1, CustomAttribute2, CustomAttribute3, CustomAttribute4, CustomAttribute5, CustomAttribute6, CustomAttribute7, CustomAttribute8, CustomAttribute9, CustomAttribute10, CustomAttribute11, CustomAttribute12, CustomAttribute13, CustomAttribute14, CustomAttribute15.
      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
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • 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
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAnnotations

      public void setAnnotations(@Nullable List<ProfileCardAnnotation> value)
      Sets the annotations property value. Allows an administrator to set a custom display label for the directory property and localize it for the users in their tenant.
      Parameters:
      value - Value to set for the annotations property.
    • setDirectoryPropertyName

      public void setDirectoryPropertyName(@Nullable String value)
      Sets the directoryPropertyName property value. Identifies a profileCardProperty resource in Get, Update, or Delete operations. Allows an administrator to surface hidden Microsoft Entra ID properties on the Microsoft 365 profile card within their tenant. When present, the Microsoft Entra ID field referenced in this property is visible to all users in your tenant on the contact pane of the profile card. Allowed values for this field are: UserPrincipalName, Fax, StreetAddress, PostalCode, StateOrProvince, Alias, CustomAttribute1, CustomAttribute2, CustomAttribute3, CustomAttribute4, CustomAttribute5, CustomAttribute6, CustomAttribute7, CustomAttribute8, CustomAttribute9, CustomAttribute10, CustomAttribute11, CustomAttribute12, CustomAttribute13, CustomAttribute14, CustomAttribute15.
      Parameters:
      value - Value to set for the directoryPropertyName property.