Interface GetSessionResponse.Builder

  • Method Details

    • sessionArn

      GetSessionResponse.Builder sessionArn(String sessionArn)

      Amazon Resource Name (ARN) for the session.

      Parameters:
      sessionArn - Amazon Resource Name (ARN) for the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalTeamArn

      GetSessionResponse.Builder approvalTeamArn(String approvalTeamArn)

      Amazon Resource Name (ARN) for the approval team.

      Parameters:
      approvalTeamArn - Amazon Resource Name (ARN) for the approval team.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalTeamName

      GetSessionResponse.Builder approvalTeamName(String approvalTeamName)

      Name of the approval team.

      Parameters:
      approvalTeamName - Name of the approval team.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • protectedResourceArn

      GetSessionResponse.Builder protectedResourceArn(String protectedResourceArn)

      Amazon Resource Name (ARN) for the protected operation.

      Parameters:
      protectedResourceArn - Amazon Resource Name (ARN) for the protected operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalStrategy

      GetSessionResponse.Builder approvalStrategy(ApprovalStrategyResponse approvalStrategy)

      An ApprovalStrategyResponse object. Contains details for how the team grants approval

      Parameters:
      approvalStrategy - An ApprovalStrategyResponse object. Contains details for how the team grants approval
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvalStrategy

      default GetSessionResponse.Builder approvalStrategy(Consumer<ApprovalStrategyResponse.Builder> approvalStrategy)

      An ApprovalStrategyResponse object. Contains details for how the team grants approval

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

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

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

      GetSessionResponse.Builder numberOfApprovers(Integer numberOfApprovers)

      Total number of approvers in the session.

      Parameters:
      numberOfApprovers - Total number of approvers in the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • initiationTime

      GetSessionResponse.Builder initiationTime(Instant initiationTime)

      Timestamp when the session was initiated.

      Parameters:
      initiationTime - Timestamp when the session was initiated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expirationTime

      GetSessionResponse.Builder expirationTime(Instant expirationTime)

      Timestamp when the session will expire.

      Parameters:
      expirationTime - Timestamp when the session will expire.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completionTime

      GetSessionResponse.Builder completionTime(Instant completionTime)

      Timestamp when the session completed.

      Parameters:
      completionTime - Timestamp when the session completed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      GetSessionResponse.Builder description(String description)

      Description for the session.

      Parameters:
      description - Description for the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Metadata for the session.

      Parameters:
      metadata - Metadata for the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      Status for the session. For example, if the team has approved the requested operation.

      Parameters:
      status - Status for the session. For example, if the team has approved the requested operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Status for the session. For example, if the team has approved the requested operation.

      Parameters:
      status - Status for the session. For example, if the team has approved the requested operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusCode

      GetSessionResponse.Builder statusCode(String statusCode)

      Status code of the session.

      Parameters:
      statusCode - Status code of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusCode

      Status code of the session.

      Parameters:
      statusCode - Status code of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusMessage

      GetSessionResponse.Builder statusMessage(String statusMessage)

      Message describing the status for session.

      Parameters:
      statusMessage - Message describing the status for session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionStatus

      GetSessionResponse.Builder executionStatus(String executionStatus)

      Status for the protected operation. For example, if the operation is PENDING.

      Parameters:
      executionStatus - Status for the protected operation. For example, if the operation is PENDING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • executionStatus

      GetSessionResponse.Builder executionStatus(SessionExecutionStatus executionStatus)

      Status for the protected operation. For example, if the operation is PENDING.

      Parameters:
      executionStatus - Status for the protected operation. For example, if the operation is PENDING.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • actionName

      GetSessionResponse.Builder actionName(String actionName)

      Name of the protected operation.

      Parameters:
      actionName - Name of the protected operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requesterServicePrincipal

      GetSessionResponse.Builder requesterServicePrincipal(String requesterServicePrincipal)

      Service principal for the service associated with the protected operation.

      Parameters:
      requesterServicePrincipal - Service principal for the service associated with the protected operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requesterPrincipalArn

      GetSessionResponse.Builder requesterPrincipalArn(String requesterPrincipalArn)

      IAM principal that made the operation request.

      Parameters:
      requesterPrincipalArn - IAM principal that made the operation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requesterAccountId

      GetSessionResponse.Builder requesterAccountId(String requesterAccountId)

      ID for the account that made the operation request.

      Parameters:
      requesterAccountId - ID for the account that made the operation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requesterRegion

      GetSessionResponse.Builder requesterRegion(String requesterRegion)

      Amazon Web Services Region where the operation request originated.

      Parameters:
      requesterRegion - Amazon Web Services Region where the operation request originated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requesterComment

      GetSessionResponse.Builder requesterComment(String requesterComment)

      Message from the account that made the operation request

      Parameters:
      requesterComment - Message from the account that made the operation request
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionCompletionStrategy

      GetSessionResponse.Builder actionCompletionStrategy(String actionCompletionStrategy)

      Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL means the operation is automatically executed using the requester's permissions, if approved.

      Parameters:
      actionCompletionStrategy - Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL means the operation is automatically executed using the requester's permissions, if approved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • actionCompletionStrategy

      GetSessionResponse.Builder actionCompletionStrategy(ActionCompletionStrategy actionCompletionStrategy)

      Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL means the operation is automatically executed using the requester's permissions, if approved.

      Parameters:
      actionCompletionStrategy - Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL means the operation is automatically executed using the requester's permissions, if approved.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • approverResponses

      An array of GetSessionResponseApproverResponse objects. Contains details for approver responses in the session.

      Parameters:
      approverResponses - An array of GetSessionResponseApproverResponse objects. Contains details for approver responses in the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approverResponses

      GetSessionResponse.Builder approverResponses(GetSessionResponseApproverResponse... approverResponses)

      An array of GetSessionResponseApproverResponse objects. Contains details for approver responses in the session.

      Parameters:
      approverResponses - An array of GetSessionResponseApproverResponse objects. Contains details for approver responses in the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approverResponses

      An array of GetSessionResponseApproverResponse objects. Contains details for approver responses in the session.

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

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

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