aws_sdk_bedrockdataautomation/operation/delete_blueprint/
_delete_blueprint_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteBlueprintInput {
7 pub blueprint_arn: ::std::option::Option<::std::string::String>,
9 pub blueprint_version: ::std::option::Option<::std::string::String>,
11}
12impl DeleteBlueprintInput {
13 pub fn blueprint_arn(&self) -> ::std::option::Option<&str> {
15 self.blueprint_arn.as_deref()
16 }
17 pub fn blueprint_version(&self) -> ::std::option::Option<&str> {
19 self.blueprint_version.as_deref()
20 }
21}
22impl DeleteBlueprintInput {
23 pub fn builder() -> crate::operation::delete_blueprint::builders::DeleteBlueprintInputBuilder {
25 crate::operation::delete_blueprint::builders::DeleteBlueprintInputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DeleteBlueprintInputBuilder {
33 pub(crate) blueprint_arn: ::std::option::Option<::std::string::String>,
34 pub(crate) blueprint_version: ::std::option::Option<::std::string::String>,
35}
36impl DeleteBlueprintInputBuilder {
37 pub fn blueprint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40 self.blueprint_arn = ::std::option::Option::Some(input.into());
41 self
42 }
43 pub fn set_blueprint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45 self.blueprint_arn = input;
46 self
47 }
48 pub fn get_blueprint_arn(&self) -> &::std::option::Option<::std::string::String> {
50 &self.blueprint_arn
51 }
52 pub fn blueprint_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
54 self.blueprint_version = ::std::option::Option::Some(input.into());
55 self
56 }
57 pub fn set_blueprint_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59 self.blueprint_version = input;
60 self
61 }
62 pub fn get_blueprint_version(&self) -> &::std::option::Option<::std::string::String> {
64 &self.blueprint_version
65 }
66 pub fn build(
68 self,
69 ) -> ::std::result::Result<crate::operation::delete_blueprint::DeleteBlueprintInput, ::aws_smithy_types::error::operation::BuildError> {
70 ::std::result::Result::Ok(crate::operation::delete_blueprint::DeleteBlueprintInput {
71 blueprint_arn: self.blueprint_arn,
72 blueprint_version: self.blueprint_version,
73 })
74 }
75}