aws-sdk-support 1.97.0

AWS SDK for AWS Support
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The status of the case returned by the <code>ResolveCase</code> operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ResolveCaseOutput {
    /// <p>The status of the case when the <code>ResolveCase</code> request was sent.</p>
    pub initial_case_status: ::std::option::Option<::std::string::String>,
    /// <p>The status of the case after the <code>ResolveCase</code> request was processed.</p>
    pub final_case_status: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl ResolveCaseOutput {
    /// <p>The status of the case when the <code>ResolveCase</code> request was sent.</p>
    pub fn initial_case_status(&self) -> ::std::option::Option<&str> {
        self.initial_case_status.as_deref()
    }
    /// <p>The status of the case after the <code>ResolveCase</code> request was processed.</p>
    pub fn final_case_status(&self) -> ::std::option::Option<&str> {
        self.final_case_status.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for ResolveCaseOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl ResolveCaseOutput {
    /// Creates a new builder-style object to manufacture [`ResolveCaseOutput`](crate::operation::resolve_case::ResolveCaseOutput).
    pub fn builder() -> crate::operation::resolve_case::builders::ResolveCaseOutputBuilder {
        crate::operation::resolve_case::builders::ResolveCaseOutputBuilder::default()
    }
}

/// A builder for [`ResolveCaseOutput`](crate::operation::resolve_case::ResolveCaseOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ResolveCaseOutputBuilder {
    pub(crate) initial_case_status: ::std::option::Option<::std::string::String>,
    pub(crate) final_case_status: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl ResolveCaseOutputBuilder {
    /// <p>The status of the case when the <code>ResolveCase</code> request was sent.</p>
    pub fn initial_case_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.initial_case_status = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The status of the case when the <code>ResolveCase</code> request was sent.</p>
    pub fn set_initial_case_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.initial_case_status = input;
        self
    }
    /// <p>The status of the case when the <code>ResolveCase</code> request was sent.</p>
    pub fn get_initial_case_status(&self) -> &::std::option::Option<::std::string::String> {
        &self.initial_case_status
    }
    /// <p>The status of the case after the <code>ResolveCase</code> request was processed.</p>
    pub fn final_case_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.final_case_status = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The status of the case after the <code>ResolveCase</code> request was processed.</p>
    pub fn set_final_case_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.final_case_status = input;
        self
    }
    /// <p>The status of the case after the <code>ResolveCase</code> request was processed.</p>
    pub fn get_final_case_status(&self) -> &::std::option::Option<::std::string::String> {
        &self.final_case_status
    }
    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 [`ResolveCaseOutput`](crate::operation::resolve_case::ResolveCaseOutput).
    pub fn build(self) -> crate::operation::resolve_case::ResolveCaseOutput {
        crate::operation::resolve_case::ResolveCaseOutput {
            initial_case_status: self.initial_case_status,
            final_case_status: self.final_case_status,
            _request_id: self._request_id,
        }
    }
}