aws_sdk_bedrockdataautomation/operation/delete_blueprint/
_delete_blueprint_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Delete Blueprint Request
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteBlueprintInput {
7    /// ARN generated at the server side when a Blueprint is created
8    pub blueprint_arn: ::std::option::Option<::std::string::String>,
9    /// Optional field to delete a specific Blueprint version
10    pub blueprint_version: ::std::option::Option<::std::string::String>,
11}
12impl DeleteBlueprintInput {
13    /// ARN generated at the server side when a Blueprint is created
14    pub fn blueprint_arn(&self) -> ::std::option::Option<&str> {
15        self.blueprint_arn.as_deref()
16    }
17    /// Optional field to delete a specific Blueprint version
18    pub fn blueprint_version(&self) -> ::std::option::Option<&str> {
19        self.blueprint_version.as_deref()
20    }
21}
22impl DeleteBlueprintInput {
23    /// Creates a new builder-style object to manufacture [`DeleteBlueprintInput`](crate::operation::delete_blueprint::DeleteBlueprintInput).
24    pub fn builder() -> crate::operation::delete_blueprint::builders::DeleteBlueprintInputBuilder {
25        crate::operation::delete_blueprint::builders::DeleteBlueprintInputBuilder::default()
26    }
27}
28
29/// A builder for [`DeleteBlueprintInput`](crate::operation::delete_blueprint::DeleteBlueprintInput).
30#[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    /// ARN generated at the server side when a Blueprint is created
38    /// This field is required.
39    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    /// ARN generated at the server side when a Blueprint is created
44    pub fn set_blueprint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45        self.blueprint_arn = input;
46        self
47    }
48    /// ARN generated at the server side when a Blueprint is created
49    pub fn get_blueprint_arn(&self) -> &::std::option::Option<::std::string::String> {
50        &self.blueprint_arn
51    }
52    /// Optional field to delete a specific Blueprint version
53    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    /// Optional field to delete a specific Blueprint version
58    pub fn set_blueprint_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
59        self.blueprint_version = input;
60        self
61    }
62    /// Optional field to delete a specific Blueprint version
63    pub fn get_blueprint_version(&self) -> &::std::option::Option<::std::string::String> {
64        &self.blueprint_version
65    }
66    /// Consumes the builder and constructs a [`DeleteBlueprintInput`](crate::operation::delete_blueprint::DeleteBlueprintInput).
67    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}