aws_sdk_emr/operation/modify_cluster/
_modify_cluster_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ModifyClusterOutput {
6    /// <p>The number of steps that can be executed concurrently.</p>
7    pub step_concurrency_level: ::std::option::Option<i32>,
8    /// <p>Reserved.</p>
9    pub extended_support: ::std::option::Option<bool>,
10    _request_id: Option<String>,
11}
12impl ModifyClusterOutput {
13    /// <p>The number of steps that can be executed concurrently.</p>
14    pub fn step_concurrency_level(&self) -> ::std::option::Option<i32> {
15        self.step_concurrency_level
16    }
17    /// <p>Reserved.</p>
18    pub fn extended_support(&self) -> ::std::option::Option<bool> {
19        self.extended_support
20    }
21}
22impl ::aws_types::request_id::RequestId for ModifyClusterOutput {
23    fn request_id(&self) -> Option<&str> {
24        self._request_id.as_deref()
25    }
26}
27impl ModifyClusterOutput {
28    /// Creates a new builder-style object to manufacture [`ModifyClusterOutput`](crate::operation::modify_cluster::ModifyClusterOutput).
29    pub fn builder() -> crate::operation::modify_cluster::builders::ModifyClusterOutputBuilder {
30        crate::operation::modify_cluster::builders::ModifyClusterOutputBuilder::default()
31    }
32}
33
34/// A builder for [`ModifyClusterOutput`](crate::operation::modify_cluster::ModifyClusterOutput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct ModifyClusterOutputBuilder {
38    pub(crate) step_concurrency_level: ::std::option::Option<i32>,
39    pub(crate) extended_support: ::std::option::Option<bool>,
40    _request_id: Option<String>,
41}
42impl ModifyClusterOutputBuilder {
43    /// <p>The number of steps that can be executed concurrently.</p>
44    pub fn step_concurrency_level(mut self, input: i32) -> Self {
45        self.step_concurrency_level = ::std::option::Option::Some(input);
46        self
47    }
48    /// <p>The number of steps that can be executed concurrently.</p>
49    pub fn set_step_concurrency_level(mut self, input: ::std::option::Option<i32>) -> Self {
50        self.step_concurrency_level = input;
51        self
52    }
53    /// <p>The number of steps that can be executed concurrently.</p>
54    pub fn get_step_concurrency_level(&self) -> &::std::option::Option<i32> {
55        &self.step_concurrency_level
56    }
57    /// <p>Reserved.</p>
58    pub fn extended_support(mut self, input: bool) -> Self {
59        self.extended_support = ::std::option::Option::Some(input);
60        self
61    }
62    /// <p>Reserved.</p>
63    pub fn set_extended_support(mut self, input: ::std::option::Option<bool>) -> Self {
64        self.extended_support = input;
65        self
66    }
67    /// <p>Reserved.</p>
68    pub fn get_extended_support(&self) -> &::std::option::Option<bool> {
69        &self.extended_support
70    }
71    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
72        self._request_id = Some(request_id.into());
73        self
74    }
75
76    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
77        self._request_id = request_id;
78        self
79    }
80    /// Consumes the builder and constructs a [`ModifyClusterOutput`](crate::operation::modify_cluster::ModifyClusterOutput).
81    pub fn build(self) -> crate::operation::modify_cluster::ModifyClusterOutput {
82        crate::operation::modify_cluster::ModifyClusterOutput {
83            step_concurrency_level: self.step_concurrency_level,
84            extended_support: self.extended_support,
85            _request_id: self._request_id,
86        }
87    }
88}