Class CreateRoleAssignmentRequest.AssignmentScope
java.lang.Object
com.eqixiac.equinix.iam.model.json.creators.CreateRoleAssignmentRequest.AssignmentScope
- Enclosing class:
CreateRoleAssignmentRequest
Nested object describing the scope of a role assignment — the resource (by
id and
type) within which the assigned role applies, optionally with a parent
reference.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested object identifying the parent of an assignment scope — when the scopetypeisPORT, the owning project (spec:CreateRoleAssignmentInput→assignmentScope.parent; bothidandtypeare required, andtypeonly admitsPROJECT). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the scope resource identifier.Sets the optional parent reference of the scope — required when the scopetypeisPORT, identifying the owning project.Sets the scope resource type.
-
Constructor Details
-
AssignmentScope
public AssignmentScope()
-
-
Method Details
-
id
Sets the scope resource identifier.- Parameters:
id- the resource id- Returns:
- this assignment scope for chaining
-
type
Sets the scope resource type.- Parameters:
type- the resource type- Returns:
- this assignment scope for chaining
-
parent
public CreateRoleAssignmentRequest.AssignmentScope parent(CreateRoleAssignmentRequest.AssignmentScope.Parent parent) Sets the optional parent reference of the scope — required when the scopetypeisPORT, identifying the owning project.- Parameters:
parent- the parent reference- Returns:
- this assignment scope for chaining
-