aws_sdk_databrew/operation/delete_job/
_delete_job_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteJobOutput {
6 pub name: ::std::string::String,
8 _request_id: Option<String>,
9}
10impl DeleteJobOutput {
11 pub fn name(&self) -> &str {
13 use std::ops::Deref;
14 self.name.deref()
15 }
16}
17impl ::aws_types::request_id::RequestId for DeleteJobOutput {
18 fn request_id(&self) -> Option<&str> {
19 self._request_id.as_deref()
20 }
21}
22impl DeleteJobOutput {
23 pub fn builder() -> crate::operation::delete_job::builders::DeleteJobOutputBuilder {
25 crate::operation::delete_job::builders::DeleteJobOutputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DeleteJobOutputBuilder {
33 pub(crate) name: ::std::option::Option<::std::string::String>,
34 _request_id: Option<String>,
35}
36impl DeleteJobOutputBuilder {
37 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40 self.name = ::std::option::Option::Some(input.into());
41 self
42 }
43 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45 self.name = input;
46 self
47 }
48 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
50 &self.name
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) -> ::std::result::Result<crate::operation::delete_job::DeleteJobOutput, ::aws_smithy_types::error::operation::BuildError> {
65 ::std::result::Result::Ok(crate::operation::delete_job::DeleteJobOutput {
66 name: self.name.ok_or_else(|| {
67 ::aws_smithy_types::error::operation::BuildError::missing_field(
68 "name",
69 "name was not specified but it is required when building DeleteJobOutput",
70 )
71 })?,
72 _request_id: self._request_id,
73 })
74 }
75}