#[non_exhaustive]pub struct CodeArtifactsBuilder { /* private fields */ }
Expand description
A builder for CodeArtifacts
.
Implementations§
source§impl CodeArtifactsBuilder
impl CodeArtifactsBuilder
sourcepub fn source_code_artifacts_object_key(self, input: impl Into<String>) -> Self
pub fn source_code_artifacts_object_key(self, input: impl Into<String>) -> Self
The S3 object key for a source code .zip file. This is required for all code reviews.
This field is required.sourcepub fn set_source_code_artifacts_object_key(self, input: Option<String>) -> Self
pub fn set_source_code_artifacts_object_key(self, input: Option<String>) -> Self
The S3 object key for a source code .zip file. This is required for all code reviews.
sourcepub fn get_source_code_artifacts_object_key(&self) -> &Option<String>
pub fn get_source_code_artifacts_object_key(&self) -> &Option<String>
The S3 object key for a source code .zip file. This is required for all code reviews.
sourcepub fn build_artifacts_object_key(self, input: impl Into<String>) -> Self
pub fn build_artifacts_object_key(self, input: impl Into<String>) -> Self
The S3 object key for a build artifacts .zip file that contains .jar or .class files. This is required for a code review with security analysis. For more information, see Create code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User Guide.
sourcepub fn set_build_artifacts_object_key(self, input: Option<String>) -> Self
pub fn set_build_artifacts_object_key(self, input: Option<String>) -> Self
The S3 object key for a build artifacts .zip file that contains .jar or .class files. This is required for a code review with security analysis. For more information, see Create code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User Guide.
sourcepub fn get_build_artifacts_object_key(&self) -> &Option<String>
pub fn get_build_artifacts_object_key(&self) -> &Option<String>
The S3 object key for a build artifacts .zip file that contains .jar or .class files. This is required for a code review with security analysis. For more information, see Create code reviews with GitHub Actions in the Amazon CodeGuru Reviewer User Guide.
sourcepub fn build(self) -> Result<CodeArtifacts, BuildError>
pub fn build(self) -> Result<CodeArtifacts, BuildError>
Consumes the builder and constructs a CodeArtifacts
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CodeArtifactsBuilder
impl Clone for CodeArtifactsBuilder
source§fn clone(&self) -> CodeArtifactsBuilder
fn clone(&self) -> CodeArtifactsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CodeArtifactsBuilder
impl Debug for CodeArtifactsBuilder
source§impl Default for CodeArtifactsBuilder
impl Default for CodeArtifactsBuilder
source§fn default() -> CodeArtifactsBuilder
fn default() -> CodeArtifactsBuilder
source§impl PartialEq for CodeArtifactsBuilder
impl PartialEq for CodeArtifactsBuilder
source§fn eq(&self, other: &CodeArtifactsBuilder) -> bool
fn eq(&self, other: &CodeArtifactsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CodeArtifactsBuilder
Auto Trait Implementations§
impl Freeze for CodeArtifactsBuilder
impl RefUnwindSafe for CodeArtifactsBuilder
impl Send for CodeArtifactsBuilder
impl Sync for CodeArtifactsBuilder
impl Unpin for CodeArtifactsBuilder
impl UnwindSafe for CodeArtifactsBuilder
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