aws_sdk_bedrockdataautomation/operation/update_blueprint/
_update_blueprint_input.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Update Blueprint Request
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct UpdateBlueprintInput {
    /// ARN generated at the server side when a Blueprint is created
    pub blueprint_arn: ::std::option::Option<::std::string::String>,
    /// Schema of the blueprint
    pub schema: ::std::option::Option<::std::string::String>,
    /// Stage of the Blueprint
    pub blueprint_stage: ::std::option::Option<crate::types::BlueprintStage>,
}
impl UpdateBlueprintInput {
    /// ARN generated at the server side when a Blueprint is created
    pub fn blueprint_arn(&self) -> ::std::option::Option<&str> {
        self.blueprint_arn.as_deref()
    }
    /// Schema of the blueprint
    pub fn schema(&self) -> ::std::option::Option<&str> {
        self.schema.as_deref()
    }
    /// Stage of the Blueprint
    pub fn blueprint_stage(&self) -> ::std::option::Option<&crate::types::BlueprintStage> {
        self.blueprint_stage.as_ref()
    }
}
impl ::std::fmt::Debug for UpdateBlueprintInput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateBlueprintInput");
        formatter.field("blueprint_arn", &self.blueprint_arn);
        formatter.field("schema", &"*** Sensitive Data Redacted ***");
        formatter.field("blueprint_stage", &self.blueprint_stage);
        formatter.finish()
    }
}
impl UpdateBlueprintInput {
    /// Creates a new builder-style object to manufacture [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
    pub fn builder() -> crate::operation::update_blueprint::builders::UpdateBlueprintInputBuilder {
        crate::operation::update_blueprint::builders::UpdateBlueprintInputBuilder::default()
    }
}

/// A builder for [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct UpdateBlueprintInputBuilder {
    pub(crate) blueprint_arn: ::std::option::Option<::std::string::String>,
    pub(crate) schema: ::std::option::Option<::std::string::String>,
    pub(crate) blueprint_stage: ::std::option::Option<crate::types::BlueprintStage>,
}
impl UpdateBlueprintInputBuilder {
    /// ARN generated at the server side when a Blueprint is created
    /// This field is required.
    pub fn blueprint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.blueprint_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// ARN generated at the server side when a Blueprint is created
    pub fn set_blueprint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.blueprint_arn = input;
        self
    }
    /// ARN generated at the server side when a Blueprint is created
    pub fn get_blueprint_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.blueprint_arn
    }
    /// Schema of the blueprint
    /// This field is required.
    pub fn schema(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.schema = ::std::option::Option::Some(input.into());
        self
    }
    /// Schema of the blueprint
    pub fn set_schema(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.schema = input;
        self
    }
    /// Schema of the blueprint
    pub fn get_schema(&self) -> &::std::option::Option<::std::string::String> {
        &self.schema
    }
    /// Stage of the Blueprint
    pub fn blueprint_stage(mut self, input: crate::types::BlueprintStage) -> Self {
        self.blueprint_stage = ::std::option::Option::Some(input);
        self
    }
    /// Stage of the Blueprint
    pub fn set_blueprint_stage(mut self, input: ::std::option::Option<crate::types::BlueprintStage>) -> Self {
        self.blueprint_stage = input;
        self
    }
    /// Stage of the Blueprint
    pub fn get_blueprint_stage(&self) -> &::std::option::Option<crate::types::BlueprintStage> {
        &self.blueprint_stage
    }
    /// Consumes the builder and constructs a [`UpdateBlueprintInput`](crate::operation::update_blueprint::UpdateBlueprintInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_blueprint::UpdateBlueprintInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_blueprint::UpdateBlueprintInput {
            blueprint_arn: self.blueprint_arn,
            schema: self.schema,
            blueprint_stage: self.blueprint_stage,
        })
    }
}
impl ::std::fmt::Debug for UpdateBlueprintInputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("UpdateBlueprintInputBuilder");
        formatter.field("blueprint_arn", &self.blueprint_arn);
        formatter.field("schema", &"*** Sensitive Data Redacted ***");
        formatter.field("blueprint_stage", &self.blueprint_stage);
        formatter.finish()
    }
}