#[non_exhaustive]pub struct RequestMetadataBuilder { /* private fields */ }
Expand description
A builder for RequestMetadata
.
Implementations§
source§impl RequestMetadataBuilder
impl RequestMetadataBuilder
sourcepub fn request_id(self, input: impl Into<String>) -> Self
pub fn request_id(self, input: impl Into<String>) -> Self
The ID of the request. This is required for a pull request code review.
sourcepub fn set_request_id(self, input: Option<String>) -> Self
pub fn set_request_id(self, input: Option<String>) -> Self
The ID of the request. This is required for a pull request code review.
sourcepub fn get_request_id(&self) -> &Option<String>
pub fn get_request_id(&self) -> &Option<String>
The ID of the request. This is required for a pull request code review.
sourcepub fn requester(self, input: impl Into<String>) -> Self
pub fn requester(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_requester(self, input: Option<String>) -> Self
pub fn set_requester(self, input: Option<String>) -> Self
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.
sourcepub fn get_requester(&self) -> &Option<String>
pub fn get_requester(&self) -> &Option<String>
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.
sourcepub fn event_info(self, input: EventInfo) -> Self
pub fn event_info(self, input: EventInfo) -> Self
Information about the event associated with a code review.
sourcepub fn set_event_info(self, input: Option<EventInfo>) -> Self
pub fn set_event_info(self, input: Option<EventInfo>) -> Self
Information about the event associated with a code review.
sourcepub fn get_event_info(&self) -> &Option<EventInfo>
pub fn get_event_info(&self) -> &Option<EventInfo>
Information about the event associated with a code review.
sourcepub fn vendor_name(self, input: VendorName) -> Self
pub fn vendor_name(self, input: VendorName) -> Self
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.
sourcepub fn set_vendor_name(self, input: Option<VendorName>) -> Self
pub fn set_vendor_name(self, input: Option<VendorName>) -> Self
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.
sourcepub fn get_vendor_name(&self) -> &Option<VendorName>
pub fn get_vendor_name(&self) -> &Option<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.
sourcepub fn build(self) -> RequestMetadata
pub fn build(self) -> RequestMetadata
Consumes the builder and constructs a RequestMetadata
.
Trait Implementations§
source§impl Clone for RequestMetadataBuilder
impl Clone for RequestMetadataBuilder
source§fn clone(&self) -> RequestMetadataBuilder
fn clone(&self) -> RequestMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RequestMetadataBuilder
impl Debug for RequestMetadataBuilder
source§impl Default for RequestMetadataBuilder
impl Default for RequestMetadataBuilder
source§fn default() -> RequestMetadataBuilder
fn default() -> RequestMetadataBuilder
source§impl PartialEq for RequestMetadataBuilder
impl PartialEq for RequestMetadataBuilder
source§fn eq(&self, other: &RequestMetadataBuilder) -> bool
fn eq(&self, other: &RequestMetadataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.