@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.ApprovalStatepublic String getApprovalState()
The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
ApprovalStatepublic 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.ApprovalStatepublic 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.ApprovalStatepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.