aws_sdk_sagemaker/types/
_condition_step_metadata.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Metadata for a Condition step.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ConditionStepMetadata {
7    /// <p>The outcome of the Condition step evaluation.</p>
8    pub outcome: ::std::option::Option<crate::types::ConditionOutcome>,
9}
10impl ConditionStepMetadata {
11    /// <p>The outcome of the Condition step evaluation.</p>
12    pub fn outcome(&self) -> ::std::option::Option<&crate::types::ConditionOutcome> {
13        self.outcome.as_ref()
14    }
15}
16impl ConditionStepMetadata {
17    /// Creates a new builder-style object to manufacture [`ConditionStepMetadata`](crate::types::ConditionStepMetadata).
18    pub fn builder() -> crate::types::builders::ConditionStepMetadataBuilder {
19        crate::types::builders::ConditionStepMetadataBuilder::default()
20    }
21}
22
23/// A builder for [`ConditionStepMetadata`](crate::types::ConditionStepMetadata).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct ConditionStepMetadataBuilder {
27    pub(crate) outcome: ::std::option::Option<crate::types::ConditionOutcome>,
28}
29impl ConditionStepMetadataBuilder {
30    /// <p>The outcome of the Condition step evaluation.</p>
31    pub fn outcome(mut self, input: crate::types::ConditionOutcome) -> Self {
32        self.outcome = ::std::option::Option::Some(input);
33        self
34    }
35    /// <p>The outcome of the Condition step evaluation.</p>
36    pub fn set_outcome(mut self, input: ::std::option::Option<crate::types::ConditionOutcome>) -> Self {
37        self.outcome = input;
38        self
39    }
40    /// <p>The outcome of the Condition step evaluation.</p>
41    pub fn get_outcome(&self) -> &::std::option::Option<crate::types::ConditionOutcome> {
42        &self.outcome
43    }
44    /// Consumes the builder and constructs a [`ConditionStepMetadata`](crate::types::ConditionStepMetadata).
45    pub fn build(self) -> crate::types::ConditionStepMetadata {
46        crate::types::ConditionStepMetadata { outcome: self.outcome }
47    }
48}