@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public final class ApprovalRuleMergeCheck extends MergeCheck
The status of the approval rules.
Note: Objects should always be created or deserialized using the ApprovalRuleMergeCheck.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the ApprovalRuleMergeCheck.Builder
, which maintain a
set of all explicitly set fields called ApprovalRuleMergeCheck.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ApprovalRuleMergeCheck.Builder |
static class |
ApprovalRuleMergeCheck.Level
The level of rule.
|
static class |
ApprovalRuleMergeCheck.Status
The status of the approval rule.
|
MergeCheck.Type
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
ApprovalRuleMergeCheck(String ruleName,
ApprovalRuleMergeCheck.Status status,
Integer totalApprovalCount,
Integer currentApprovalCount,
List<PrincipalDetails> reviewers,
ApprovalRuleMergeCheck.Level level)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ApprovalRuleMergeCheck.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getCurrentApprovalCount()
The current number of approvals.
|
ApprovalRuleMergeCheck.Level |
getLevel()
The level of rule.
|
List<PrincipalDetails> |
getReviewers()
The list of default reviewers.
|
String |
getRuleName()
The name of the rule.
|
ApprovalRuleMergeCheck.Status |
getStatus()
The status of the approval rule.
|
Integer |
getTotalApprovalCount()
The number of total approvals needed.
|
int |
hashCode() |
ApprovalRuleMergeCheck.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public ApprovalRuleMergeCheck(String ruleName, ApprovalRuleMergeCheck.Status status, Integer totalApprovalCount, Integer currentApprovalCount, List<PrincipalDetails> reviewers, ApprovalRuleMergeCheck.Level level)
public static ApprovalRuleMergeCheck.Builder builder()
Create a new builder.
public ApprovalRuleMergeCheck.Builder toBuilder()
public String getRuleName()
The name of the rule.
public ApprovalRuleMergeCheck.Status getStatus()
The status of the approval rule.
public Integer getTotalApprovalCount()
The number of total approvals needed.
public Integer getCurrentApprovalCount()
The current number of approvals.
public List<PrincipalDetails> getReviewers()
The list of default reviewers.
public ApprovalRuleMergeCheck.Level getLevel()
The level of rule.
public String toString()
toString
in class MergeCheck
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class MergeCheck
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class MergeCheck
public int hashCode()
hashCode
in class MergeCheck
Copyright © 2016–2024. All rights reserved.