aws_sdk_glue/operation/update_blueprint/
_update_blueprint_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateBlueprintInput {
6 pub name: ::std::option::Option<::std::string::String>,
8 pub description: ::std::option::Option<::std::string::String>,
10 pub blueprint_location: ::std::option::Option<::std::string::String>,
12}
13impl UpdateBlueprintInput {
14 pub fn name(&self) -> ::std::option::Option<&str> {
16 self.name.as_deref()
17 }
18 pub fn description(&self) -> ::std::option::Option<&str> {
20 self.description.as_deref()
21 }
22 pub fn blueprint_location(&self) -> ::std::option::Option<&str> {
24 self.blueprint_location.as_deref()
25 }
26}
27impl UpdateBlueprintInput {
28 pub fn builder() -> crate::operation::update_blueprint::builders::UpdateBlueprintInputBuilder {
30 crate::operation::update_blueprint::builders::UpdateBlueprintInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct UpdateBlueprintInputBuilder {
38 pub(crate) name: ::std::option::Option<::std::string::String>,
39 pub(crate) description: ::std::option::Option<::std::string::String>,
40 pub(crate) blueprint_location: ::std::option::Option<::std::string::String>,
41}
42impl UpdateBlueprintInputBuilder {
43 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.name = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.name = input;
52 self
53 }
54 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
56 &self.name
57 }
58 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60 self.description = ::std::option::Option::Some(input.into());
61 self
62 }
63 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.description = input;
66 self
67 }
68 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
70 &self.description
71 }
72 pub fn blueprint_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
75 self.blueprint_location = ::std::option::Option::Some(input.into());
76 self
77 }
78 pub fn set_blueprint_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
80 self.blueprint_location = input;
81 self
82 }
83 pub fn get_blueprint_location(&self) -> &::std::option::Option<::std::string::String> {
85 &self.blueprint_location
86 }
87 pub fn build(
89 self,
90 ) -> ::std::result::Result<crate::operation::update_blueprint::UpdateBlueprintInput, ::aws_smithy_types::error::operation::BuildError> {
91 ::std::result::Result::Ok(crate::operation::update_blueprint::UpdateBlueprintInput {
92 name: self.name,
93 description: self.description,
94 blueprint_location: self.blueprint_location,
95 })
96 }
97}