public class TfaChangePolicyDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TwoStepVerificationPolicy |
newValue |
protected TwoStepVerificationPolicy |
previousValue |
Constructor and Description |
---|
TfaChangePolicyDetails(TwoStepVerificationPolicy newValue)
Changed two-step verification setting for team.
|
TfaChangePolicyDetails(TwoStepVerificationPolicy newValue,
TwoStepVerificationPolicy previousValue)
Changed two-step verification setting for team.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
TwoStepVerificationPolicy |
getNewValue()
New change policy.
|
TwoStepVerificationPolicy |
getPreviousValue()
Previous change policy.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final TwoStepVerificationPolicy newValue
protected final TwoStepVerificationPolicy previousValue
public TfaChangePolicyDetails(TwoStepVerificationPolicy newValue, TwoStepVerificationPolicy previousValue)
newValue
- New change policy. Must not be null
.previousValue
- Previous change policy. Might be missing due to
historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TfaChangePolicyDetails(TwoStepVerificationPolicy newValue)
The default values for unset fields will be used.
newValue
- New change policy. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TwoStepVerificationPolicy getNewValue()
null
.public TwoStepVerificationPolicy getPreviousValue()
null
if not present.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.