aws_sdk_auditmanager/operation/get_evidence/
_get_evidence_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetEvidenceInput {
6    /// <p>The unique identifier for the assessment.</p>
7    pub assessment_id: ::std::option::Option<::std::string::String>,
8    /// <p>The unique identifier for the control set.</p>
9    pub control_set_id: ::std::option::Option<::std::string::String>,
10    /// <p>The unique identifier for the folder that the evidence is stored in.</p>
11    pub evidence_folder_id: ::std::option::Option<::std::string::String>,
12    /// <p>The unique identifier for the evidence.</p>
13    pub evidence_id: ::std::option::Option<::std::string::String>,
14}
15impl GetEvidenceInput {
16    /// <p>The unique identifier for the assessment.</p>
17    pub fn assessment_id(&self) -> ::std::option::Option<&str> {
18        self.assessment_id.as_deref()
19    }
20    /// <p>The unique identifier for the control set.</p>
21    pub fn control_set_id(&self) -> ::std::option::Option<&str> {
22        self.control_set_id.as_deref()
23    }
24    /// <p>The unique identifier for the folder that the evidence is stored in.</p>
25    pub fn evidence_folder_id(&self) -> ::std::option::Option<&str> {
26        self.evidence_folder_id.as_deref()
27    }
28    /// <p>The unique identifier for the evidence.</p>
29    pub fn evidence_id(&self) -> ::std::option::Option<&str> {
30        self.evidence_id.as_deref()
31    }
32}
33impl GetEvidenceInput {
34    /// Creates a new builder-style object to manufacture [`GetEvidenceInput`](crate::operation::get_evidence::GetEvidenceInput).
35    pub fn builder() -> crate::operation::get_evidence::builders::GetEvidenceInputBuilder {
36        crate::operation::get_evidence::builders::GetEvidenceInputBuilder::default()
37    }
38}
39
40/// A builder for [`GetEvidenceInput`](crate::operation::get_evidence::GetEvidenceInput).
41#[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    /// <p>The unique identifier for the assessment.</p>
51    /// This field is required.
52    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    /// <p>The unique identifier for the assessment.</p>
57    pub fn set_assessment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.assessment_id = input;
59        self
60    }
61    /// <p>The unique identifier for the assessment.</p>
62    pub fn get_assessment_id(&self) -> &::std::option::Option<::std::string::String> {
63        &self.assessment_id
64    }
65    /// <p>The unique identifier for the control set.</p>
66    /// This field is required.
67    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    /// <p>The unique identifier for the control set.</p>
72    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    /// <p>The unique identifier for the control set.</p>
77    pub fn get_control_set_id(&self) -> &::std::option::Option<::std::string::String> {
78        &self.control_set_id
79    }
80    /// <p>The unique identifier for the folder that the evidence is stored in.</p>
81    /// This field is required.
82    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    /// <p>The unique identifier for the folder that the evidence is stored in.</p>
87    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    /// <p>The unique identifier for the folder that the evidence is stored in.</p>
92    pub fn get_evidence_folder_id(&self) -> &::std::option::Option<::std::string::String> {
93        &self.evidence_folder_id
94    }
95    /// <p>The unique identifier for the evidence.</p>
96    /// This field is required.
97    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    /// <p>The unique identifier for the evidence.</p>
102    pub fn set_evidence_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
103        self.evidence_id = input;
104        self
105    }
106    /// <p>The unique identifier for the evidence.</p>
107    pub fn get_evidence_id(&self) -> &::std::option::Option<::std::string::String> {
108        &self.evidence_id
109    }
110    /// Consumes the builder and constructs a [`GetEvidenceInput`](crate::operation::get_evidence::GetEvidenceInput).
111    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}