public class TransitionState
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents information about the state of transitions between one stage and another stage.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
disabledReason
The user-specified reason why the transition between two stages of a
pipeline was disabled.
|
private java.lang.Boolean |
enabled
Whether the transition between stages is enabled (true) or disabled
(false).
|
private java.util.Date |
lastChangedAt
The timestamp when the transition state was last changed.
|
private java.lang.String |
lastChangedBy
The ID of the user who last changed the transition state.
|
Constructor and Description |
---|
TransitionState() |
Modifier and Type | Method and Description |
---|---|
TransitionState |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDisabledReason()
The user-specified reason why the transition between two stages of a
pipeline was disabled.
|
java.lang.Boolean |
getEnabled()
Whether the transition between stages is enabled (true) or disabled
(false).
|
java.util.Date |
getLastChangedAt()
The timestamp when the transition state was last changed.
|
java.lang.String |
getLastChangedBy()
The ID of the user who last changed the transition state.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Whether the transition between stages is enabled (true) or disabled
(false).
|
void |
setDisabledReason(java.lang.String disabledReason)
The user-specified reason why the transition between two stages of a
pipeline was disabled.
|
void |
setEnabled(java.lang.Boolean enabled)
Whether the transition between stages is enabled (true) or disabled
(false).
|
void |
setLastChangedAt(java.util.Date lastChangedAt)
The timestamp when the transition state was last changed.
|
void |
setLastChangedBy(java.lang.String lastChangedBy)
The ID of the user who last changed the transition state.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TransitionState |
withDisabledReason(java.lang.String disabledReason)
The user-specified reason why the transition between two stages of a
pipeline was disabled.
|
TransitionState |
withEnabled(java.lang.Boolean enabled)
Whether the transition between stages is enabled (true) or disabled
(false).
|
TransitionState |
withLastChangedAt(java.util.Date lastChangedAt)
The timestamp when the transition state was last changed.
|
TransitionState |
withLastChangedBy(java.lang.String lastChangedBy)
The ID of the user who last changed the transition state.
|
private java.lang.Boolean enabled
Whether the transition between stages is enabled (true) or disabled (false).
private java.lang.String lastChangedBy
The ID of the user who last changed the transition state.
private java.util.Date lastChangedAt
The timestamp when the transition state was last changed.
private java.lang.String disabledReason
The user-specified reason why the transition between two stages of a pipeline was disabled.
public void setEnabled(java.lang.Boolean enabled)
Whether the transition between stages is enabled (true) or disabled (false).
enabled
- Whether the transition between stages is enabled (true) or
disabled (false).public java.lang.Boolean getEnabled()
Whether the transition between stages is enabled (true) or disabled (false).
public TransitionState withEnabled(java.lang.Boolean enabled)
Whether the transition between stages is enabled (true) or disabled (false).
enabled
- Whether the transition between stages is enabled (true) or
disabled (false).public java.lang.Boolean isEnabled()
Whether the transition between stages is enabled (true) or disabled (false).
public void setLastChangedBy(java.lang.String lastChangedBy)
The ID of the user who last changed the transition state.
lastChangedBy
- The ID of the user who last changed the transition state.public java.lang.String getLastChangedBy()
The ID of the user who last changed the transition state.
public TransitionState withLastChangedBy(java.lang.String lastChangedBy)
The ID of the user who last changed the transition state.
lastChangedBy
- The ID of the user who last changed the transition state.public void setLastChangedAt(java.util.Date lastChangedAt)
The timestamp when the transition state was last changed.
lastChangedAt
- The timestamp when the transition state was last changed.public java.util.Date getLastChangedAt()
The timestamp when the transition state was last changed.
public TransitionState withLastChangedAt(java.util.Date lastChangedAt)
The timestamp when the transition state was last changed.
lastChangedAt
- The timestamp when the transition state was last changed.public void setDisabledReason(java.lang.String disabledReason)
The user-specified reason why the transition between two stages of a pipeline was disabled.
disabledReason
- The user-specified reason why the transition between two stages of
a pipeline was disabled.public java.lang.String getDisabledReason()
The user-specified reason why the transition between two stages of a pipeline was disabled.
public TransitionState withDisabledReason(java.lang.String disabledReason)
The user-specified reason why the transition between two stages of a pipeline was disabled.
disabledReason
- The user-specified reason why the transition between two stages of
a pipeline was disabled.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TransitionState clone()
clone
in class java.lang.Object