Package com.microsoft.graph.models
Class AccessPackageResourceRole
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.AccessPackageResourceRole
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class AccessPackageResourceRole
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessPackageResourceRole
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 modelGets the originId property value.Gets the originSystem property value.Gets the resource 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
setOriginId
(String value) Sets the originId property value.void
setOriginSystem
(String value) Sets the originSystem property value.void
setResource
(AccessPackageResource value) Sets the resource property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
AccessPackageResourceRole
public AccessPackageResourceRole()Instantiates a newAccessPackageResourceRole
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static AccessPackageResourceRole 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
AccessPackageResourceRole
-
getDescription
Gets the description property value. A description for the resource role.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. The display name of the resource role such as the role defined by the application.- 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>>
-
getOriginId
Gets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId is the sequence number of the role in the site.- Returns:
- a
String
-
getOriginSystem
Gets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication, or AadGroup.- Returns:
- a
String
-
getResource
Gets the resource property value. The resource property- Returns:
- a
AccessPackageResource
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setDescription
Sets the description property value. A description for the resource role.- Parameters:
value
- Value to set for the description property.
-
setDisplayName
Sets the displayName property value. The display name of the resource role such as the role defined by the application.- Parameters:
value
- Value to set for the displayName property.
-
setOriginId
Sets the originId property value. The unique identifier of the resource role in the origin system. For a SharePoint Online site, the originId is the sequence number of the role in the site.- Parameters:
value
- Value to set for the originId property.
-
setOriginSystem
Sets the originSystem property value. The type of the resource in the origin system, such as SharePointOnline, AadApplication, or AadGroup.- Parameters:
value
- Value to set for the originSystem property.
-
setResource
Sets the resource property value. The resource property- Parameters:
value
- Value to set for the resource property.
-