@Generated(value="software.amazon.awssdk:codegen") public final class Approval extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Approval.Builder,Approval>
Returns information about a specific approval on a pull request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Approval.Builder |
| Modifier and Type | Method and Description |
|---|---|
ApprovalState |
approvalState()
The state of the approval, APPROVE or REVOKE.
|
String |
approvalStateAsString()
The state of the approval, APPROVE or REVOKE.
|
static Approval.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Approval.Builder> |
serializableBuilderClass() |
Approval.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userArn()
The Amazon Resource Name (ARN) of the user.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String userArn()
The Amazon Resource Name (ARN) of the user.
public final ApprovalState approvalState()
The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
If the service returns an enum value that is not available in the current SDK version, approvalState
will return ApprovalState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
approvalStateAsString().
ApprovalStatepublic final String approvalStateAsString()
The state of the approval, APPROVE or REVOKE. REVOKE states are not stored.
If the service returns an enum value that is not available in the current SDK version, approvalState
will return ApprovalState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
approvalStateAsString().
ApprovalStatepublic Approval.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Approval.Builder,Approval>public static Approval.Builder builder()
public static Class<? extends Approval.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.