Class RequestMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.codegurureviewer.model.RequestMetadata
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RequestMetadata.Builder,RequestMetadata>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRequestMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestMetadata.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)EventInfoeventInfo()Information about the event associated with a code review.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringrequester()An identifier, such as a name or account ID, that is associated with the requester.StringrequestId()The ID of the request.List<SdkField<?>>sdkFields()static Class<? extends RequestMetadata.Builder>serializableBuilderClass()RequestMetadata.BuildertoBuilder()StringtoString()Returns a string representation of this object.VendorNamevendorName()The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review.StringvendorNameAsString()The name of the repository vendor used to upload code to an S3 bucket for a CI/CD code review.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
requestId
public final String requestId()
The ID of the request. This is required for a pull request code review.
- Returns:
- The ID of the request. This is required for a pull request code review.
-
requester
public final String requester()
An identifier, such as a name or account ID, that is associated with the requester. The
Requesteris used to capture theauthor/actorname of the event request.- Returns:
- An identifier, such as a name or account ID, that is associated with the requester. The
Requesteris used to capture theauthor/actorname of the event request.
-
eventInfo
public final EventInfo eventInfo()
Information about the event associated with a code review.
- Returns:
- Information about the event associated with a code review.
-
vendorName
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
ProviderTypeisS3Bucketand the CI/CD repository vendor name is GitHub. For more information, see the definition forProviderTypein RepositoryAssociation .If the service returns an enum value that is not available in the current SDK version,
vendorNamewill returnVendorName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvendorNameAsString().- Returns:
- 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
ProviderTypeisS3Bucketand the CI/CD repository vendor name is GitHub. For more information, see the definition forProviderTypein RepositoryAssociation. - See Also:
VendorName
-
vendorNameAsString
public 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
ProviderTypeisS3Bucketand the CI/CD repository vendor name is GitHub. For more information, see the definition forProviderTypein RepositoryAssociation .If the service returns an enum value that is not available in the current SDK version,
vendorNamewill returnVendorName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvendorNameAsString().- Returns:
- 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
ProviderTypeisS3Bucketand the CI/CD repository vendor name is GitHub. For more information, see the definition forProviderTypein RepositoryAssociation. - See Also:
VendorName
-
toBuilder
public RequestMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RequestMetadata.Builder,RequestMetadata>
-
builder
public static RequestMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends RequestMetadata.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-