aws_sdk_codegurusecurity/operation/get_scan/
_get_scan_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetScanInput {
6 pub scan_name: ::std::option::Option<::std::string::String>,
8 pub run_id: ::std::option::Option<::std::string::String>,
10}
11impl GetScanInput {
12 pub fn scan_name(&self) -> ::std::option::Option<&str> {
14 self.scan_name.as_deref()
15 }
16 pub fn run_id(&self) -> ::std::option::Option<&str> {
18 self.run_id.as_deref()
19 }
20}
21impl GetScanInput {
22 pub fn builder() -> crate::operation::get_scan::builders::GetScanInputBuilder {
24 crate::operation::get_scan::builders::GetScanInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetScanInputBuilder {
32 pub(crate) scan_name: ::std::option::Option<::std::string::String>,
33 pub(crate) run_id: ::std::option::Option<::std::string::String>,
34}
35impl GetScanInputBuilder {
36 pub fn scan_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.scan_name = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_scan_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.scan_name = input;
45 self
46 }
47 pub fn get_scan_name(&self) -> &::std::option::Option<::std::string::String> {
49 &self.scan_name
50 }
51 pub fn run_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.run_id = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_run_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.run_id = input;
59 self
60 }
61 pub fn get_run_id(&self) -> &::std::option::Option<::std::string::String> {
63 &self.run_id
64 }
65 pub fn build(self) -> ::std::result::Result<crate::operation::get_scan::GetScanInput, ::aws_smithy_types::error::operation::BuildError> {
67 ::std::result::Result::Ok(crate::operation::get_scan::GetScanInput {
68 scan_name: self.scan_name,
69 run_id: self.run_id,
70 })
71 }
72}