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 ==
.