Class RoleAssignmentScheduleProperties

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.RoleAssignmentScheduleProperties

public final class RoleAssignmentScheduleProperties extends Object
Role assignment schedule properties with scope.
  • Constructor Details

    • RoleAssignmentScheduleProperties

      public RoleAssignmentScheduleProperties()
      Creates an instance of RoleAssignmentScheduleProperties class.
  • Method Details

    • scope

      public String scope()
      Get the scope property: The role assignment schedule scope.
      Returns:
      the scope value.
    • withScope

      public RoleAssignmentScheduleProperties withScope(String scope)
      Set the scope property: The role assignment schedule scope.
      Parameters:
      scope - the scope value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • roleDefinitionId

      public String roleDefinitionId()
      Get the roleDefinitionId property: The role definition ID.
      Returns:
      the roleDefinitionId value.
    • withRoleDefinitionId

      public RoleAssignmentScheduleProperties withRoleDefinitionId(String roleDefinitionId)
      Set the roleDefinitionId property: The role definition ID.
      Parameters:
      roleDefinitionId - the roleDefinitionId value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • principalId

      public String principalId()
      Get the principalId property: The principal ID.
      Returns:
      the principalId value.
    • withPrincipalId

      public RoleAssignmentScheduleProperties withPrincipalId(String principalId)
      Set the principalId property: The principal ID.
      Parameters:
      principalId - the principalId value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • principalType

      public PrincipalType principalType()
      Get the principalType property: The principal type of the assigned principal ID.
      Returns:
      the principalType value.
    • withPrincipalType

      public RoleAssignmentScheduleProperties withPrincipalType(PrincipalType principalType)
      Set the principalType property: The principal type of the assigned principal ID.
      Parameters:
      principalType - the principalType value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • roleAssignmentScheduleRequestId

      public String roleAssignmentScheduleRequestId()
      Get the roleAssignmentScheduleRequestId property: The id of roleAssignmentScheduleRequest used to create this roleAssignmentSchedule.
      Returns:
      the roleAssignmentScheduleRequestId value.
    • withRoleAssignmentScheduleRequestId

      public RoleAssignmentScheduleProperties withRoleAssignmentScheduleRequestId(String roleAssignmentScheduleRequestId)
      Set the roleAssignmentScheduleRequestId property: The id of roleAssignmentScheduleRequest used to create this roleAssignmentSchedule.
      Parameters:
      roleAssignmentScheduleRequestId - the roleAssignmentScheduleRequestId value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • linkedRoleEligibilityScheduleId

      public String linkedRoleEligibilityScheduleId()
      Get the linkedRoleEligibilityScheduleId property: The id of roleEligibilitySchedule used to activated this roleAssignmentSchedule.
      Returns:
      the linkedRoleEligibilityScheduleId value.
    • withLinkedRoleEligibilityScheduleId

      public RoleAssignmentScheduleProperties withLinkedRoleEligibilityScheduleId(String linkedRoleEligibilityScheduleId)
      Set the linkedRoleEligibilityScheduleId property: The id of roleEligibilitySchedule used to activated this roleAssignmentSchedule.
      Parameters:
      linkedRoleEligibilityScheduleId - the linkedRoleEligibilityScheduleId value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • assignmentType

      public AssignmentType assignmentType()
      Get the assignmentType property: Assignment type of the role assignment schedule.
      Returns:
      the assignmentType value.
    • withAssignmentType

      public RoleAssignmentScheduleProperties withAssignmentType(AssignmentType assignmentType)
      Set the assignmentType property: Assignment type of the role assignment schedule.
      Parameters:
      assignmentType - the assignmentType value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • memberType

      public MemberType memberType()
      Get the memberType property: Membership type of the role assignment schedule.
      Returns:
      the memberType value.
    • withMemberType

      public RoleAssignmentScheduleProperties withMemberType(MemberType memberType)
      Set the memberType property: Membership type of the role assignment schedule.
      Parameters:
      memberType - the memberType value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • status

      public Status status()
      Get the status property: The status of the role assignment schedule.
      Returns:
      the status value.
    • withStatus

      public RoleAssignmentScheduleProperties withStatus(Status status)
      Set the status property: The status of the role assignment schedule.
      Parameters:
      status - the status value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • startDateTime

      public OffsetDateTime startDateTime()
      Get the startDateTime property: Start DateTime when role assignment schedule.
      Returns:
      the startDateTime value.
    • withStartDateTime

      public RoleAssignmentScheduleProperties withStartDateTime(OffsetDateTime startDateTime)
      Set the startDateTime property: Start DateTime when role assignment schedule.
      Parameters:
      startDateTime - the startDateTime value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • endDateTime

      public OffsetDateTime endDateTime()
      Get the endDateTime property: End DateTime when role assignment schedule.
      Returns:
      the endDateTime value.
    • withEndDateTime

      public RoleAssignmentScheduleProperties withEndDateTime(OffsetDateTime endDateTime)
      Set the endDateTime property: End DateTime when role assignment schedule.
      Parameters:
      endDateTime - the endDateTime value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • condition

      public String condition()
      Get the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.
      Returns:
      the condition value.
    • withCondition

      public RoleAssignmentScheduleProperties withCondition(String condition)
      Set the condition property: The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.
      Parameters:
      condition - the condition value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • conditionVersion

      public String conditionVersion()
      Get the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.
      Returns:
      the conditionVersion value.
    • withConditionVersion

      public RoleAssignmentScheduleProperties withConditionVersion(String conditionVersion)
      Set the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.
      Parameters:
      conditionVersion - the conditionVersion value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • createdOn

      public OffsetDateTime createdOn()
      Get the createdOn property: DateTime when role assignment schedule was created.
      Returns:
      the createdOn value.
    • withCreatedOn

      public RoleAssignmentScheduleProperties withCreatedOn(OffsetDateTime createdOn)
      Set the createdOn property: DateTime when role assignment schedule was created.
      Parameters:
      createdOn - the createdOn value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • updatedOn

      public OffsetDateTime updatedOn()
      Get the updatedOn property: DateTime when role assignment schedule was modified.
      Returns:
      the updatedOn value.
    • withUpdatedOn

      public RoleAssignmentScheduleProperties withUpdatedOn(OffsetDateTime updatedOn)
      Set the updatedOn property: DateTime when role assignment schedule was modified.
      Parameters:
      updatedOn - the updatedOn value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • expandedProperties

      public ExpandedProperties expandedProperties()
      Get the expandedProperties property: Additional properties of principal, scope and role definition.
      Returns:
      the expandedProperties value.
    • withExpandedProperties

      public RoleAssignmentScheduleProperties withExpandedProperties(ExpandedProperties expandedProperties)
      Set the expandedProperties property: Additional properties of principal, scope and role definition.
      Parameters:
      expandedProperties - the expandedProperties value to set.
      Returns:
      the RoleAssignmentScheduleProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.