#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartBlueprintRunInput {
pub blueprint_name: ::std::option::Option<::std::string::String>,
pub parameters: ::std::option::Option<::std::string::String>,
pub role_arn: ::std::option::Option<::std::string::String>,
}
impl StartBlueprintRunInput {
pub fn blueprint_name(&self) -> ::std::option::Option<&str> {
self.blueprint_name.as_deref()
}
pub fn parameters(&self) -> ::std::option::Option<&str> {
self.parameters.as_deref()
}
pub fn role_arn(&self) -> ::std::option::Option<&str> {
self.role_arn.as_deref()
}
}
impl StartBlueprintRunInput {
pub fn builder() -> crate::operation::start_blueprint_run::builders::StartBlueprintRunInputBuilder {
crate::operation::start_blueprint_run::builders::StartBlueprintRunInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartBlueprintRunInputBuilder {
pub(crate) blueprint_name: ::std::option::Option<::std::string::String>,
pub(crate) parameters: ::std::option::Option<::std::string::String>,
pub(crate) role_arn: ::std::option::Option<::std::string::String>,
}
impl StartBlueprintRunInputBuilder {
pub fn blueprint_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.blueprint_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_blueprint_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.blueprint_name = input;
self
}
pub fn get_blueprint_name(&self) -> &::std::option::Option<::std::string::String> {
&self.blueprint_name
}
pub fn parameters(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.parameters = ::std::option::Option::Some(input.into());
self
}
pub fn set_parameters(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.parameters = input;
self
}
pub fn get_parameters(&self) -> &::std::option::Option<::std::string::String> {
&self.parameters
}
pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.role_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.role_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::start_blueprint_run::StartBlueprintRunInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::start_blueprint_run::StartBlueprintRunInput {
blueprint_name: self.blueprint_name,
parameters: self.parameters,
role_arn: self.role_arn,
})
}
}