Interface GetSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSessionResponse.Builder,
,GetSessionResponse> MpaResponse.Builder
,SdkBuilder<GetSessionResponse.Builder,
,GetSessionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetSessionResponse
-
Method Summary
Modifier and TypeMethodDescriptionactionCompletionStrategy
(String actionCompletionStrategy) Strategy for executing the protected operation.actionCompletionStrategy
(ActionCompletionStrategy actionCompletionStrategy) Strategy for executing the protected operation.actionName
(String actionName) Name of the protected operation.default GetSessionResponse.Builder
approvalStrategy
(Consumer<ApprovalStrategyResponse.Builder> approvalStrategy) AnApprovalStrategyResponse
object.approvalStrategy
(ApprovalStrategyResponse approvalStrategy) AnApprovalStrategyResponse
object.approvalTeamArn
(String approvalTeamArn) Amazon Resource Name (ARN) for the approval team.approvalTeamName
(String approvalTeamName) Name of the approval team.approverResponses
(Collection<GetSessionResponseApproverResponse> approverResponses) An array ofGetSessionResponseApproverResponse
objects.approverResponses
(Consumer<GetSessionResponseApproverResponse.Builder>... approverResponses) An array ofGetSessionResponseApproverResponse
objects.approverResponses
(GetSessionResponseApproverResponse... approverResponses) An array ofGetSessionResponseApproverResponse
objects.completionTime
(Instant completionTime) Timestamp when the session completed.description
(String description) Description for the session.executionStatus
(String executionStatus) Status for the protected operation.executionStatus
(SessionExecutionStatus executionStatus) Status for the protected operation.expirationTime
(Instant expirationTime) Timestamp when the session will expire.initiationTime
(Instant initiationTime) Timestamp when the session was initiated.Metadata for the session.numberOfApprovers
(Integer numberOfApprovers) Total number of approvers in the session.protectedResourceArn
(String protectedResourceArn) Amazon Resource Name (ARN) for the protected operation.requesterAccountId
(String requesterAccountId) ID for the account that made the operation request.requesterComment
(String requesterComment) Message from the account that made the operation requestrequesterPrincipalArn
(String requesterPrincipalArn) IAM principal that made the operation request.requesterRegion
(String requesterRegion) Amazon Web Services Region where the operation request originated.requesterServicePrincipal
(String requesterServicePrincipal) Service principal for the service associated with the protected operation.sessionArn
(String sessionArn) Amazon Resource Name (ARN) for the session.Status for the session.status
(SessionStatus status) Status for the session.statusCode
(String statusCode) Status code of the session.statusCode
(SessionStatusCode statusCode) Status code of the session.statusMessage
(String statusMessage) Message describing the status for session.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.mpa.model.MpaResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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
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
An
ApprovalStrategyResponse
object. Contains details for how the team grants approval- Parameters:
approvalStrategy
- AnApprovalStrategyResponse
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
This is a convenience method that creates an instance of theApprovalStrategyResponse
object. Contains details for how the team grants approvalApprovalStrategyResponse.Builder
avoiding the need to create one manually viaApprovalStrategyResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapprovalStrategy(ApprovalStrategyResponse)
.- Parameters:
approvalStrategy
- a consumer that will call methods onApprovalStrategyResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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
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
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
Status for the protected operation. For example, if the operation is
PENDING
.- Parameters:
executionStatus
- Status for the protected operation. For example, if the operation isPENDING
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 isPENDING
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
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
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
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
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
GetSessionResponse.Builder approverResponses(Collection<GetSessionResponseApproverResponse> approverResponses) An array of
GetSessionResponseApproverResponse
objects. Contains details for approver responses in the session.- Parameters:
approverResponses
- An array ofGetSessionResponseApproverResponse
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 ofGetSessionResponseApproverResponse
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(Consumer<GetSessionResponseApproverResponse.Builder>... approverResponses) An array of
This is a convenience method that creates an instance of theGetSessionResponseApproverResponse
objects. Contains details for approver responses in the session.GetSessionResponseApproverResponse.Builder
avoiding the need to create one manually viaGetSessionResponseApproverResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapproverResponses(List<GetSessionResponseApproverResponse>)
.- Parameters:
approverResponses
- a consumer that will call methods onGetSessionResponseApproverResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-