aws_sdk_glue/operation/get_blueprint/
_get_blueprint_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetBlueprintInput {
6 pub name: ::std::option::Option<::std::string::String>,
8 pub include_blueprint: ::std::option::Option<bool>,
10 pub include_parameter_spec: ::std::option::Option<bool>,
12}
13impl GetBlueprintInput {
14 pub fn name(&self) -> ::std::option::Option<&str> {
16 self.name.as_deref()
17 }
18 pub fn include_blueprint(&self) -> ::std::option::Option<bool> {
20 self.include_blueprint
21 }
22 pub fn include_parameter_spec(&self) -> ::std::option::Option<bool> {
24 self.include_parameter_spec
25 }
26}
27impl GetBlueprintInput {
28 pub fn builder() -> crate::operation::get_blueprint::builders::GetBlueprintInputBuilder {
30 crate::operation::get_blueprint::builders::GetBlueprintInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct GetBlueprintInputBuilder {
38 pub(crate) name: ::std::option::Option<::std::string::String>,
39 pub(crate) include_blueprint: ::std::option::Option<bool>,
40 pub(crate) include_parameter_spec: ::std::option::Option<bool>,
41}
42impl GetBlueprintInputBuilder {
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 include_blueprint(mut self, input: bool) -> Self {
60 self.include_blueprint = ::std::option::Option::Some(input);
61 self
62 }
63 pub fn set_include_blueprint(mut self, input: ::std::option::Option<bool>) -> Self {
65 self.include_blueprint = input;
66 self
67 }
68 pub fn get_include_blueprint(&self) -> &::std::option::Option<bool> {
70 &self.include_blueprint
71 }
72 pub fn include_parameter_spec(mut self, input: bool) -> Self {
74 self.include_parameter_spec = ::std::option::Option::Some(input);
75 self
76 }
77 pub fn set_include_parameter_spec(mut self, input: ::std::option::Option<bool>) -> Self {
79 self.include_parameter_spec = input;
80 self
81 }
82 pub fn get_include_parameter_spec(&self) -> &::std::option::Option<bool> {
84 &self.include_parameter_spec
85 }
86 pub fn build(
88 self,
89 ) -> ::std::result::Result<crate::operation::get_blueprint::GetBlueprintInput, ::aws_smithy_types::error::operation::BuildError> {
90 ::std::result::Result::Ok(crate::operation::get_blueprint::GetBlueprintInput {
91 name: self.name,
92 include_blueprint: self.include_blueprint,
93 include_parameter_spec: self.include_parameter_spec,
94 })
95 }
96}