@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Approval extends Object implements Serializable, Cloneable, StructuredPojo
Returns information about a specific approval on a pull request.
Constructor and Description |
---|
Approval() |
Modifier and Type | Method and Description |
---|---|
Approval |
clone() |
boolean |
equals(Object obj) |
String |
getApprovalState()
The state of the approval, APPROVE or REVOKE.
|
String |
getUserArn()
The Amazon Resource Name (ARN) of the user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApprovalState(String approvalState)
The state of the approval, APPROVE or REVOKE.
|
void |
setUserArn(String userArn)
The Amazon Resource Name (ARN) of the user.
|
String |
toString()
Returns a string representation of this object.
|
Approval |
withApprovalState(ApprovalState approvalState)
The state of the approval, APPROVE or REVOKE.
|
Approval |
withApprovalState(String approvalState)
The state of the approval, APPROVE or REVOKE.
|
Approval |
withUserArn(String userArn)
The Amazon Resource Name (ARN) of the user.
|
public void setUserArn(String userArn)
The Amazon Resource Name (ARN) of the user.
userArn
- The Amazon Resource Name (ARN) of the user.public String getUserArn()
The Amazon Resource Name (ARN) of the user.
public Approval withUserArn(String userArn)
The Amazon Resource Name (ARN) of the user.
userArn
- The Amazon Resource Name (ARN) of the user.public void setApprovalState(String approvalState)
The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
approvalState
- The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.ApprovalState
public String getApprovalState()
The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
ApprovalState
public Approval withApprovalState(String approvalState)
The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
approvalState
- The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.ApprovalState
public Approval withApprovalState(ApprovalState approvalState)
The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
approvalState
- The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.ApprovalState
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.