@Generated(value="software.amazon.awssdk:codegen") public final class RequestMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RequestMetadata.Builder,RequestMetadata>
Metadata that is associated with a code review. This applies to both pull request and repository analysis code reviews.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RequestMetadata.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RequestMetadata.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
EventInfo |
eventInfo()
Information about the event associated with a code review.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
requester()
An identifier, such as a name or account ID, that is associated with the requester.
|
String |
requestId()
The ID of the request.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RequestMetadata.Builder> |
serializableBuilderClass() |
RequestMetadata.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VendorName |
vendorName()
The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review.
|
String |
vendorNameAsString()
The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String requestId()
The ID of the request. This is required for a pull request code review.
public final String requester()
An identifier, such as a name or account ID, that is associated with the requester. The Requester is
used to capture the author/actor name of the event request.
Requester is used to capture the author/actor name of the event request.public final EventInfo eventInfo()
Information about the event associated with a code review.
public final VendorName vendorName()
The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review. For example, if
code and artifacts are uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from a GitHub
repository, then the repository association's ProviderType is S3Bucket and the CI/CD
repository vendor name is GitHub. For more information, see the definition for ProviderType in RepositoryAssociation
.
If the service returns an enum value that is not available in the current SDK version, vendorName will
return VendorName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
vendorNameAsString().
ProviderType is
S3Bucket and the CI/CD repository vendor name is GitHub. For more information, see the
definition for ProviderType in RepositoryAssociation.VendorNamepublic final String vendorNameAsString()
The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review. For example, if
code and artifacts are uploaded to an S3 bucket for a CI/CD code review by GitHub scripts from a GitHub
repository, then the repository association's ProviderType is S3Bucket and the CI/CD
repository vendor name is GitHub. For more information, see the definition for ProviderType in RepositoryAssociation
.
If the service returns an enum value that is not available in the current SDK version, vendorName will
return VendorName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
vendorNameAsString().
ProviderType is
S3Bucket and the CI/CD repository vendor name is GitHub. For more information, see the
definition for ProviderType in RepositoryAssociation.VendorNamepublic RequestMetadata.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RequestMetadata.Builder,RequestMetadata>public static RequestMetadata.Builder builder()
public static Class<? extends RequestMetadata.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.