aws_sdk_datapipeline/operation/evaluate_expression/
_evaluate_expression_input.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EvaluateExpressionInput {
pub pipeline_id: ::std::option::Option<::std::string::String>,
pub object_id: ::std::option::Option<::std::string::String>,
pub expression: ::std::option::Option<::std::string::String>,
}
impl EvaluateExpressionInput {
pub fn pipeline_id(&self) -> ::std::option::Option<&str> {
self.pipeline_id.as_deref()
}
pub fn object_id(&self) -> ::std::option::Option<&str> {
self.object_id.as_deref()
}
pub fn expression(&self) -> ::std::option::Option<&str> {
self.expression.as_deref()
}
}
impl EvaluateExpressionInput {
pub fn builder() -> crate::operation::evaluate_expression::builders::EvaluateExpressionInputBuilder {
crate::operation::evaluate_expression::builders::EvaluateExpressionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct EvaluateExpressionInputBuilder {
pub(crate) pipeline_id: ::std::option::Option<::std::string::String>,
pub(crate) object_id: ::std::option::Option<::std::string::String>,
pub(crate) expression: ::std::option::Option<::std::string::String>,
}
impl EvaluateExpressionInputBuilder {
pub fn pipeline_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.pipeline_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_pipeline_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.pipeline_id = input;
self
}
pub fn get_pipeline_id(&self) -> &::std::option::Option<::std::string::String> {
&self.pipeline_id
}
pub fn object_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.object_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_object_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.object_id = input;
self
}
pub fn get_object_id(&self) -> &::std::option::Option<::std::string::String> {
&self.object_id
}
pub fn expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.expression = ::std::option::Option::Some(input.into());
self
}
pub fn set_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.expression = input;
self
}
pub fn get_expression(&self) -> &::std::option::Option<::std::string::String> {
&self.expression
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::evaluate_expression::EvaluateExpressionInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::evaluate_expression::EvaluateExpressionInput {
pipeline_id: self.pipeline_id,
object_id: self.object_id,
expression: self.expression,
})
}
}