Class MicrosoftGraphAppRoleAssignmentInner
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAppRoleAssignmentInner
-
public final class MicrosoftGraphAppRoleAssignmentInner extends MicrosoftGraphDirectoryObjectInner
Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphAppRoleAssignmentInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: Represents an Azure Active Directory object.UUIDappRoleId()Get the appRoleId property: The identifier (id) for the app role which is assigned to the principal.OffsetDateTimecreatedDateTime()Get the createdDateTime property: The createdDateTime property.StringprincipalDisplayName()Get the principalDisplayName property: The display name of the user, group, or service principal that was granted the app role assignment.UUIDprincipalId()Get the principalId property: The unique identifier (id) for the user, group or service principal being granted the app role.StringprincipalType()Get the principalType property: The type of the assigned principal.StringresourceDisplayName()Get the resourceDisplayName property: The display name of the resource app's service principal to which the assignment is made.UUIDresourceId()Get the resourceId property: The unique identifier (id) for the resource service principal for which the assignment is made.voidvalidate()Validates the instance.MicrosoftGraphAppRoleAssignmentInnerwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: Represents an Azure Active Directory object.MicrosoftGraphAppRoleAssignmentInnerwithAppRoleId(UUID appRoleId)Set the appRoleId property: The identifier (id) for the app role which is assigned to the principal.MicrosoftGraphAppRoleAssignmentInnerwithCreatedDateTime(OffsetDateTime createdDateTime)Set the createdDateTime property: The createdDateTime property.MicrosoftGraphAppRoleAssignmentInnerwithDeletedDateTime(OffsetDateTime deletedDateTime)Set the deletedDateTime property: The deletedDateTime property.MicrosoftGraphAppRoleAssignmentInnerwithId(String id)Set the id property: Read-only.MicrosoftGraphAppRoleAssignmentInnerwithPrincipalDisplayName(String principalDisplayName)Set the principalDisplayName property: The display name of the user, group, or service principal that was granted the app role assignment.MicrosoftGraphAppRoleAssignmentInnerwithPrincipalId(UUID principalId)Set the principalId property: The unique identifier (id) for the user, group or service principal being granted the app role.MicrosoftGraphAppRoleAssignmentInnerwithPrincipalType(String principalType)Set the principalType property: The type of the assigned principal.MicrosoftGraphAppRoleAssignmentInnerwithResourceDisplayName(String resourceDisplayName)Set the resourceDisplayName property: The display name of the resource app's service principal to which the assignment is made.MicrosoftGraphAppRoleAssignmentInnerwithResourceId(UUID resourceId)Set the resourceId property: The unique identifier (id) for the resource service principal for which the assignment is made.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
deletedDateTime
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
appRoleId
public UUID appRoleId()
Get the appRoleId property: The identifier (id) for the app role which is 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 has not 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. Does not support $filter.- Returns:
- the appRoleId value.
-
withAppRoleId
public MicrosoftGraphAppRoleAssignmentInner withAppRoleId(UUID appRoleId)
Set the appRoleId property: The identifier (id) for the app role which is 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 has not 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. Does not support $filter.- Parameters:
appRoleId- the appRoleId value to set.- Returns:
- the MicrosoftGraphAppRoleAssignmentInner object itself.
-
createdDateTime
public OffsetDateTime createdDateTime()
Get the createdDateTime property: The createdDateTime property.- Returns:
- the createdDateTime value.
-
withCreatedDateTime
public MicrosoftGraphAppRoleAssignmentInner withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: The createdDateTime property.- Parameters:
createdDateTime- the createdDateTime value to set.- Returns:
- the MicrosoftGraphAppRoleAssignmentInner object itself.
-
principalDisplayName
public String principalDisplayName()
Get the principalDisplayName property: The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).- Returns:
- the principalDisplayName value.
-
withPrincipalDisplayName
public MicrosoftGraphAppRoleAssignmentInner withPrincipalDisplayName(String principalDisplayName)
Set the principalDisplayName property: The display name of the user, group, or service principal that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).- Parameters:
principalDisplayName- the principalDisplayName value to set.- Returns:
- the MicrosoftGraphAppRoleAssignmentInner object itself.
-
principalId
public UUID principalId()
Get the principalId property: The unique identifier (id) for the user, group or service principal being granted the app role. Required on create. Does not support $filter.- Returns:
- the principalId value.
-
withPrincipalId
public MicrosoftGraphAppRoleAssignmentInner withPrincipalId(UUID principalId)
Set the principalId property: The unique identifier (id) for the user, group or service principal being granted the app role. Required on create. Does not support $filter.- Parameters:
principalId- the principalId value to set.- Returns:
- the MicrosoftGraphAppRoleAssignmentInner object itself.
-
principalType
public String principalType()
Get the principalType property: The type of the assigned principal. This can either be 'User', 'Group' or 'ServicePrincipal'. Read-only. Does not support $filter.- Returns:
- the principalType value.
-
withPrincipalType
public MicrosoftGraphAppRoleAssignmentInner withPrincipalType(String principalType)
Set the principalType property: The type of the assigned principal. This can either be 'User', 'Group' or 'ServicePrincipal'. Read-only. Does not support $filter.- Parameters:
principalType- the principalType value to set.- Returns:
- the MicrosoftGraphAppRoleAssignmentInner object itself.
-
resourceDisplayName
public String resourceDisplayName()
Get the resourceDisplayName property: The display name of the resource app's service principal to which the assignment is made. Does not support $filter.- Returns:
- the resourceDisplayName value.
-
withResourceDisplayName
public MicrosoftGraphAppRoleAssignmentInner withResourceDisplayName(String resourceDisplayName)
Set the resourceDisplayName property: The display name of the resource app's service principal to which the assignment is made. Does not support $filter.- Parameters:
resourceDisplayName- the resourceDisplayName value to set.- Returns:
- the MicrosoftGraphAppRoleAssignmentInner object itself.
-
resourceId
public UUID resourceId()
Get the resourceId property: The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).- Returns:
- the resourceId value.
-
withResourceId
public MicrosoftGraphAppRoleAssignmentInner withResourceId(UUID resourceId)
Set the resourceId property: The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. Supports $filter (eq only).- Parameters:
resourceId- the resourceId value to set.- Returns:
- the MicrosoftGraphAppRoleAssignmentInner object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.- Overrides:
additionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphAppRoleAssignmentInner withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphAppRoleAssignmentInner object itself.
-
withDeletedDateTime
public MicrosoftGraphAppRoleAssignmentInner withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: The deletedDateTime property.- Overrides:
withDeletedDateTimein classMicrosoftGraphDirectoryObjectInner- Parameters:
deletedDateTime- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphDirectoryObjectInner object itself.
-
withId
public MicrosoftGraphAppRoleAssignmentInner withId(String id)
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphDirectoryObjectInner- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphDirectoryObjectInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-