Class RoleEligibilityScheduleInstanceProperties

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

public final class RoleEligibilityScheduleInstanceProperties extends Object
Role eligibility schedule properties with scope.
  • Constructor Details

    • RoleEligibilityScheduleInstanceProperties

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

    • scope

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

      Set the scope property: The role eligibility schedule scope.
      Parameters:
      scope - the scope value to set.
      Returns:
      the RoleEligibilityScheduleInstanceProperties object itself.
    • roleDefinitionId

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

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

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

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

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

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

      public String roleEligibilityScheduleId()
      Get the roleEligibilityScheduleId property: Id of the master role eligibility schedule.
      Returns:
      the roleEligibilityScheduleId value.
    • withRoleEligibilityScheduleId

      public RoleEligibilityScheduleInstanceProperties withRoleEligibilityScheduleId(String roleEligibilityScheduleId)
      Set the roleEligibilityScheduleId property: Id of the master role eligibility schedule.
      Parameters:
      roleEligibilityScheduleId - the roleEligibilityScheduleId value to set.
      Returns:
      the RoleEligibilityScheduleInstanceProperties object itself.
    • status

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

      Set the status property: The status of the role eligibility schedule instance.
      Parameters:
      status - the status value to set.
      Returns:
      the RoleEligibilityScheduleInstanceProperties object itself.
    • startDateTime

      public OffsetDateTime startDateTime()
      Get the startDateTime property: The startDateTime of the role eligibility schedule instance.
      Returns:
      the startDateTime value.
    • withStartDateTime

      public RoleEligibilityScheduleInstanceProperties withStartDateTime(OffsetDateTime startDateTime)
      Set the startDateTime property: The startDateTime of the role eligibility schedule instance.
      Parameters:
      startDateTime - the startDateTime value to set.
      Returns:
      the RoleEligibilityScheduleInstanceProperties object itself.
    • endDateTime

      public OffsetDateTime endDateTime()
      Get the endDateTime property: The endDateTime of the role eligibility schedule instance.
      Returns:
      the endDateTime value.
    • withEndDateTime

      public RoleEligibilityScheduleInstanceProperties withEndDateTime(OffsetDateTime endDateTime)
      Set the endDateTime property: The endDateTime of the role eligibility schedule instance.
      Parameters:
      endDateTime - the endDateTime value to set.
      Returns:
      the RoleEligibilityScheduleInstanceProperties object itself.
    • memberType

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

      public RoleEligibilityScheduleInstanceProperties withMemberType(MemberType memberType)
      Set the memberType property: Membership type of the role eligibility schedule.
      Parameters:
      memberType - the memberType value to set.
      Returns:
      the RoleEligibilityScheduleInstanceProperties 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 RoleEligibilityScheduleInstanceProperties 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 RoleEligibilityScheduleInstanceProperties 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 RoleEligibilityScheduleInstanceProperties 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 RoleEligibilityScheduleInstanceProperties object itself.
    • createdOn

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

      Set the createdOn property: DateTime when role eligibility schedule was created.
      Parameters:
      createdOn - the createdOn value to set.
      Returns:
      the RoleEligibilityScheduleInstanceProperties object itself.
    • expandedProperties

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

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

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