aws-sdk-mediaconnect 0.25.0

AWS SDK for AWS MediaConnect
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteFlowOutput {
    /// The ARN of the flow that was deleted.
    #[doc(hidden)]
    pub flow_arn: std::option::Option<std::string::String>,
    /// The status of the flow when the DeleteFlow process begins.
    #[doc(hidden)]
    pub status: std::option::Option<crate::types::Status>,
    _request_id: Option<String>,
}
impl DeleteFlowOutput {
    /// The ARN of the flow that was deleted.
    pub fn flow_arn(&self) -> std::option::Option<&str> {
        self.flow_arn.as_deref()
    }
    /// The status of the flow when the DeleteFlow process begins.
    pub fn status(&self) -> std::option::Option<&crate::types::Status> {
        self.status.as_ref()
    }
}
impl aws_http::request_id::RequestId for DeleteFlowOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DeleteFlowOutput {
    /// Creates a new builder-style object to manufacture [`DeleteFlowOutput`](crate::operation::delete_flow::DeleteFlowOutput).
    pub fn builder() -> crate::operation::delete_flow::builders::DeleteFlowOutputBuilder {
        crate::operation::delete_flow::builders::DeleteFlowOutputBuilder::default()
    }
}

/// A builder for [`DeleteFlowOutput`](crate::operation::delete_flow::DeleteFlowOutput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteFlowOutputBuilder {
    pub(crate) flow_arn: std::option::Option<std::string::String>,
    pub(crate) status: std::option::Option<crate::types::Status>,
    _request_id: Option<String>,
}
impl DeleteFlowOutputBuilder {
    /// The ARN of the flow that was deleted.
    pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
        self.flow_arn = Some(input.into());
        self
    }
    /// The ARN of the flow that was deleted.
    pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.flow_arn = input;
        self
    }
    /// The status of the flow when the DeleteFlow process begins.
    pub fn status(mut self, input: crate::types::Status) -> Self {
        self.status = Some(input);
        self
    }
    /// The status of the flow when the DeleteFlow process begins.
    pub fn set_status(mut self, input: std::option::Option<crate::types::Status>) -> Self {
        self.status = input;
        self
    }
    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
    }
    /// Consumes the builder and constructs a [`DeleteFlowOutput`](crate::operation::delete_flow::DeleteFlowOutput).
    pub fn build(self) -> crate::operation::delete_flow::DeleteFlowOutput {
        crate::operation::delete_flow::DeleteFlowOutput {
            flow_arn: self.flow_arn,
            status: self.status,
            _request_id: self._request_id,
        }
    }
}