aws_sdk_codeguruprofiler/operation/configure_agent/
_configure_agent_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ConfigureAgentOutput {
7 pub configuration: ::std::option::Option<crate::types::AgentConfiguration>,
9 _request_id: Option<String>,
10}
11impl ConfigureAgentOutput {
12 pub fn configuration(&self) -> ::std::option::Option<&crate::types::AgentConfiguration> {
14 self.configuration.as_ref()
15 }
16}
17impl ::aws_types::request_id::RequestId for ConfigureAgentOutput {
18 fn request_id(&self) -> Option<&str> {
19 self._request_id.as_deref()
20 }
21}
22impl ConfigureAgentOutput {
23 pub fn builder() -> crate::operation::configure_agent::builders::ConfigureAgentOutputBuilder {
25 crate::operation::configure_agent::builders::ConfigureAgentOutputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct ConfigureAgentOutputBuilder {
33 pub(crate) configuration: ::std::option::Option<crate::types::AgentConfiguration>,
34 _request_id: Option<String>,
35}
36impl ConfigureAgentOutputBuilder {
37 pub fn configuration(mut self, input: crate::types::AgentConfiguration) -> Self {
40 self.configuration = ::std::option::Option::Some(input);
41 self
42 }
43 pub fn set_configuration(mut self, input: ::std::option::Option<crate::types::AgentConfiguration>) -> Self {
45 self.configuration = input;
46 self
47 }
48 pub fn get_configuration(&self) -> &::std::option::Option<crate::types::AgentConfiguration> {
50 &self.configuration
51 }
52 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
53 self._request_id = Some(request_id.into());
54 self
55 }
56
57 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
58 self._request_id = request_id;
59 self
60 }
61 pub fn build(self) -> crate::operation::configure_agent::ConfigureAgentOutput {
63 crate::operation::configure_agent::ConfigureAgentOutput {
64 configuration: self.configuration,
65 _request_id: self._request_id,
66 }
67 }
68}