1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Detailed information about the StackSet operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StackSetOperationStatusDetails {
    /// <p>The number of stack instances for which the StackSet operation failed.</p>
    pub failed_stack_instances_count: ::std::option::Option<i32>,
}
impl StackSetOperationStatusDetails {
    /// <p>The number of stack instances for which the StackSet operation failed.</p>
    pub fn failed_stack_instances_count(&self) -> ::std::option::Option<i32> {
        self.failed_stack_instances_count
    }
}
impl StackSetOperationStatusDetails {
    /// Creates a new builder-style object to manufacture [`StackSetOperationStatusDetails`](crate::types::StackSetOperationStatusDetails).
    pub fn builder() -> crate::types::builders::StackSetOperationStatusDetailsBuilder {
        crate::types::builders::StackSetOperationStatusDetailsBuilder::default()
    }
}

/// A builder for [`StackSetOperationStatusDetails`](crate::types::StackSetOperationStatusDetails).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StackSetOperationStatusDetailsBuilder {
    pub(crate) failed_stack_instances_count: ::std::option::Option<i32>,
}
impl StackSetOperationStatusDetailsBuilder {
    /// <p>The number of stack instances for which the StackSet operation failed.</p>
    pub fn failed_stack_instances_count(mut self, input: i32) -> Self {
        self.failed_stack_instances_count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of stack instances for which the StackSet operation failed.</p>
    pub fn set_failed_stack_instances_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.failed_stack_instances_count = input;
        self
    }
    /// <p>The number of stack instances for which the StackSet operation failed.</p>
    pub fn get_failed_stack_instances_count(&self) -> &::std::option::Option<i32> {
        &self.failed_stack_instances_count
    }
    /// Consumes the builder and constructs a [`StackSetOperationStatusDetails`](crate::types::StackSetOperationStatusDetails).
    pub fn build(self) -> crate::types::StackSetOperationStatusDetails {
        crate::types::StackSetOperationStatusDetails {
            failed_stack_instances_count: self.failed_stack_instances_count,
        }
    }
}