AccessReviewScope Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. AccessReviewScope
- com.
Implements
public final class AccessReviewScope
implements JsonSerializable<AccessReviewScope>
Descriptor for what needs to be reviewed.
Constructor Summary
| Constructor | Description |
|---|---|
| AccessReviewScope() |
Creates an instance of Access |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Access |
assignmentState()
Get the assignment |
| String |
excludeResourceId()
Get the exclude |
| String |
excludeRoleDefinitionId()
Get the exclude |
| Boolean |
expandNestedMemberships()
Get the expand |
|
static
Access |
fromJson(JsonReader jsonReader)
Reads an instance of Access |
| Duration |
inactiveDuration()
Get the inactive |
| Boolean |
includeAccessBelowResource()
Get the include |
| Boolean |
includeInheritedAccess()
Get the include |
|
Access |
principalType()
Get the principal |
| String |
resourceId()
Get the resource |
| String |
roleDefinitionId()
Get the role |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Access |
withExcludeResourceId(String excludeResourceId)
Set the exclude |
|
Access |
withExcludeRoleDefinitionId(String excludeRoleDefinitionId)
Set the exclude |
|
Access |
withExpandNestedMemberships(Boolean expandNestedMemberships)
Set the expand |
|
Access |
withInactiveDuration(Duration inactiveDuration)
Set the inactive |
|
Access |
withIncludeAccessBelowResource(Boolean includeAccessBelowResource)
Set the include |
|
Access |
withIncludeInheritedAccess(Boolean includeInheritedAccess)
Set the include |
Methods inherited from java.lang.Object
Constructor Details
AccessReviewScope
public AccessReviewScope()
Creates an instance of AccessReviewScope class.
Method Details
assignmentState
public AccessReviewScopeAssignmentState assignmentState()
Get the assignmentState property: The role assignment state eligible/active to review.
Returns:
excludeResourceId
public String excludeResourceId()
Get the excludeResourceId property: This is used to indicate the resource id(s) to exclude.
Returns:
excludeRoleDefinitionId
public String excludeRoleDefinitionId()
Get the excludeRoleDefinitionId property: This is used to indicate the role definition id(s) to exclude.
Returns:
expandNestedMemberships
public Boolean expandNestedMemberships()
Get the expandNestedMemberships property: Flag to indicate whether to expand nested memberships or not.
Returns:
fromJson
public static AccessReviewScope fromJson(JsonReader jsonReader)
Reads an instance of AccessReviewScope from the JsonReader.
Parameters:
Returns:
Throws:
inactiveDuration
public Duration inactiveDuration()
Get the inactiveDuration property: Duration users are inactive for. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO\_8601\#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds)).
Returns:
includeAccessBelowResource
public Boolean includeAccessBelowResource()
Get the includeAccessBelowResource property: Flag to indicate whether to expand nested memberships or not.
Returns:
includeInheritedAccess
public Boolean includeInheritedAccess()
Get the includeInheritedAccess property: Flag to indicate whether to expand nested memberships or not.
Returns:
principalType
public AccessReviewScopePrincipalType principalType()
Get the principalType property: The identity type user/servicePrincipal to review.
Returns:
resourceId
public String resourceId()
Get the resourceId property: ResourceId in which this review is getting created.
Returns:
roleDefinitionId
public String roleDefinitionId()
Get the roleDefinitionId property: This is used to indicate the role being reviewed.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExcludeResourceId
public AccessReviewScope withExcludeResourceId(String excludeResourceId)
Set the excludeResourceId property: This is used to indicate the resource id(s) to exclude.
Parameters:
Returns:
withExcludeRoleDefinitionId
public AccessReviewScope withExcludeRoleDefinitionId(String excludeRoleDefinitionId)
Set the excludeRoleDefinitionId property: This is used to indicate the role definition id(s) to exclude.
Parameters:
Returns:
withExpandNestedMemberships
public AccessReviewScope withExpandNestedMemberships(Boolean expandNestedMemberships)
Set the expandNestedMemberships property: Flag to indicate whether to expand nested memberships or not.
Parameters:
Returns:
withInactiveDuration
public AccessReviewScope withInactiveDuration(Duration inactiveDuration)
Set the inactiveDuration property: Duration users are inactive for. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO\_8601\#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds)).
Parameters:
Returns:
withIncludeAccessBelowResource
public AccessReviewScope withIncludeAccessBelowResource(Boolean includeAccessBelowResource)
Set the includeAccessBelowResource property: Flag to indicate whether to expand nested memberships or not.
Parameters:
Returns:
withIncludeInheritedAccess
public AccessReviewScope withIncludeInheritedAccess(Boolean includeInheritedAccess)
Set the includeInheritedAccess property: Flag to indicate whether to expand nested memberships or not.
Parameters:
Returns: