Class Community

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

@Generated("com.microsoft.kiota") public class Community extends Entity implements com.microsoft.kiota.serialization.Parsable
Represents a community in Viva Engage that is a central place for conversations,files, events, and updates for people sharing a common interest or goal.
  • Constructor Details

    • Community

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

    • createFromDiscriminatorValue

      @Nonnull public static Community 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 Community
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. The description of the community. The maximum length is 1,024 characters.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The name of the community. The maximum length is 255 characters.
      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>>
    • getGroup

      @Nullable public Group getGroup()
      Gets the group property value. The Microsoft 365 group that manages the membership of this community.
      Returns:
      a Group
    • getGroupId

      @Nullable public String getGroupId()
      Gets the groupId property value. The ID of the Microsoft 365 group that manages the membership of this community.
      Returns:
      a String
    • getOwners

      @Nullable public List<User> getOwners()
      Gets the owners property value. The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner.
      Returns:
      a List<User>
    • getPrivacy

      @Nullable public CommunityPrivacy getPrivacy()
      Gets the privacy property value. Types of communityPrivacy.
      Returns:
      a CommunityPrivacy
    • 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
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. The description of the community. The maximum length is 1,024 characters.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The name of the community. The maximum length is 255 characters.
      Parameters:
      value - Value to set for the displayName property.
    • setGroup

      public void setGroup(@Nullable Group value)
      Sets the group property value. The Microsoft 365 group that manages the membership of this community.
      Parameters:
      value - Value to set for the group property.
    • setGroupId

      public void setGroupId(@Nullable String value)
      Sets the groupId property value. The ID of the Microsoft 365 group that manages the membership of this community.
      Parameters:
      value - Value to set for the groupId property.
    • setOwners

      public void setOwners(@Nullable List<User> value)
      Sets the owners property value. The admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner.
      Parameters:
      value - Value to set for the owners property.
    • setPrivacy

      public void setPrivacy(@Nullable CommunityPrivacy value)
      Sets the privacy property value. Types of communityPrivacy.
      Parameters:
      value - Value to set for the privacy property.