aws_sdk_auditmanager/operation/get_evidence/
_get_evidence_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetEvidenceInput {
6 pub assessment_id: ::std::option::Option<::std::string::String>,
8 pub control_set_id: ::std::option::Option<::std::string::String>,
10 pub evidence_folder_id: ::std::option::Option<::std::string::String>,
12 pub evidence_id: ::std::option::Option<::std::string::String>,
14}
15impl GetEvidenceInput {
16 pub fn assessment_id(&self) -> ::std::option::Option<&str> {
18 self.assessment_id.as_deref()
19 }
20 pub fn control_set_id(&self) -> ::std::option::Option<&str> {
22 self.control_set_id.as_deref()
23 }
24 pub fn evidence_folder_id(&self) -> ::std::option::Option<&str> {
26 self.evidence_folder_id.as_deref()
27 }
28 pub fn evidence_id(&self) -> ::std::option::Option<&str> {
30 self.evidence_id.as_deref()
31 }
32}
33impl GetEvidenceInput {
34 pub fn builder() -> crate::operation::get_evidence::builders::GetEvidenceInputBuilder {
36 crate::operation::get_evidence::builders::GetEvidenceInputBuilder::default()
37 }
38}
39
40#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct GetEvidenceInputBuilder {
44 pub(crate) assessment_id: ::std::option::Option<::std::string::String>,
45 pub(crate) control_set_id: ::std::option::Option<::std::string::String>,
46 pub(crate) evidence_folder_id: ::std::option::Option<::std::string::String>,
47 pub(crate) evidence_id: ::std::option::Option<::std::string::String>,
48}
49impl GetEvidenceInputBuilder {
50 pub fn assessment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.assessment_id = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_assessment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.assessment_id = input;
59 self
60 }
61 pub fn get_assessment_id(&self) -> &::std::option::Option<::std::string::String> {
63 &self.assessment_id
64 }
65 pub fn control_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
68 self.control_set_id = ::std::option::Option::Some(input.into());
69 self
70 }
71 pub fn set_control_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
73 self.control_set_id = input;
74 self
75 }
76 pub fn get_control_set_id(&self) -> &::std::option::Option<::std::string::String> {
78 &self.control_set_id
79 }
80 pub fn evidence_folder_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
83 self.evidence_folder_id = ::std::option::Option::Some(input.into());
84 self
85 }
86 pub fn set_evidence_folder_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
88 self.evidence_folder_id = input;
89 self
90 }
91 pub fn get_evidence_folder_id(&self) -> &::std::option::Option<::std::string::String> {
93 &self.evidence_folder_id
94 }
95 pub fn evidence_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
98 self.evidence_id = ::std::option::Option::Some(input.into());
99 self
100 }
101 pub fn set_evidence_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
103 self.evidence_id = input;
104 self
105 }
106 pub fn get_evidence_id(&self) -> &::std::option::Option<::std::string::String> {
108 &self.evidence_id
109 }
110 pub fn build(self) -> ::std::result::Result<crate::operation::get_evidence::GetEvidenceInput, ::aws_smithy_types::error::operation::BuildError> {
112 ::std::result::Result::Ok(crate::operation::get_evidence::GetEvidenceInput {
113 assessment_id: self.assessment_id,
114 control_set_id: self.control_set_id,
115 evidence_folder_id: self.evidence_folder_id,
116 evidence_id: self.evidence_id,
117 })
118 }
119}