Package com.microsoft.graph.models
Class AppRoleAssignment
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.AppRoleAssignment
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class AppRoleAssignment
extends DirectoryObject
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 AppRoleAssignmentcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the appRoleId property value.Gets the createdDateTime property value.The deserialization information for the current modelGets the principalDisplayName property value.Gets the principalId property value.Gets the principalType property value.Gets the resourceDisplayName property value.Gets the resourceId property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAppRoleId(UUID value) Sets the appRoleId property value.voidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidsetPrincipalDisplayName(String value) Sets the principalDisplayName property value.voidsetPrincipalId(UUID value) Sets the principalId property value.voidsetPrincipalType(String value) Sets the principalType property value.voidsetResourceDisplayName(String value) Sets the resourceDisplayName property value.voidsetResourceId(UUID value) Sets the resourceId property value.Methods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
AppRoleAssignment
public AppRoleAssignment()Instantiates a newAppRoleAssignmentand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static AppRoleAssignment 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
AppRoleAssignment
-
getAppRoleId
Gets the appRoleId property value. The identifier (id) for the app role that's assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create.- Returns:
- a
UUID
-
getCreatedDateTime
Gets the createdDateTime property value. The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.- Returns:
- a
OffsetDateTime
-
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 classDirectoryObject- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getPrincipalDisplayName
Gets the principalDisplayName property value. The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only. Supports $filter (eq and startswith).- Returns:
- a
String
-
getPrincipalId
Gets the principalId property value. The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create.- Returns:
- a
UUID
-
getPrincipalType
Gets the principalType property value. The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only.- Returns:
- a
String
-
getResourceDisplayName
Gets the resourceDisplayName property value. The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters.- Returns:
- a
String
-
getResourceId
Gets the resourceId property value. The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).- Returns:
- a
UUID
-
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 classDirectoryObject- Parameters:
writer- Serialization writer to use to serialize this model
-
setAppRoleId
Sets the appRoleId property value. The identifier (id) for the app role that's assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create.- Parameters:
value- Value to set for the appRoleId property.
-
setCreatedDateTime
Sets the createdDateTime property value. The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.- Parameters:
value- Value to set for the createdDateTime property.
-
setPrincipalDisplayName
Sets the principalDisplayName property value. The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only. Supports $filter (eq and startswith).- Parameters:
value- Value to set for the principalDisplayName property.
-
setPrincipalId
Sets the principalId property value. The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create.- Parameters:
value- Value to set for the principalId property.
-
setPrincipalType
Sets the principalType property value. The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only.- Parameters:
value- Value to set for the principalType property.
-
setResourceDisplayName
Sets the resourceDisplayName property value. The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters.- Parameters:
value- Value to set for the resourceDisplayName property.
-
setResourceId
Sets the resourceId property value. The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).- Parameters:
value- Value to set for the resourceId property.
-