Package com.microsoft.graph.models
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.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Community
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the description property value.Gets the displayName property value.The deserialization information for the current modelgetGroup()
Gets the group property value.Gets the groupId property value.Gets the owners property value.Gets the privacy property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setDescription
(String value) Sets the description property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the group property value.void
setGroupId
(String value) Sets the groupId property value.void
Sets the owners property value.void
setPrivacy
(CommunityPrivacy value) Sets the privacy property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Community
public Community()Instantiates a newCommunity
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
Gets the description property value. The description of the community. The maximum length is 1,024 characters.- Returns:
- a
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getGroup
Gets the group property value. The Microsoft 365 group that manages the membership of this community.- Returns:
- a
Group
-
getGroupId
Gets the groupId property value. The ID of the Microsoft 365 group that manages the membership of this community.- Returns:
- a
String
-
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. -
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 -
setDescription
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
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
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
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
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
Sets the privacy property value. Types of communityPrivacy.- Parameters:
value
- Value to set for the privacy property.
-