@Generated(value="software.amazon.awssdk:codegen") public final class CodeReview extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CodeReview.Builder,CodeReview>
Information about a code review. A code review belongs to the associated repository that contains the reviewed code.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CodeReview.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
associationArn()
The Amazon Resource Name (ARN) of the
RepositoryAssociation that contains the reviewed source code. |
static CodeReview.Builder |
builder() |
String |
codeReviewArn()
The Amazon Resource Name (ARN) of the
CodeReview
object. |
Instant |
createdTimeStamp()
The time, in milliseconds since the epoch, when the code review was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedTimeStamp()
The time, in milliseconds since the epoch, when the code review was last updated.
|
Metrics |
metrics()
The statistics from the code review.
|
String |
name()
The name of the code review.
|
String |
owner()
The owner of the repository.
|
ProviderType |
providerType()
The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
|
String |
providerTypeAsString()
The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
|
String |
pullRequestId()
The pull request ID for the code review.
|
String |
repositoryName()
The name of the repository.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CodeReview.Builder> |
serializableBuilderClass() |
SourceCodeType |
sourceCodeType()
The type of the source code for the code review.
|
JobState |
state()
The valid code review states are:
|
String |
stateAsString()
The valid code review states are:
|
String |
stateReason()
The reason for the state of the code review.
|
CodeReview.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Type |
type()
The type of code review.
|
String |
typeAsString()
The type of code review.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
The name of the code review.
public String codeReviewArn()
The Amazon Resource Name (ARN) of the CodeReview
object.
CodeReview object.public String repositoryName()
The name of the repository.
public String owner()
The owner of the repository. For an AWS CodeCommit repository, this is the AWS account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository.
public ProviderType providerType()
The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
If the service returns an enum value that is not available in the current SDK version, providerType will
return ProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
providerTypeAsString().
ProviderTypepublic String providerTypeAsString()
The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).
If the service returns an enum value that is not available in the current SDK version, providerType will
return ProviderType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
providerTypeAsString().
ProviderTypepublic JobState state()
The valid code review states are:
Completed: The code review is complete.
Pending: The code review started and has not completed or failed.
Failed: The code review failed.
Deleting: The code review is being deleted.
If the service returns an enum value that is not available in the current SDK version, state will return
JobState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
Completed: The code review is complete.
Pending: The code review started and has not completed or failed.
Failed: The code review failed.
Deleting: The code review is being deleted.
JobStatepublic String stateAsString()
The valid code review states are:
Completed: The code review is complete.
Pending: The code review started and has not completed or failed.
Failed: The code review failed.
Deleting: The code review is being deleted.
If the service returns an enum value that is not available in the current SDK version, state will return
JobState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
Completed: The code review is complete.
Pending: The code review started and has not completed or failed.
Failed: The code review failed.
Deleting: The code review is being deleted.
JobStatepublic String stateReason()
The reason for the state of the code review.
public Instant createdTimeStamp()
The time, in milliseconds since the epoch, when the code review was created.
public Instant lastUpdatedTimeStamp()
The time, in milliseconds since the epoch, when the code review was last updated.
public Type type()
The type of code review.
If the service returns an enum value that is not available in the current SDK version, type will return
Type.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
Typepublic String typeAsString()
The type of code review.
If the service returns an enum value that is not available in the current SDK version, type will return
Type.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
Typepublic String pullRequestId()
The pull request ID for the code review.
public SourceCodeType sourceCodeType()
The type of the source code for the code review.
public String associationArn()
The Amazon Resource Name (ARN) of the
RepositoryAssociation that contains the reviewed source code. You can retrieve associated
repository ARNs by calling
ListRepositoryAssociations .
RepositoryAssociation that contains the reviewed source code. You can retrieve
associated repository ARNs by calling
ListRepositoryAssociations .public Metrics metrics()
The statistics from the code review.
public CodeReview.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CodeReview.Builder,CodeReview>public static CodeReview.Builder builder()
public static Class<? extends CodeReview.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.