Class UnifiedRoleAssignmentScheduleRequest

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Request
com.microsoft.graph.models.UnifiedRoleAssignmentScheduleRequest
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class UnifiedRoleAssignmentScheduleRequest extends Request implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static UnifiedRoleAssignmentScheduleRequest 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 UnifiedRoleAssignmentScheduleRequest
    • getAction

      @Nullable public UnifiedRoleScheduleRequestActions getAction()
      Gets the action property value. Represents the type of the operation on the role assignment request. The possible values are: adminAssign, adminUpdate, adminRemove, selfActivate, selfDeactivate, adminExtend, adminRenew, selfExtend, selfRenew, unknownFutureValue. adminAssign: For administrators to assign roles to principals.adminRemove: For administrators to remove principals from roles. adminUpdate: For administrators to change existing role assignments.adminExtend: For administrators to extend expiring assignments.adminRenew: For administrators to renew expired assignments.selfActivate: For principals to activate their assignments.selfDeactivate: For principals to deactivate their active assignments.selfExtend: For principals to request to extend their expiring assignments.selfRenew: For principals to request to renew their expired assignments.
      Returns:
      a UnifiedRoleScheduleRequestActions
    • getActivatedUsing

      @Nullable public UnifiedRoleEligibilitySchedule getActivatedUsing()
      Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand.
      Returns:
      a UnifiedRoleEligibilitySchedule
    • getAppScope

      @Nullable public AppScope getAppScope()
      Gets the appScope property value. Read-only property with details of the app-specific scope when the assignment is scoped to an app. Nullable. Supports $expand.
      Returns:
      a AppScope
    • getAppScopeId

      @Nullable public String getAppScopeId()
      Gets the appScopeId property value. Identifier of the app-specific scope when the assignment is scoped to an app. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by this application only. Use / for tenant-wide app scopes. Use directoryScopeId to limit the scope to particular directory objects, for example, administrative units. Supports $filter (eq, ne, and on null values).
      Returns:
      a String
    • getDirectoryScope

      @Nullable public DirectoryObject getDirectoryScope()
      Gets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand.
      Returns:
      a DirectoryObject
    • getDirectoryScopeId

      @Nullable public String getDirectoryScopeId()
      Gets the directoryScopeId property value. Identifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications. Use / for tenant-wide scope. Use appScopeId to limit the scope to an application only. Supports $filter (eq, ne, and on null values).
      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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Request
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsValidationOnly

      @Nullable public Boolean getIsValidationOnly()
      Gets the isValidationOnly property value. Determines whether the call is a validation or an actual call. Only set this property if you want to check whether an activation is subject to additional rules like MFA before actually submitting the request.
      Returns:
      a Boolean
    • getJustification

      @Nullable public String getJustification()
      Gets the justification property value. A message provided by users and administrators when create they create the unifiedRoleAssignmentScheduleRequest object.
      Returns:
      a String
    • getPrincipal

      @Nullable public DirectoryObject getPrincipal()
      Gets the principal property value. The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only.
      Returns:
      a DirectoryObject
    • getPrincipalId

      @Nullable public String getPrincipalId()
      Gets the principalId property value. Identifier of the principal that has been granted the assignment. Can be a user, role-assignable group, or a service principal. Supports $filter (eq, ne).
      Returns:
      a String
    • getRoleDefinition

      @Nullable public UnifiedRoleDefinition getRoleDefinition()
      Gets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand.
      Returns:
      a UnifiedRoleDefinition
    • getRoleDefinitionId

      @Nullable public String getRoleDefinitionId()
      Gets the roleDefinitionId property value. Identifier of the unifiedRoleDefinition object that is being assigned to the principal. Supports $filter (eq, ne).
      Returns:
      a String
    • getScheduleInfo

      @Nullable public RequestSchedule getScheduleInfo()
      Gets the scheduleInfo property value. The period of the role assignment. Recurring schedules are currently unsupported.
      Returns:
      a RequestSchedule
    • getTargetSchedule

      @Nullable public UnifiedRoleAssignmentSchedule getTargetSchedule()
      Gets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand.
      Returns:
      a UnifiedRoleAssignmentSchedule
    • getTargetScheduleId

      @Nullable public String getTargetScheduleId()
      Gets the targetScheduleId property value. Identifier of the schedule object that's linked to the assignment request. Supports $filter (eq, ne).
      Returns:
      a String
    • getTicketInfo

      @Nullable public TicketInfo getTicketInfo()
      Gets the ticketInfo property value. Ticket details linked to the role assignment request including details of the ticket number and ticket system.
      Returns:
      a TicketInfo
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Request
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAction

      public void setAction(@Nullable UnifiedRoleScheduleRequestActions value)
      Sets the action property value. Represents the type of the operation on the role assignment request. The possible values are: adminAssign, adminUpdate, adminRemove, selfActivate, selfDeactivate, adminExtend, adminRenew, selfExtend, selfRenew, unknownFutureValue. adminAssign: For administrators to assign roles to principals.adminRemove: For administrators to remove principals from roles. adminUpdate: For administrators to change existing role assignments.adminExtend: For administrators to extend expiring assignments.adminRenew: For administrators to renew expired assignments.selfActivate: For principals to activate their assignments.selfDeactivate: For principals to deactivate their active assignments.selfExtend: For principals to request to extend their expiring assignments.selfRenew: For principals to request to renew their expired assignments.
      Parameters:
      value - Value to set for the action property.
    • setActivatedUsing

      public void setActivatedUsing(@Nullable UnifiedRoleEligibilitySchedule value)
      Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter will show the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand.
      Parameters:
      value - Value to set for the activatedUsing property.
    • setAppScope

      public void setAppScope(@Nullable AppScope value)
      Sets the appScope property value. Read-only property with details of the app-specific scope when the assignment is scoped to an app. Nullable. Supports $expand.
      Parameters:
      value - Value to set for the appScope property.
    • setAppScopeId

      public void setAppScopeId(@Nullable String value)
      Sets the appScopeId property value. Identifier of the app-specific scope when the assignment is scoped to an app. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by this application only. Use / for tenant-wide app scopes. Use directoryScopeId to limit the scope to particular directory objects, for example, administrative units. Supports $filter (eq, ne, and on null values).
      Parameters:
      value - Value to set for the appScopeId property.
    • setDirectoryScope

      public void setDirectoryScope(@Nullable DirectoryObject value)
      Sets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand.
      Parameters:
      value - Value to set for the directoryScope property.
    • setDirectoryScopeId

      public void setDirectoryScopeId(@Nullable String value)
      Sets the directoryScopeId property value. Identifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications. Use / for tenant-wide scope. Use appScopeId to limit the scope to an application only. Supports $filter (eq, ne, and on null values).
      Parameters:
      value - Value to set for the directoryScopeId property.
    • setIsValidationOnly

      public void setIsValidationOnly(@Nullable Boolean value)
      Sets the isValidationOnly property value. Determines whether the call is a validation or an actual call. Only set this property if you want to check whether an activation is subject to additional rules like MFA before actually submitting the request.
      Parameters:
      value - Value to set for the isValidationOnly property.
    • setJustification

      public void setJustification(@Nullable String value)
      Sets the justification property value. A message provided by users and administrators when create they create the unifiedRoleAssignmentScheduleRequest object.
      Parameters:
      value - Value to set for the justification property.
    • setPrincipal

      public void setPrincipal(@Nullable DirectoryObject value)
      Sets the principal property value. The principal that's getting a role assignment through the request. Supports $expand and $select nested in $expand for id only.
      Parameters:
      value - Value to set for the principal property.
    • setPrincipalId

      public void setPrincipalId(@Nullable String value)
      Sets the principalId property value. Identifier of the principal that has been granted the assignment. Can be a user, role-assignable group, or a service principal. Supports $filter (eq, ne).
      Parameters:
      value - Value to set for the principalId property.
    • setRoleDefinition

      public void setRoleDefinition(@Nullable UnifiedRoleDefinition value)
      Sets the roleDefinition property value. Detailed information for the unifiedRoleDefinition object that is referenced through the roleDefinitionId property. Supports $expand and $select nested in $expand.
      Parameters:
      value - Value to set for the roleDefinition property.
    • setRoleDefinitionId

      public void setRoleDefinitionId(@Nullable String value)
      Sets the roleDefinitionId property value. Identifier of the unifiedRoleDefinition object that is being assigned to the principal. Supports $filter (eq, ne).
      Parameters:
      value - Value to set for the roleDefinitionId property.
    • setScheduleInfo

      public void setScheduleInfo(@Nullable RequestSchedule value)
      Sets the scheduleInfo property value. The period of the role assignment. Recurring schedules are currently unsupported.
      Parameters:
      value - Value to set for the scheduleInfo property.
    • setTargetSchedule

      public void setTargetSchedule(@Nullable UnifiedRoleAssignmentSchedule value)
      Sets the targetSchedule property value. The schedule for an eligible role assignment that is referenced through the targetScheduleId property. Supports $expand and $select nested in $expand.
      Parameters:
      value - Value to set for the targetSchedule property.
    • setTargetScheduleId

      public void setTargetScheduleId(@Nullable String value)
      Sets the targetScheduleId property value. Identifier of the schedule object that's linked to the assignment request. Supports $filter (eq, ne).
      Parameters:
      value - Value to set for the targetScheduleId property.
    • setTicketInfo

      public void setTicketInfo(@Nullable TicketInfo value)
      Sets the ticketInfo property value. Ticket details linked to the role assignment request including details of the ticket number and ticket system.
      Parameters:
      value - Value to set for the ticketInfo property.