Class UnifiedRoleScheduleInstanceBase

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.UnifiedRoleScheduleInstanceBase
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel
Direct Known Subclasses:
UnifiedRoleAssignmentScheduleInstance, UnifiedRoleEligibilityScheduleInstance

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

    • UnifiedRoleScheduleInstanceBase

      public UnifiedRoleScheduleInstanceBase()
      Instantiates a new UnifiedRoleScheduleInstanceBase and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static UnifiedRoleScheduleInstanceBase 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 UnifiedRoleScheduleInstanceBase
    • getAppScope

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

      @Nullable public String getAppScopeId()
      Gets the appScopeId property value. Identifier of the app-specific scope when the assignment or role eligibility is scoped to an app. The scope of an assignment or role eligibility 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.
      Returns:
      a String
    • getDirectoryScope

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

      @Nullable public String getDirectoryScopeId()
      Gets the directoryScopeId property value. Identifier of the directory object representing the scope of the assignment or role eligibility. The scope of an assignment or 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.
      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 Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getPrincipal

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

      @Nullable public String getPrincipalId()
      Gets the principalId property value. Identifier of the principal that has been granted the role assignment or that's eligible for a role.
      Returns:
      a String
    • getRoleDefinition

      @Nullable public UnifiedRoleDefinition getRoleDefinition()
      Gets the roleDefinition property value. Detailed information for the roleDefinition object that is referenced through the roleDefinitionId property.
      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 or that the principal is eligible for.
      Returns:
      a String
    • 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 Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • 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 or role eligibility is scoped to an app. Nullable.
      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 or role eligibility is scoped to an app. The scope of an assignment or role eligibility 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.
      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 or role eligibility. Read-only.
      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 or role eligibility. The scope of an assignment or 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.
      Parameters:
      value - Value to set for the directoryScopeId property.
    • setPrincipal

      public void setPrincipal(@Nullable DirectoryObject value)
      Sets the principal property value. The principal that's getting a role assignment or role eligibility through the request.
      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 assignment or that's eligible for a role.
      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 roleDefinition object that is referenced through the roleDefinitionId property.
      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 or that the principal is eligible for.
      Parameters:
      value - Value to set for the roleDefinitionId property.