aws_sdk_amplify/operation/delete_job/
_delete_job_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteJobInput {
7 pub app_id: ::std::option::Option<::std::string::String>,
9 pub branch_name: ::std::option::Option<::std::string::String>,
11 pub job_id: ::std::option::Option<::std::string::String>,
13}
14impl DeleteJobInput {
15 pub fn app_id(&self) -> ::std::option::Option<&str> {
17 self.app_id.as_deref()
18 }
19 pub fn branch_name(&self) -> ::std::option::Option<&str> {
21 self.branch_name.as_deref()
22 }
23 pub fn job_id(&self) -> ::std::option::Option<&str> {
25 self.job_id.as_deref()
26 }
27}
28impl DeleteJobInput {
29 pub fn builder() -> crate::operation::delete_job::builders::DeleteJobInputBuilder {
31 crate::operation::delete_job::builders::DeleteJobInputBuilder::default()
32 }
33}
34
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct DeleteJobInputBuilder {
39 pub(crate) app_id: ::std::option::Option<::std::string::String>,
40 pub(crate) branch_name: ::std::option::Option<::std::string::String>,
41 pub(crate) job_id: ::std::option::Option<::std::string::String>,
42}
43impl DeleteJobInputBuilder {
44 pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
47 self.app_id = ::std::option::Option::Some(input.into());
48 self
49 }
50 pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
52 self.app_id = input;
53 self
54 }
55 pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
57 &self.app_id
58 }
59 pub fn branch_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
62 self.branch_name = ::std::option::Option::Some(input.into());
63 self
64 }
65 pub fn set_branch_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
67 self.branch_name = input;
68 self
69 }
70 pub fn get_branch_name(&self) -> &::std::option::Option<::std::string::String> {
72 &self.branch_name
73 }
74 pub fn job_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
77 self.job_id = ::std::option::Option::Some(input.into());
78 self
79 }
80 pub fn set_job_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
82 self.job_id = input;
83 self
84 }
85 pub fn get_job_id(&self) -> &::std::option::Option<::std::string::String> {
87 &self.job_id
88 }
89 pub fn build(self) -> ::std::result::Result<crate::operation::delete_job::DeleteJobInput, ::aws_smithy_types::error::operation::BuildError> {
91 ::std::result::Result::Ok(crate::operation::delete_job::DeleteJobInput {
92 app_id: self.app_id,
93 branch_name: self.branch_name,
94 job_id: self.job_id,
95 })
96 }
97}