Class UnifiedRoleEligibilityScheduleRequest

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

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

  • Method Details

    • createFromDiscriminatorValue

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

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

      @Nullable public AppScope getAppScope()
      Gets the appScope property value. Read-only property with details of the app-specific scope when the role eligibility 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 role eligibility is scoped to an app. The scope of a role eligibility determines the set of resources for which the principal is eligible to 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 role eligibility. 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 role eligibility. The scope of a role eligibility 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 unifiedRoleEligibilityScheduleRequest object.
      Returns:
      a String
    • getPrincipal

      @Nullable public DirectoryObject getPrincipal()
      Gets the principal property value. The principal that's getting a role eligibility through the request. Supports $expand.
      Returns:
      a DirectoryObject
    • getPrincipalId

      @Nullable public String getPrincipalId()
      Gets the principalId property value. Identifier of the principal that has been granted the role eligibility. Can be a user or a role-assignable group. You can grant only active assignments service principals.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.
      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 eligibility. Recurring schedules are currently unsupported.
      Returns:
      a RequestSchedule
    • getTargetSchedule

      @Nullable public UnifiedRoleEligibilitySchedule getTargetSchedule()
      Gets the targetSchedule property value. The schedule for a role eligibility that is referenced through the targetScheduleId property. Supports $expand.
      Returns:
      a UnifiedRoleEligibilitySchedule
    • getTargetScheduleId

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

      @Nullable public TicketInfo getTicketInfo()
      Gets the ticketInfo property value. Ticket details linked to the role eligibility request including details of the ticket number and ticket system. Optional.
      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 operation on the role eligibility request. The possible values are: adminAssign, adminUpdate, adminRemove, selfActivate, selfDeactivate, adminExtend, adminRenew, selfExtend, selfRenew, unknownFutureValue. adminAssign: For administrators to assign eligible roles to principals.adminRemove: For administrators to remove eligible roles from principals. adminUpdate: For administrators to change existing role eligibilities.adminExtend: For administrators to extend expiring role eligibilities.adminRenew: For administrators to renew expired eligibilities.selfActivate: For users to activate their assignments.selfDeactivate: For users to deactivate their active assignments.selfExtend: For users to request to extend their expiring assignments.selfRenew: For users to request to renew their expired assignments.
      Parameters:
      value - Value to set for the action 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 role eligibility 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 role eligibility is scoped to an app. The scope of a role eligibility determines the set of resources for which the principal is eligible to 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 role eligibility. 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 role eligibility. The scope of a role eligibility 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 unifiedRoleEligibilityScheduleRequest 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 eligibility through the request. Supports $expand.
      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 role eligibility. Can be a user or a role-assignable group. You can grant only active assignments service principals.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.
      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 eligibility. Recurring schedules are currently unsupported.
      Parameters:
      value - Value to set for the scheduleInfo property.
    • setTargetSchedule

      public void setTargetSchedule(@Nullable UnifiedRoleEligibilitySchedule value)
      Sets the targetSchedule property value. The schedule for a role eligibility that is referenced through the targetScheduleId property. Supports $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 eligibility 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 eligibility request including details of the ticket number and ticket system. Optional.
      Parameters:
      value - Value to set for the ticketInfo property.