Class OverridePullRequestApprovalRulesRequest

    • Method Detail

      • pullRequestId

        public final String pullRequestId()

        The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest.

        Returns:
        The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use GetPullRequest.
      • revisionId

        public final String revisionId()

        The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request. To get the revision ID, use GetPullRequest.

        Returns:
        The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request. To get the revision ID, use GetPullRequest.
      • overrideStatus

        public final OverrideStatus overrideStatus()

        Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.

        If the service returns an enum value that is not available in the current SDK version, overrideStatus will return OverrideStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from overrideStatusAsString().

        Returns:
        Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.
        See Also:
        OverrideStatus
      • overrideStatusAsString

        public final String overrideStatusAsString()

        Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.

        If the service returns an enum value that is not available in the current SDK version, overrideStatus will return OverrideStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from overrideStatusAsString().

        Returns:
        Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.
        See Also:
        OverrideStatus
      • 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