#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeAlgorithmOutput {
pub algorithm: ::std::option::Option<crate::types::Algorithm>,
_request_id: Option<String>,
}
impl DescribeAlgorithmOutput {
pub fn algorithm(&self) -> ::std::option::Option<&crate::types::Algorithm> {
self.algorithm.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeAlgorithmOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeAlgorithmOutput {
pub fn builder() -> crate::operation::describe_algorithm::builders::DescribeAlgorithmOutputBuilder {
crate::operation::describe_algorithm::builders::DescribeAlgorithmOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeAlgorithmOutputBuilder {
pub(crate) algorithm: ::std::option::Option<crate::types::Algorithm>,
_request_id: Option<String>,
}
impl DescribeAlgorithmOutputBuilder {
pub fn algorithm(mut self, input: crate::types::Algorithm) -> Self {
self.algorithm = ::std::option::Option::Some(input);
self
}
pub fn set_algorithm(mut self, input: ::std::option::Option<crate::types::Algorithm>) -> Self {
self.algorithm = input;
self
}
pub fn get_algorithm(&self) -> &::std::option::Option<crate::types::Algorithm> {
&self.algorithm
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::describe_algorithm::DescribeAlgorithmOutput {
crate::operation::describe_algorithm::DescribeAlgorithmOutput {
algorithm: self.algorithm,
_request_id: self._request_id,
}
}
}