Struct aws_sdk_codegurusecurity::types::builders::FilePathBuilder
source · #[non_exhaustive]pub struct FilePathBuilder { /* private fields */ }
Expand description
A builder for FilePath
.
Implementations§
source§impl FilePathBuilder
impl FilePathBuilder
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The path to the resource with the security vulnerability.
sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The path to the resource with the security vulnerability.
sourcepub fn get_path(&self) -> &Option<String>
pub fn get_path(&self) -> &Option<String>
The path to the resource with the security vulnerability.
sourcepub fn start_line(self, input: i32) -> Self
pub fn start_line(self, input: i32) -> Self
The first line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn set_start_line(self, input: Option<i32>) -> Self
pub fn set_start_line(self, input: Option<i32>) -> Self
The first line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn get_start_line(&self) -> &Option<i32>
pub fn get_start_line(&self) -> &Option<i32>
The first line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn end_line(self, input: i32) -> Self
pub fn end_line(self, input: i32) -> Self
The last line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn set_end_line(self, input: Option<i32>) -> Self
pub fn set_end_line(self, input: Option<i32>) -> Self
The last line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn get_end_line(&self) -> &Option<i32>
pub fn get_end_line(&self) -> &Option<i32>
The last line number of the code snippet where the security vulnerability appears in your code.
sourcepub fn code_snippet(self, input: CodeLine) -> Self
pub fn code_snippet(self, input: CodeLine) -> Self
Appends an item to code_snippet
.
To override the contents of this collection use set_code_snippet
.
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
sourcepub fn set_code_snippet(self, input: Option<Vec<CodeLine>>) -> Self
pub fn set_code_snippet(self, input: Option<Vec<CodeLine>>) -> Self
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
sourcepub fn get_code_snippet(&self) -> &Option<Vec<CodeLine>>
pub fn get_code_snippet(&self) -> &Option<Vec<CodeLine>>
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
Trait Implementations§
source§impl Clone for FilePathBuilder
impl Clone for FilePathBuilder
source§fn clone(&self) -> FilePathBuilder
fn clone(&self) -> FilePathBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FilePathBuilder
impl Debug for FilePathBuilder
source§impl Default for FilePathBuilder
impl Default for FilePathBuilder
source§fn default() -> FilePathBuilder
fn default() -> FilePathBuilder
source§impl PartialEq for FilePathBuilder
impl PartialEq for FilePathBuilder
source§fn eq(&self, other: &FilePathBuilder) -> bool
fn eq(&self, other: &FilePathBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.