Class AddGrantRequest

java.lang.Object
com.eqixiac.equinix.iam.model.json.creators.AddGrantRequest

public class AddGrantRequest extends Object
Request body for adding a grant to an IAM access policy via POST /v1/projects/{projectId}/accessPolicies/{accessPolicyId}/grants (operationId addGrant, spec schema AddGrantBody).

The lastRev field supports optimistic concurrency control.

  • Constructor Details

    • AddGrantRequest

      public AddGrantRequest()
  • Method Details

    • grantee

      public AddGrantRequest grantee(String grantee)
      Sets the grantee (required) — the principal receiving the grant.
      Parameters:
      grantee - the grantee
      Returns:
      this request for chaining
    • lastRev

      public AddGrantRequest lastRev(String lastRev)
      Sets the last known revision for optimistic concurrency control.
      Parameters:
      lastRev - the last revision
      Returns:
      this request for chaining