aws_sdk_emr/operation/describe_step/
_describe_step_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>This input determines which step to describe.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DescribeStepInput {
7    /// <p>The identifier of the cluster with steps to describe.</p>
8    pub cluster_id: ::std::option::Option<::std::string::String>,
9    /// <p>The identifier of the step to describe.</p>
10    pub step_id: ::std::option::Option<::std::string::String>,
11}
12impl DescribeStepInput {
13    /// <p>The identifier of the cluster with steps to describe.</p>
14    pub fn cluster_id(&self) -> ::std::option::Option<&str> {
15        self.cluster_id.as_deref()
16    }
17    /// <p>The identifier of the step to describe.</p>
18    pub fn step_id(&self) -> ::std::option::Option<&str> {
19        self.step_id.as_deref()
20    }
21}
22impl DescribeStepInput {
23    /// Creates a new builder-style object to manufacture [`DescribeStepInput`](crate::operation::describe_step::DescribeStepInput).
24    pub fn builder() -> crate::operation::describe_step::builders::DescribeStepInputBuilder {
25        crate::operation::describe_step::builders::DescribeStepInputBuilder::default()
26    }
27}
28
29/// A builder for [`DescribeStepInput`](crate::operation::describe_step::DescribeStepInput).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DescribeStepInputBuilder {
33    pub(crate) cluster_id: ::std::option::Option<::std::string::String>,
34    pub(crate) step_id: ::std::option::Option<::std::string::String>,
35}
36impl DescribeStepInputBuilder {
37    /// <p>The identifier of the cluster with steps to describe.</p>
38    /// This field is required.
39    pub fn cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40        self.cluster_id = ::std::option::Option::Some(input.into());
41        self
42    }
43    /// <p>The identifier of the cluster with steps to describe.</p>
44    pub fn set_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45        self.cluster_id = input;
46        self
47    }
48    /// <p>The identifier of the cluster with steps to describe.</p>
49    pub fn get_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
50        &self.cluster_id
51    }
52    /// <p>The identifier of the step to describe.</p>
53    /// This field is required.
54    pub fn step_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55        self.step_id = ::std::option::Option::Some(input.into());
56        self
57    }
58    /// <p>The identifier of the step to describe.</p>
59    pub fn set_step_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60        self.step_id = input;
61        self
62    }
63    /// <p>The identifier of the step to describe.</p>
64    pub fn get_step_id(&self) -> &::std::option::Option<::std::string::String> {
65        &self.step_id
66    }
67    /// Consumes the builder and constructs a [`DescribeStepInput`](crate::operation::describe_step::DescribeStepInput).
68    pub fn build(
69        self,
70    ) -> ::std::result::Result<crate::operation::describe_step::DescribeStepInput, ::aws_smithy_types::error::operation::BuildError> {
71        ::std::result::Result::Ok(crate::operation::describe_step::DescribeStepInput {
72            cluster_id: self.cluster_id,
73            step_id: self.step_id,
74        })
75    }
76}