aws_sdk_iotfleetwise/operation/delete_campaign/
_delete_campaign_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteCampaignOutput {
6 pub name: ::std::option::Option<::std::string::String>,
8 pub arn: ::std::option::Option<::std::string::String>,
12 _request_id: Option<String>,
13}
14impl DeleteCampaignOutput {
15 pub fn name(&self) -> ::std::option::Option<&str> {
17 self.name.as_deref()
18 }
19 pub fn arn(&self) -> ::std::option::Option<&str> {
23 self.arn.as_deref()
24 }
25}
26impl ::aws_types::request_id::RequestId for DeleteCampaignOutput {
27 fn request_id(&self) -> Option<&str> {
28 self._request_id.as_deref()
29 }
30}
31impl DeleteCampaignOutput {
32 pub fn builder() -> crate::operation::delete_campaign::builders::DeleteCampaignOutputBuilder {
34 crate::operation::delete_campaign::builders::DeleteCampaignOutputBuilder::default()
35 }
36}
37
38#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
40#[non_exhaustive]
41pub struct DeleteCampaignOutputBuilder {
42 pub(crate) name: ::std::option::Option<::std::string::String>,
43 pub(crate) arn: ::std::option::Option<::std::string::String>,
44 _request_id: Option<String>,
45}
46impl DeleteCampaignOutputBuilder {
47 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
49 self.name = ::std::option::Option::Some(input.into());
50 self
51 }
52 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
54 self.name = input;
55 self
56 }
57 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
59 &self.name
60 }
61 pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
65 self.arn = ::std::option::Option::Some(input.into());
66 self
67 }
68 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72 self.arn = input;
73 self
74 }
75 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
79 &self.arn
80 }
81 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
82 self._request_id = Some(request_id.into());
83 self
84 }
85
86 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
87 self._request_id = request_id;
88 self
89 }
90 pub fn build(self) -> crate::operation::delete_campaign::DeleteCampaignOutput {
92 crate::operation::delete_campaign::DeleteCampaignOutput {
93 name: self.name,
94 arn: self.arn,
95 _request_id: self._request_id,
96 }
97 }
98}