Package com.microsoft.graph.models
Class AccessPackageSuggestionRelatedPeopleBased
java.lang.Object
com.microsoft.graph.models.AccessPackageSuggestionReason
com.microsoft.graph.models.AccessPackageSuggestionRelatedPeopleBased
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class AccessPackageSuggestionRelatedPeopleBased
extends AccessPackageSuggestionReason
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.AccessPackageSuggestionReason
backingStore -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newAccessPackageSuggestionRelatedPeopleBasedand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueThe deserialization information for the current modelGets the relatedPeople property value.Gets the relatedPeopleAssignmentCount property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetRelatedPeople(List<Identity> value) Sets the relatedPeople property value.voidSets the relatedPeopleAssignmentCount property value.Methods inherited from class com.microsoft.graph.models.AccessPackageSuggestionReason
getAdditionalData, getBackingStore, getOdataType, setAdditionalData, setBackingStore, setOdataType
-
Constructor Details
-
AccessPackageSuggestionRelatedPeopleBased
public AccessPackageSuggestionRelatedPeopleBased()Instantiates a newAccessPackageSuggestionRelatedPeopleBasedand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static AccessPackageSuggestionRelatedPeopleBased 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
AccessPackageSuggestionRelatedPeopleBased
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classAccessPackageSuggestionReason- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getRelatedPeople
Gets the relatedPeople property value. A collection of identities representing people related to the current user who may have access to similar resources. This property is only populated when the tenant's endUserSettings have relatedPeopleInsightLevel set to countAndNames. This includes both the user ID and display name information. -
getRelatedPeopleAssignmentCount
Gets the relatedPeopleAssignmentCount property value. The number of related people who have assignments to this access package. This count is always provided regardless of the relatedPeopleInsightLevel setting.- Returns:
- a
Integer
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classAccessPackageSuggestionReason- Parameters:
writer- Serialization writer to use to serialize this model
-
setRelatedPeople
Sets the relatedPeople property value. A collection of identities representing people related to the current user who may have access to similar resources. This property is only populated when the tenant's endUserSettings have relatedPeopleInsightLevel set to countAndNames. This includes both the user ID and display name information.- Parameters:
value- Value to set for the relatedPeople property.
-
setRelatedPeopleAssignmentCount
Sets the relatedPeopleAssignmentCount property value. The number of related people who have assignments to this access package. This count is always provided regardless of the relatedPeopleInsightLevel setting.- Parameters:
value- Value to set for the relatedPeopleAssignmentCount property.
-