#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeStepInput {
pub cluster_id: ::std::option::Option<::std::string::String>,
pub step_id: ::std::option::Option<::std::string::String>,
}
impl DescribeStepInput {
pub fn cluster_id(&self) -> ::std::option::Option<&str> {
self.cluster_id.as_deref()
}
pub fn step_id(&self) -> ::std::option::Option<&str> {
self.step_id.as_deref()
}
}
impl DescribeStepInput {
pub fn builder() -> crate::operation::describe_step::builders::DescribeStepInputBuilder {
crate::operation::describe_step::builders::DescribeStepInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeStepInputBuilder {
pub(crate) cluster_id: ::std::option::Option<::std::string::String>,
pub(crate) step_id: ::std::option::Option<::std::string::String>,
}
impl DescribeStepInputBuilder {
pub fn cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_id = input;
self
}
pub fn get_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_id
}
pub fn step_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.step_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_step_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.step_id = input;
self
}
pub fn get_step_id(&self) -> &::std::option::Option<::std::string::String> {
&self.step_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_step::DescribeStepInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_step::DescribeStepInput {
cluster_id: self.cluster_id,
step_id: self.step_id,
})
}
}