Interface DelegationRequest.Builder

  • Method Details

    • delegationRequestId

      DelegationRequest.Builder delegationRequestId(String delegationRequestId)

      The unique identifier for the delegation request.

      Parameters:
      delegationRequestId - The unique identifier for the delegation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ownerAccountId

      DelegationRequest.Builder ownerAccountId(String ownerAccountId)

      Amazon Web Services account ID of the owner of the delegation request.

      Parameters:
      ownerAccountId - Amazon Web Services account ID of the owner of the delegation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      DelegationRequest.Builder description(String description)

      Description of the delegation request. This is a message that is provided by the Amazon Web Services partner that filed the delegation request.

      Parameters:
      description - Description of the delegation request. This is a message that is provided by the Amazon Web Services partner that filed the delegation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestMessage

      DelegationRequest.Builder requestMessage(String requestMessage)

      A custom message that is added to the delegation request by the partner.

      This element is different from the Description element such that this is a request specific message injected by the partner. The Description is typically a generic explanation of what the delegation request is targeted to do.

      Parameters:
      requestMessage - A custom message that is added to the delegation request by the partner.

      This element is different from the Description element such that this is a request specific message injected by the partner. The Description is typically a generic explanation of what the delegation request is targeted to do.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      Sets the value of the Permissions property for this object.
      Parameters:
      permissions - The new value for the Permissions property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • permissions

      Sets the value of the Permissions property for this object. This is a convenience method that creates an instance of the DelegationPermission.Builder avoiding the need to create one manually via DelegationPermission.builder().

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

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

      DelegationRequest.Builder permissionPolicy(String permissionPolicy)

      JSON content of the associated permission policy of this delegation request.

      Parameters:
      permissionPolicy - JSON content of the associated permission policy of this delegation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rolePermissionRestrictionArns

      DelegationRequest.Builder rolePermissionRestrictionArns(Collection<String> rolePermissionRestrictionArns)

      If the PermissionPolicy includes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation. See Permissions boundaries for IAM entities for more details about IAM permission boundaries.

      Parameters:
      rolePermissionRestrictionArns - If the PermissionPolicy includes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation. See Permissions boundaries for IAM entities for more details about IAM permission boundaries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rolePermissionRestrictionArns

      DelegationRequest.Builder rolePermissionRestrictionArns(String... rolePermissionRestrictionArns)

      If the PermissionPolicy includes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation. See Permissions boundaries for IAM entities for more details about IAM permission boundaries.

      Parameters:
      rolePermissionRestrictionArns - If the PermissionPolicy includes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation. See Permissions boundaries for IAM entities for more details about IAM permission boundaries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ownerId

      ARN of the owner of this delegation request.

      Parameters:
      ownerId - ARN of the owner of this delegation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approverId

      DelegationRequest.Builder approverId(String approverId)
      Sets the value of the ApproverId property for this object.
      Parameters:
      approverId - The new value for the ApproverId property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The state of this delegation request.

      See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.

      Parameters:
      state - The state of this delegation request.

      See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of this delegation request.

      See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.

      Parameters:
      state - The state of this delegation request.

      See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • requestorId

      DelegationRequest.Builder requestorId(String requestorId)

      Identity of the requestor of this delegation request. This will be an Amazon Web Services account ID.

      Parameters:
      requestorId - Identity of the requestor of this delegation request. This will be an Amazon Web Services account ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestorName

      DelegationRequest.Builder requestorName(String requestorName)

      A friendly name of the requestor.

      Parameters:
      requestorName - A friendly name of the requestor.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createDate

      DelegationRequest.Builder createDate(Instant createDate)

      Creation date (timestamp) of this delegation request.

      Parameters:
      createDate - Creation date (timestamp) of this delegation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionDuration

      DelegationRequest.Builder sessionDuration(Integer sessionDuration)

      The life-time of the requested session credential.

      Parameters:
      sessionDuration - The life-time of the requested session credential.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • redirectUrl

      DelegationRequest.Builder redirectUrl(String redirectUrl)

      A URL to be redirected to once the delegation request is approved. Partners provide this URL when creating the delegation request.

      Parameters:
      redirectUrl - A URL to be redirected to once the delegation request is approved. Partners provide this URL when creating the delegation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notes

      Notes added to this delegation request, if this request was updated via the UpdateDelegationRequest API.

      Parameters:
      notes - Notes added to this delegation request, if this request was updated via the UpdateDelegationRequest API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rejectionReason

      DelegationRequest.Builder rejectionReason(String rejectionReason)

      Reasons for rejecting this delegation request, if this request was rejected. See also RejectDelegationRequest API documentation.

      Parameters:
      rejectionReason - Reasons for rejecting this delegation request, if this request was rejected. See also RejectDelegationRequest API documentation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • onlySendByOwner

      DelegationRequest.Builder onlySendByOwner(Boolean onlySendByOwner)

      A flag indicating whether the SendDelegationToken must be called by the owner of this delegation request. This is set by the requesting partner.

      Parameters:
      onlySendByOwner - A flag indicating whether the SendDelegationToken must be called by the owner of this delegation request. This is set by the requesting partner.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedTime

      DelegationRequest.Builder updatedTime(Instant updatedTime)

      Last updated timestamp of the request.

      Parameters:
      updatedTime - Last updated timestamp of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.