Interface AccessGrant.Builder

  • Method Details

    • grantId

      AccessGrant.Builder grantId(String grantId)

      The unique ID of the access grant.

      Parameters:
      grantId - The unique ID of the access grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grantArn

      AccessGrant.Builder grantArn(String grantArn)

      The Amazon Resource Name (ARN) of the access grant.

      Parameters:
      grantArn - The Amazon Resource Name (ARN) of the access grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      A name that identifies the access grant.

      Parameters:
      name - A name that identifies the access grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • accountId

      AccessGrant.Builder accountId(String accountId)

      The AWS account ID that owns the grant.

      Parameters:
      accountId - The AWS account ID that owns the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • domainId

      AccessGrant.Builder domainId(String domainId)

      The ID of the domain the grant belongs to.

      Parameters:
      domainId - The ID of the domain the grant belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The principal receiving the grant.

      Parameters:
      principal - The principal receiving the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The principal receiving the grant.

      This is a convenience method that creates an instance of the AccessGrantPrincipal.Builder avoiding the need to create one manually via AccessGrantPrincipal.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to principal(AccessGrantPrincipal).

      Parameters:
      principal - a consumer that will call methods on AccessGrantPrincipal.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • permission

      AccessGrant.Builder permission(String permission)

      The permission granted.

      Parameters:
      permission - The permission granted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • permission

      The permission granted.

      Parameters:
      permission - The permission granted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • grantType

      AccessGrant.Builder grantType(String grantType)

      Who manages the grant.

      Parameters:
      grantType - Who manages the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • grantType

      AccessGrant.Builder grantType(AccessGrantType grantType)

      Who manages the grant.

      Parameters:
      grantType - Who manages the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdBy

      AccessGrant.Builder createdBy(String createdBy)

      The principal that created the grant.

      Parameters:
      createdBy - The principal that created the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      AccessGrant.Builder createdAt(Instant createdAt)

      The timestamp when the grant was created.

      Parameters:
      createdAt - The timestamp when the grant was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      AccessGrant.Builder updatedAt(Instant updatedAt)

      The timestamp when the grant was last updated.

      Parameters:
      updatedAt - The timestamp when the grant was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • spaceId

      AccessGrant.Builder spaceId(String spaceId)

      The space this grant applies to. Domain-scoped grants are returned by ListDomainAccessGrantsForOrganization instead.

      Parameters:
      spaceId - The space this grant applies to. Domain-scoped grants are returned by ListDomainAccessGrantsForOrganization instead.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopedActions

      AccessGrant.Builder scopedActions(Collection<ScopedActions> scopedActions)

      Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.

      Parameters:
      scopedActions - Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopedActions

      AccessGrant.Builder scopedActions(ScopedActions... scopedActions)

      Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.

      Parameters:
      scopedActions - Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopedActions

      AccessGrant.Builder scopedActions(Consumer<ScopedActions.Builder>... scopedActions)

      Groups of actions allowed by the grant, each with the resource scopes and conditions that limit those actions.

      This is a convenience method that creates an instance of the ScopedActions.Builder avoiding the need to create one manually via ScopedActions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scopedActions(List<ScopedActions>).

      Parameters:
      scopedActions - a consumer that will call methods on ScopedActions.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: