aws_sdk_datapipeline/operation/evaluate_expression/
_evaluate_expression_output.rs#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct EvaluateExpressionOutput {
pub evaluated_expression: ::std::string::String,
_request_id: Option<String>,
}
impl EvaluateExpressionOutput {
pub fn evaluated_expression(&self) -> &str {
use std::ops::Deref;
self.evaluated_expression.deref()
}
}
impl ::aws_types::request_id::RequestId for EvaluateExpressionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl EvaluateExpressionOutput {
pub fn builder() -> crate::operation::evaluate_expression::builders::EvaluateExpressionOutputBuilder {
crate::operation::evaluate_expression::builders::EvaluateExpressionOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct EvaluateExpressionOutputBuilder {
pub(crate) evaluated_expression: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl EvaluateExpressionOutputBuilder {
pub fn evaluated_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.evaluated_expression = ::std::option::Option::Some(input.into());
self
}
pub fn set_evaluated_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.evaluated_expression = input;
self
}
pub fn get_evaluated_expression(&self) -> &::std::option::Option<::std::string::String> {
&self.evaluated_expression
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::evaluate_expression::EvaluateExpressionOutput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::evaluate_expression::EvaluateExpressionOutput {
evaluated_expression: self.evaluated_expression.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"evaluated_expression",
"evaluated_expression was not specified but it is required when building EvaluateExpressionOutput",
)
})?,
_request_id: self._request_id,
})
}
}