Class AutoRetryConfig

    • Method Detail

      • autoRetryLimit

        public final 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.

        Returns:
        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.
      • autoRetryNumber

        public final Integer autoRetryNumber()

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

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

        public final 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.

        Returns:
        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.
      • previousAutoRetry

        public final 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.

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

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)