Struct aws_sdk_inspector2::operation::batch_get_code_snippet::builders::BatchGetCodeSnippetOutputBuilder
source · #[non_exhaustive]pub struct BatchGetCodeSnippetOutputBuilder { /* private fields */ }Expand description
A builder for BatchGetCodeSnippetOutput.
Implementations§
source§impl BatchGetCodeSnippetOutputBuilder
impl BatchGetCodeSnippetOutputBuilder
sourcepub fn code_snippet_results(self, input: CodeSnippetResult) -> Self
pub fn code_snippet_results(self, input: CodeSnippetResult) -> Self
Appends an item to code_snippet_results.
To override the contents of this collection use set_code_snippet_results.
The retrieved code snippets associated with the provided finding ARNs.
sourcepub fn set_code_snippet_results(
self,
input: Option<Vec<CodeSnippetResult>>,
) -> Self
pub fn set_code_snippet_results( self, input: Option<Vec<CodeSnippetResult>>, ) -> Self
The retrieved code snippets associated with the provided finding ARNs.
sourcepub fn get_code_snippet_results(&self) -> &Option<Vec<CodeSnippetResult>>
pub fn get_code_snippet_results(&self) -> &Option<Vec<CodeSnippetResult>>
The retrieved code snippets associated with the provided finding ARNs.
sourcepub fn errors(self, input: CodeSnippetError) -> Self
pub fn errors(self, input: CodeSnippetError) -> Self
Appends an item to errors.
To override the contents of this collection use set_errors.
Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.
sourcepub fn set_errors(self, input: Option<Vec<CodeSnippetError>>) -> Self
pub fn set_errors(self, input: Option<Vec<CodeSnippetError>>) -> Self
Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.
sourcepub fn get_errors(&self) -> &Option<Vec<CodeSnippetError>>
pub fn get_errors(&self) -> &Option<Vec<CodeSnippetError>>
Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.
sourcepub fn build(self) -> BatchGetCodeSnippetOutput
pub fn build(self) -> BatchGetCodeSnippetOutput
Consumes the builder and constructs a BatchGetCodeSnippetOutput.
Trait Implementations§
source§impl Clone for BatchGetCodeSnippetOutputBuilder
impl Clone for BatchGetCodeSnippetOutputBuilder
source§fn clone(&self) -> BatchGetCodeSnippetOutputBuilder
fn clone(&self) -> BatchGetCodeSnippetOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for BatchGetCodeSnippetOutputBuilder
impl Default for BatchGetCodeSnippetOutputBuilder
source§fn default() -> BatchGetCodeSnippetOutputBuilder
fn default() -> BatchGetCodeSnippetOutputBuilder
source§impl PartialEq for BatchGetCodeSnippetOutputBuilder
impl PartialEq for BatchGetCodeSnippetOutputBuilder
source§fn eq(&self, other: &BatchGetCodeSnippetOutputBuilder) -> bool
fn eq(&self, other: &BatchGetCodeSnippetOutputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchGetCodeSnippetOutputBuilder
Auto Trait Implementations§
impl Freeze for BatchGetCodeSnippetOutputBuilder
impl RefUnwindSafe for BatchGetCodeSnippetOutputBuilder
impl Send for BatchGetCodeSnippetOutputBuilder
impl Sync for BatchGetCodeSnippetOutputBuilder
impl Unpin for BatchGetCodeSnippetOutputBuilder
impl UnwindSafe for BatchGetCodeSnippetOutputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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