Interface AutoRetryConfig.Builder

    • Method Detail

      • autoRetryLimit

        AutoRetryConfig.Builder autoRetryLimit​(Integer autoRetryLimit)

        The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

        Parameters:
        autoRetryLimit - The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • autoRetryNumber

        AutoRetryConfig.Builder autoRetryNumber​(Integer autoRetryNumber)

        The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

        Parameters:
        autoRetryNumber - The number of times that the build has been retried. The initial build will have an auto-retry number of 0.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextAutoRetry

        AutoRetryConfig.Builder nextAutoRetry​(String nextAutoRetry)

        The build ARN of the auto-retried build triggered by the current build. The next auto-retry will be null for builds that don't trigger an auto-retry.

        Parameters:
        nextAutoRetry - The build ARN of the auto-retried build triggered by the current build. The next auto-retry will be null for builds that don't trigger an auto-retry.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • previousAutoRetry

        AutoRetryConfig.Builder previousAutoRetry​(String previousAutoRetry)

        The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build.

        Parameters:
        previousAutoRetry - The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build.
        Returns:
        Returns a reference to this object so that method calls can be chained together.