#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartExecutionPreviewInput {
pub document_name: ::std::option::Option<::std::string::String>,
pub document_version: ::std::option::Option<::std::string::String>,
pub execution_inputs: ::std::option::Option<crate::types::ExecutionInputs>,
}
impl StartExecutionPreviewInput {
pub fn document_name(&self) -> ::std::option::Option<&str> {
self.document_name.as_deref()
}
pub fn document_version(&self) -> ::std::option::Option<&str> {
self.document_version.as_deref()
}
pub fn execution_inputs(&self) -> ::std::option::Option<&crate::types::ExecutionInputs> {
self.execution_inputs.as_ref()
}
}
impl StartExecutionPreviewInput {
pub fn builder() -> crate::operation::start_execution_preview::builders::StartExecutionPreviewInputBuilder {
crate::operation::start_execution_preview::builders::StartExecutionPreviewInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StartExecutionPreviewInputBuilder {
pub(crate) document_name: ::std::option::Option<::std::string::String>,
pub(crate) document_version: ::std::option::Option<::std::string::String>,
pub(crate) execution_inputs: ::std::option::Option<crate::types::ExecutionInputs>,
}
impl StartExecutionPreviewInputBuilder {
pub fn document_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.document_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_document_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.document_name = input;
self
}
pub fn get_document_name(&self) -> &::std::option::Option<::std::string::String> {
&self.document_name
}
pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.document_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.document_version = input;
self
}
pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
&self.document_version
}
pub fn execution_inputs(mut self, input: crate::types::ExecutionInputs) -> Self {
self.execution_inputs = ::std::option::Option::Some(input);
self
}
pub fn set_execution_inputs(mut self, input: ::std::option::Option<crate::types::ExecutionInputs>) -> Self {
self.execution_inputs = input;
self
}
pub fn get_execution_inputs(&self) -> &::std::option::Option<crate::types::ExecutionInputs> {
&self.execution_inputs
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::start_execution_preview::StartExecutionPreviewInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::start_execution_preview::StartExecutionPreviewInput {
document_name: self.document_name,
document_version: self.document_version,
execution_inputs: self.execution_inputs,
})
}
}