Interface CreateApprovalTeamRequest.Builder

  • Method Details

    • clientToken

      CreateApprovalTeamRequest.Builder clientToken(String clientToken)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.

      What is idempotency?

      When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.

      Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.

      Parameters:
      clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services populates this field.

      What is idempotency?

      When you make a mutating API request, the request typically returns a result before the operation's asynchronous workflows have completed. Operations might also time out or encounter other server issues before they complete, even though the request has already returned a result. This could make it difficult to determine whether the request succeeded or not, and could lead to multiple retries to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation is completed multiple times. This means that you might create more resources than you intended.

      Idempotency ensures that an API request completes no more than one time. With an idempotent request, if the original request completes successfully, any subsequent retries complete successfully without performing any further actions.

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

      CreateApprovalTeamRequest.Builder approvalStrategy(ApprovalStrategy approvalStrategy)

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

      Parameters:
      approvalStrategy - An ApprovalStrategy 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 CreateApprovalTeamRequest.Builder approvalStrategy(Consumer<ApprovalStrategy.Builder> approvalStrategy)

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

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

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

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

      An array of ApprovalTeamRequesterApprovers objects. Contains details for the approvers in the team.

      Parameters:
      approvers - An array of ApprovalTeamRequesterApprovers objects. Contains details for the approvers in the team.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvers

      An array of ApprovalTeamRequesterApprovers objects. Contains details for the approvers in the team.

      Parameters:
      approvers - An array of ApprovalTeamRequesterApprovers objects. Contains details for the approvers in the team.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • approvers

      An array of ApprovalTeamRequesterApprovers objects. Contains details for the approvers in the team.

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

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

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

      CreateApprovalTeamRequest.Builder description(String description)

      Description for the team.

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

      An array of PolicyReference objects. Contains a list of policies that define the permissions for team resources.

      The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.

      Parameters:
      policies - An array of PolicyReference objects. Contains a list of policies that define the permissions for team resources.

      The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.

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

      An array of PolicyReference objects. Contains a list of policies that define the permissions for team resources.

      The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.

      Parameters:
      policies - An array of PolicyReference objects. Contains a list of policies that define the permissions for team resources.

      The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.

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

      An array of PolicyReference objects. Contains a list of policies that define the permissions for team resources.

      The protected operation for a service integration might require specific permissions. For more information, see How other services work with Multi-party approval in the Multi-party approval User Guide.

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

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

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

      Name of the team.

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

      Tags you want to attach to the team.

      Parameters:
      tags - Tags you want to attach to the team.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CreateApprovalTeamRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.