#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BatchGetBlueprintsInput {
pub names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub include_blueprint: ::std::option::Option<bool>,
pub include_parameter_spec: ::std::option::Option<bool>,
}
impl BatchGetBlueprintsInput {
pub fn names(&self) -> &[::std::string::String] {
self.names.as_deref().unwrap_or_default()
}
pub fn include_blueprint(&self) -> ::std::option::Option<bool> {
self.include_blueprint
}
pub fn include_parameter_spec(&self) -> ::std::option::Option<bool> {
self.include_parameter_spec
}
}
impl BatchGetBlueprintsInput {
pub fn builder() -> crate::operation::batch_get_blueprints::builders::BatchGetBlueprintsInputBuilder {
crate::operation::batch_get_blueprints::builders::BatchGetBlueprintsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct BatchGetBlueprintsInputBuilder {
pub(crate) names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) include_blueprint: ::std::option::Option<bool>,
pub(crate) include_parameter_spec: ::std::option::Option<bool>,
}
impl BatchGetBlueprintsInputBuilder {
pub fn names(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.names.unwrap_or_default();
v.push(input.into());
self.names = ::std::option::Option::Some(v);
self
}
pub fn set_names(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.names = input;
self
}
pub fn get_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.names
}
pub fn include_blueprint(mut self, input: bool) -> Self {
self.include_blueprint = ::std::option::Option::Some(input);
self
}
pub fn set_include_blueprint(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_blueprint = input;
self
}
pub fn get_include_blueprint(&self) -> &::std::option::Option<bool> {
&self.include_blueprint
}
pub fn include_parameter_spec(mut self, input: bool) -> Self {
self.include_parameter_spec = ::std::option::Option::Some(input);
self
}
pub fn set_include_parameter_spec(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_parameter_spec = input;
self
}
pub fn get_include_parameter_spec(&self) -> &::std::option::Option<bool> {
&self.include_parameter_spec
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::batch_get_blueprints::BatchGetBlueprintsInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::batch_get_blueprints::BatchGetBlueprintsInput {
names: self.names,
include_blueprint: self.include_blueprint,
include_parameter_spec: self.include_parameter_spec,
})
}
}