aws_sdk_bedrockdataautomation/operation/update_blueprint/
_update_blueprint_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// Update Blueprint Request
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
6pub struct UpdateBlueprintInput {
7    /// ARN generated at the server side when a Blueprint is created
8    pub blueprint_arn: ::std::option::Option<::std::string::String>,
9    /// Schema of the blueprint
10    pub schema: ::std::option::Option<::std::string::String>,
11    /// Stage of the Blueprint
12    pub blueprint_stage: ::std::option::Option<crate::types::BlueprintStage>,
13}
14impl UpdateBlueprintInput {
15    /// ARN generated at the server side when a Blueprint is created
16    pub fn blueprint_arn(&self) -> ::std::option::Option<&str> {
17        self.blueprint_arn.as_deref()
18    }
19    /// Schema of the blueprint
20    pub fn schema(&self) -> ::std::option::Option<&str> {
21        self.schema.as_deref()
22    }
23    /// Stage of the Blueprint
24    pub fn blueprint_stage(&self) -> ::std::option::Option<&crate::types::BlueprintStage> {
25        self.blueprint_stage.as_ref()
26    }
27}
28impl ::std::fmt::Debug for UpdateBlueprintInput {
29    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
30        let mut formatter = f.debug_struct("UpdateBlueprintInput");
31        formatter.field("blueprint_arn", &self.blueprint_arn);
32        formatter.field("schema", &"*** Sensitive Data Redacted ***");
33        formatter.field("blueprint_stage", &self.blueprint_stage);
34        formatter.finish()
35    }
36}
37impl UpdateBlueprintInput {
38    /// Creates a new builder-style object to manufacture [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
39    pub fn builder() -> crate::operation::update_blueprint::builders::UpdateBlueprintInputBuilder {
40        crate::operation::update_blueprint::builders::UpdateBlueprintInputBuilder::default()
41    }
42}
43
44/// A builder for [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
45#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
46#[non_exhaustive]
47pub struct UpdateBlueprintInputBuilder {
48    pub(crate) blueprint_arn: ::std::option::Option<::std::string::String>,
49    pub(crate) schema: ::std::option::Option<::std::string::String>,
50    pub(crate) blueprint_stage: ::std::option::Option<crate::types::BlueprintStage>,
51}
52impl UpdateBlueprintInputBuilder {
53    /// ARN generated at the server side when a Blueprint is created
54    /// This field is required.
55    pub fn blueprint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
56        self.blueprint_arn = ::std::option::Option::Some(input.into());
57        self
58    }
59    /// ARN generated at the server side when a Blueprint is created
60    pub fn set_blueprint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
61        self.blueprint_arn = input;
62        self
63    }
64    /// ARN generated at the server side when a Blueprint is created
65    pub fn get_blueprint_arn(&self) -> &::std::option::Option<::std::string::String> {
66        &self.blueprint_arn
67    }
68    /// Schema of the blueprint
69    /// This field is required.
70    pub fn schema(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
71        self.schema = ::std::option::Option::Some(input.into());
72        self
73    }
74    /// Schema of the blueprint
75    pub fn set_schema(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
76        self.schema = input;
77        self
78    }
79    /// Schema of the blueprint
80    pub fn get_schema(&self) -> &::std::option::Option<::std::string::String> {
81        &self.schema
82    }
83    /// Stage of the Blueprint
84    pub fn blueprint_stage(mut self, input: crate::types::BlueprintStage) -> Self {
85        self.blueprint_stage = ::std::option::Option::Some(input);
86        self
87    }
88    /// Stage of the Blueprint
89    pub fn set_blueprint_stage(mut self, input: ::std::option::Option<crate::types::BlueprintStage>) -> Self {
90        self.blueprint_stage = input;
91        self
92    }
93    /// Stage of the Blueprint
94    pub fn get_blueprint_stage(&self) -> &::std::option::Option<crate::types::BlueprintStage> {
95        &self.blueprint_stage
96    }
97    /// Consumes the builder and constructs a [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
98    pub fn build(
99        self,
100    ) -> ::std::result::Result<crate::operation::update_blueprint::UpdateBlueprintInput, ::aws_smithy_types::error::operation::BuildError> {
101        ::std::result::Result::Ok(crate::operation::update_blueprint::UpdateBlueprintInput {
102            blueprint_arn: self.blueprint_arn,
103            schema: self.schema,
104            blueprint_stage: self.blueprint_stage,
105        })
106    }
107}
108impl ::std::fmt::Debug for UpdateBlueprintInputBuilder {
109    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
110        let mut formatter = f.debug_struct("UpdateBlueprintInputBuilder");
111        formatter.field("blueprint_arn", &self.blueprint_arn);
112        formatter.field("schema", &"*** Sensitive Data Redacted ***");
113        formatter.field("blueprint_stage", &self.blueprint_stage);
114        formatter.finish()
115    }
116}