Class RoleEligibilityScheduleInstanceInner
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.RoleEligibilityScheduleInstanceInner
Information about current or upcoming role eligibility schedule instance.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RoleEligibilityScheduleInstanceInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the condition property: The conditions on the role assignment.Get the conditionVersion property: Version of the condition.Get the createdOn property: DateTime when role eligibility schedule was created.Get the endDateTime property: The endDateTime of the role eligibility schedule instance.Get the expandedProperties property: Additional properties of principal, scope and role definition.id()Get the id property: The role eligibility schedule instance ID.Get the memberType property: Membership type of the role eligibility schedule.name()Get the name property: The role eligibility schedule instance name.Get the principalId property: The principal ID.Get the principalType property: The principal type of the assigned principal ID.Get the roleDefinitionId property: The role definition ID.Get the roleEligibilityScheduleId property: Id of the master role eligibility schedule.scope()Get the scope property: The role eligibility schedule scope.Get the startDateTime property: The startDateTime of the role eligibility schedule instance.status()Get the status property: The status of the role eligibility schedule instance.type()Get the type property: The role eligibility schedule instance type.voidvalidate()Validates the instance.withCondition(String condition) Set the condition property: The conditions on the role assignment.withConditionVersion(String conditionVersion) Set the conditionVersion property: Version of the condition.withCreatedOn(OffsetDateTime createdOn) Set the createdOn property: DateTime when role eligibility schedule was created.withEndDateTime(OffsetDateTime endDateTime) Set the endDateTime property: The endDateTime of the role eligibility schedule instance.withExpandedProperties(ExpandedProperties expandedProperties) Set the expandedProperties property: Additional properties of principal, scope and role definition.withMemberType(MemberType memberType) Set the memberType property: Membership type of the role eligibility schedule.withPrincipalId(String principalId) Set the principalId property: The principal ID.withPrincipalType(PrincipalType principalType) Set the principalType property: The principal type of the assigned principal ID.withRoleDefinitionId(String roleDefinitionId) Set the roleDefinitionId property: The role definition ID.withRoleEligibilityScheduleId(String roleEligibilityScheduleId) Set the roleEligibilityScheduleId property: Id of the master role eligibility schedule.Set the scope property: The role eligibility schedule scope.withStartDateTime(OffsetDateTime startDateTime) Set the startDateTime property: The startDateTime of the role eligibility schedule instance.withStatus(Status status) Set the status property: The status of the role eligibility schedule instance.
-
Constructor Details
-
RoleEligibilityScheduleInstanceInner
public RoleEligibilityScheduleInstanceInner()Creates an instance of RoleEligibilityScheduleInstanceInner class.
-
-
Method Details
-
id
Get the id property: The role eligibility schedule instance ID.- Returns:
- the id value.
-
name
Get the name property: The role eligibility schedule instance name.- Returns:
- the name value.
-
type
Get the type property: The role eligibility schedule instance type.- Returns:
- the type value.
-
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 RoleEligibilityScheduleInstanceInner object itself.
-
roleDefinitionId
Get the roleDefinitionId property: The role definition ID.- Returns:
- the roleDefinitionId value.
-
withRoleDefinitionId
Set the roleDefinitionId property: The role definition ID.- Parameters:
roleDefinitionId- the roleDefinitionId value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
principalId
Get the principalId property: The principal ID.- Returns:
- the principalId value.
-
withPrincipalId
Set the principalId property: The principal ID.- Parameters:
principalId- the principalId value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
principalType
Get the principalType property: The principal type of the assigned principal ID.- Returns:
- the principalType value.
-
withPrincipalType
Set the principalType property: The principal type of the assigned principal ID.- Parameters:
principalType- the principalType value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
roleEligibilityScheduleId
Get the roleEligibilityScheduleId property: Id of the master role eligibility schedule.- Returns:
- the roleEligibilityScheduleId value.
-
withRoleEligibilityScheduleId
public RoleEligibilityScheduleInstanceInner withRoleEligibilityScheduleId(String roleEligibilityScheduleId) Set the roleEligibilityScheduleId property: Id of the master role eligibility schedule.- Parameters:
roleEligibilityScheduleId- the roleEligibilityScheduleId value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
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 RoleEligibilityScheduleInstanceInner object itself.
-
startDateTime
Get the startDateTime property: The startDateTime of the role eligibility schedule instance.- Returns:
- the startDateTime value.
-
withStartDateTime
Set the startDateTime property: The startDateTime of the role eligibility schedule instance.- Parameters:
startDateTime- the startDateTime value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
endDateTime
Get the endDateTime property: The endDateTime of the role eligibility schedule instance.- Returns:
- the endDateTime value.
-
withEndDateTime
Set the endDateTime property: The endDateTime of the role eligibility schedule instance.- Parameters:
endDateTime- the endDateTime value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
memberType
Get the memberType property: Membership type of the role eligibility schedule.- Returns:
- the memberType value.
-
withMemberType
Set the memberType property: Membership type of the role eligibility schedule.- Parameters:
memberType- the memberType value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
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
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 RoleEligibilityScheduleInstanceInner object itself.
-
conditionVersion
Get the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.- Returns:
- the conditionVersion value.
-
withConditionVersion
Set the conditionVersion property: Version of the condition. Currently accepted value is '2.0'.- Parameters:
conditionVersion- the conditionVersion value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
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 RoleEligibilityScheduleInstanceInner object itself.
-
expandedProperties
Get the expandedProperties property: Additional properties of principal, scope and role definition.- Returns:
- the expandedProperties value.
-
withExpandedProperties
public RoleEligibilityScheduleInstanceInner withExpandedProperties(ExpandedProperties expandedProperties) Set the expandedProperties property: Additional properties of principal, scope and role definition.- Parameters:
expandedProperties- the expandedProperties value to set.- Returns:
- the RoleEligibilityScheduleInstanceInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-