#[non_exhaustive]pub struct SourceCodeTypeBuilder { /* private fields */ }
Expand description
A builder for SourceCodeType
.
Implementations§
source§impl SourceCodeTypeBuilder
impl SourceCodeTypeBuilder
sourcepub fn commit_diff(self, input: CommitDiffSourceCodeType) -> Self
pub fn commit_diff(self, input: CommitDiffSourceCodeType) -> Self
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
sourcepub fn set_commit_diff(self, input: Option<CommitDiffSourceCodeType>) -> Self
pub fn set_commit_diff(self, input: Option<CommitDiffSourceCodeType>) -> Self
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
sourcepub fn get_commit_diff(&self) -> &Option<CommitDiffSourceCodeType>
pub fn get_commit_diff(&self) -> &Option<CommitDiffSourceCodeType>
A SourceCodeType that specifies a commit diff created by a pull request on an associated repository.
sourcepub fn repository_head(self, input: RepositoryHeadSourceCodeType) -> Self
pub fn repository_head(self, input: RepositoryHeadSourceCodeType) -> Self
A SourceCodeType that specifies the tip of a branch in an associated repository.
sourcepub fn set_repository_head(
self,
input: Option<RepositoryHeadSourceCodeType>,
) -> Self
pub fn set_repository_head( self, input: Option<RepositoryHeadSourceCodeType>, ) -> Self
A SourceCodeType that specifies the tip of a branch in an associated repository.
sourcepub fn get_repository_head(&self) -> &Option<RepositoryHeadSourceCodeType>
pub fn get_repository_head(&self) -> &Option<RepositoryHeadSourceCodeType>
A SourceCodeType that specifies the tip of a branch in an associated repository.
sourcepub fn branch_diff(self, input: BranchDiffSourceCodeType) -> Self
pub fn branch_diff(self, input: BranchDiffSourceCodeType) -> Self
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
sourcepub fn set_branch_diff(self, input: Option<BranchDiffSourceCodeType>) -> Self
pub fn set_branch_diff(self, input: Option<BranchDiffSourceCodeType>) -> Self
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
sourcepub fn get_branch_diff(&self) -> &Option<BranchDiffSourceCodeType>
pub fn get_branch_diff(&self) -> &Option<BranchDiffSourceCodeType>
A type of SourceCodeType that specifies a source branch name and a destination branch name in an associated repository.
sourcepub fn s3_bucket_repository(self, input: S3BucketRepository) -> Self
pub fn s3_bucket_repository(self, input: S3BucketRepository) -> Self
Information about an associated repository in an S3 bucket that includes its name and an S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file. S3BucketRepository
is required in SourceCodeType for S3BucketRepository
based code reviews.
sourcepub fn set_s3_bucket_repository(self, input: Option<S3BucketRepository>) -> Self
pub fn set_s3_bucket_repository(self, input: Option<S3BucketRepository>) -> Self
Information about an associated repository in an S3 bucket that includes its name and an S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file. S3BucketRepository
is required in SourceCodeType for S3BucketRepository
based code reviews.
sourcepub fn get_s3_bucket_repository(&self) -> &Option<S3BucketRepository>
pub fn get_s3_bucket_repository(&self) -> &Option<S3BucketRepository>
Information about an associated repository in an S3 bucket that includes its name and an S3RepositoryDetails
object. The S3RepositoryDetails
object includes the name of an S3 bucket, an S3 key for a source code .zip file, and an S3 key for a build artifacts .zip file. S3BucketRepository
is required in SourceCodeType for S3BucketRepository
based code reviews.
sourcepub fn request_metadata(self, input: RequestMetadata) -> Self
pub fn request_metadata(self, input: RequestMetadata) -> Self
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. The RequestMetadaa
field captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.
sourcepub fn set_request_metadata(self, input: Option<RequestMetadata>) -> Self
pub fn set_request_metadata(self, input: Option<RequestMetadata>) -> Self
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. The RequestMetadaa
field captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.
sourcepub fn get_request_metadata(&self) -> &Option<RequestMetadata>
pub fn get_request_metadata(&self) -> &Option<RequestMetadata>
Metadata that is associated with a code review. This applies to any type of code review supported by CodeGuru Reviewer. The RequestMetadaa
field captures any event metadata. For example, it might capture metadata associated with an event trigger, such as a push or a pull request.
sourcepub fn build(self) -> SourceCodeType
pub fn build(self) -> SourceCodeType
Consumes the builder and constructs a SourceCodeType
.
Trait Implementations§
source§impl Clone for SourceCodeTypeBuilder
impl Clone for SourceCodeTypeBuilder
source§fn clone(&self) -> SourceCodeTypeBuilder
fn clone(&self) -> SourceCodeTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SourceCodeTypeBuilder
impl Debug for SourceCodeTypeBuilder
source§impl Default for SourceCodeTypeBuilder
impl Default for SourceCodeTypeBuilder
source§fn default() -> SourceCodeTypeBuilder
fn default() -> SourceCodeTypeBuilder
source§impl PartialEq for SourceCodeTypeBuilder
impl PartialEq for SourceCodeTypeBuilder
source§fn eq(&self, other: &SourceCodeTypeBuilder) -> bool
fn eq(&self, other: &SourceCodeTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SourceCodeTypeBuilder
Auto Trait Implementations§
impl Freeze for SourceCodeTypeBuilder
impl RefUnwindSafe for SourceCodeTypeBuilder
impl Send for SourceCodeTypeBuilder
impl Sync for SourceCodeTypeBuilder
impl Unpin for SourceCodeTypeBuilder
impl UnwindSafe for SourceCodeTypeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more