Class RoleAssignmentCreateParameters
- java.lang.Object
-
- com.azure.resourcemanager.authorization.models.RoleAssignmentCreateParameters
-
public final class RoleAssignmentCreateParameters extends Object
Role assignment create parameters.
-
-
Constructor Summary
Constructors Constructor Description RoleAssignmentCreateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcondition()Get the condition property: The conditions on the role assignment.StringconditionVersion()Get the conditionVersion property: Version of the condition.StringcreatedBy()Get the createdBy property: Id of the user who created the assignment.OffsetDateTimecreatedOn()Get the createdOn property: Time it was created.StringdelegatedManagedIdentityResourceId()Get the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.Stringdescription()Get the description property: Description of role assignment.StringprincipalId()Get the principalId property: The principal ID.PrincipalTypeprincipalType()Get the principalType property: The principal type of the assigned principal ID.StringroleDefinitionId()Get the roleDefinitionId property: The role definition ID.Stringscope()Get the scope property: The role assignment scope.StringupdatedBy()Get the updatedBy property: Id of the user who updated the assignment.OffsetDateTimeupdatedOn()Get the updatedOn property: Time it was updated.voidvalidate()Validates the instance.RoleAssignmentCreateParameterswithCondition(String condition)Set the condition property: The conditions on the role assignment.RoleAssignmentCreateParameterswithConditionVersion(String conditionVersion)Set the conditionVersion property: Version of the condition.RoleAssignmentCreateParameterswithDelegatedManagedIdentityResourceId(String delegatedManagedIdentityResourceId)Set the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.RoleAssignmentCreateParameterswithDescription(String description)Set the description property: Description of role assignment.RoleAssignmentCreateParameterswithPrincipalId(String principalId)Set the principalId property: The principal ID.RoleAssignmentCreateParameterswithPrincipalType(PrincipalType principalType)Set the principalType property: The principal type of the assigned principal ID.RoleAssignmentCreateParameterswithRoleDefinitionId(String roleDefinitionId)Set the roleDefinitionId property: The role definition ID.
-
-
-
Method Detail
-
scope
public String scope()
Get the scope property: The role assignment scope.- Returns:
- the scope value.
-
roleDefinitionId
public String roleDefinitionId()
Get the roleDefinitionId property: The role definition ID.- Returns:
- the roleDefinitionId value.
-
withRoleDefinitionId
public RoleAssignmentCreateParameters withRoleDefinitionId(String roleDefinitionId)
Set the roleDefinitionId property: The role definition ID.- Parameters:
roleDefinitionId- the roleDefinitionId value to set.- Returns:
- the RoleAssignmentCreateParameters object itself.
-
principalId
public String principalId()
Get the principalId property: The principal ID.- Returns:
- the principalId value.
-
withPrincipalId
public RoleAssignmentCreateParameters withPrincipalId(String principalId)
Set the principalId property: The principal ID.- Parameters:
principalId- the principalId value to set.- Returns:
- the RoleAssignmentCreateParameters object itself.
-
principalType
public PrincipalType principalType()
Get the principalType property: The principal type of the assigned principal ID.- Returns:
- the principalType value.
-
withPrincipalType
public RoleAssignmentCreateParameters withPrincipalType(PrincipalType principalType)
Set the principalType property: The principal type of the assigned principal ID.- Parameters:
principalType- the principalType value to set.- Returns:
- the RoleAssignmentCreateParameters object itself.
-
description
public String description()
Get the description property: Description of role assignment.- Returns:
- the description value.
-
withDescription
public RoleAssignmentCreateParameters withDescription(String description)
Set the description property: Description of role assignment.- Parameters:
description- the description value to set.- Returns:
- the RoleAssignmentCreateParameters 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 RoleAssignmentCreateParameters 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 RoleAssignmentCreateParameters 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 RoleAssignmentCreateParameters 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 RoleAssignmentCreateParameters object itself.
-
createdOn
public OffsetDateTime createdOn()
Get the createdOn property: Time it was created.- Returns:
- the createdOn value.
-
updatedOn
public OffsetDateTime updatedOn()
Get the updatedOn property: Time it was updated.- Returns:
- the updatedOn value.
-
createdBy
public String createdBy()
Get the createdBy property: Id of the user who created the assignment.- Returns:
- the createdBy value.
-
updatedBy
public String updatedBy()
Get the updatedBy property: Id of the user who updated the assignment.- Returns:
- the updatedBy value.
-
delegatedManagedIdentityResourceId
public String delegatedManagedIdentityResourceId()
Get the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.- Returns:
- the delegatedManagedIdentityResourceId value.
-
withDelegatedManagedIdentityResourceId
public RoleAssignmentCreateParameters withDelegatedManagedIdentityResourceId(String delegatedManagedIdentityResourceId)
Set the delegatedManagedIdentityResourceId property: Id of the delegated managed identity resource.- Parameters:
delegatedManagedIdentityResourceId- the delegatedManagedIdentityResourceId value to set.- Returns:
- the RoleAssignmentCreateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-