aws_sdk_emr/operation/modify_cluster/
_modify_cluster_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct ModifyClusterOutput {
6 pub step_concurrency_level: ::std::option::Option<i32>,
8 pub extended_support: ::std::option::Option<bool>,
10 _request_id: Option<String>,
11}
12impl ModifyClusterOutput {
13 pub fn step_concurrency_level(&self) -> ::std::option::Option<i32> {
15 self.step_concurrency_level
16 }
17 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 pub fn builder() -> crate::operation::modify_cluster::builders::ModifyClusterOutputBuilder {
30 crate::operation::modify_cluster::builders::ModifyClusterOutputBuilder::default()
31 }
32}
33
34#[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 pub fn step_concurrency_level(mut self, input: i32) -> Self {
45 self.step_concurrency_level = ::std::option::Option::Some(input);
46 self
47 }
48 pub fn set_step_concurrency_level(mut self, input: ::std::option::Option<i32>) -> Self {
50 self.step_concurrency_level = input;
51 self
52 }
53 pub fn get_step_concurrency_level(&self) -> &::std::option::Option<i32> {
55 &self.step_concurrency_level
56 }
57 pub fn extended_support(mut self, input: bool) -> Self {
59 self.extended_support = ::std::option::Option::Some(input);
60 self
61 }
62 pub fn set_extended_support(mut self, input: ::std::option::Option<bool>) -> Self {
64 self.extended_support = input;
65 self
66 }
67 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 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}