#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeFeatureMetadataOutput {
pub feature_group_arn: ::std::option::Option<::std::string::String>,
pub feature_group_name: ::std::option::Option<::std::string::String>,
pub feature_name: ::std::option::Option<::std::string::String>,
pub feature_type: ::std::option::Option<crate::types::FeatureType>,
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub description: ::std::option::Option<::std::string::String>,
pub parameters: ::std::option::Option<::std::vec::Vec<crate::types::FeatureParameter>>,
_request_id: Option<String>,
}
impl DescribeFeatureMetadataOutput {
pub fn feature_group_arn(&self) -> ::std::option::Option<&str> {
self.feature_group_arn.as_deref()
}
pub fn feature_group_name(&self) -> ::std::option::Option<&str> {
self.feature_group_name.as_deref()
}
pub fn feature_name(&self) -> ::std::option::Option<&str> {
self.feature_name.as_deref()
}
pub fn feature_type(&self) -> ::std::option::Option<&crate::types::FeatureType> {
self.feature_type.as_ref()
}
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time.as_ref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn parameters(&self) -> &[crate::types::FeatureParameter] {
self.parameters.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for DescribeFeatureMetadataOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeFeatureMetadataOutput {
pub fn builder() -> crate::operation::describe_feature_metadata::builders::DescribeFeatureMetadataOutputBuilder {
crate::operation::describe_feature_metadata::builders::DescribeFeatureMetadataOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeFeatureMetadataOutputBuilder {
pub(crate) feature_group_arn: ::std::option::Option<::std::string::String>,
pub(crate) feature_group_name: ::std::option::Option<::std::string::String>,
pub(crate) feature_name: ::std::option::Option<::std::string::String>,
pub(crate) feature_type: ::std::option::Option<crate::types::FeatureType>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) parameters: ::std::option::Option<::std::vec::Vec<crate::types::FeatureParameter>>,
_request_id: Option<String>,
}
impl DescribeFeatureMetadataOutputBuilder {
pub fn feature_group_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.feature_group_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_feature_group_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.feature_group_arn = input;
self
}
pub fn get_feature_group_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.feature_group_arn
}
pub fn feature_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.feature_group_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_feature_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.feature_group_name = input;
self
}
pub fn get_feature_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.feature_group_name
}
pub fn feature_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.feature_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_feature_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.feature_name = input;
self
}
pub fn get_feature_name(&self) -> &::std::option::Option<::std::string::String> {
&self.feature_name
}
pub fn feature_type(mut self, input: crate::types::FeatureType) -> Self {
self.feature_type = ::std::option::Option::Some(input);
self
}
pub fn set_feature_type(mut self, input: ::std::option::Option<crate::types::FeatureType>) -> Self {
self.feature_type = input;
self
}
pub fn get_feature_type(&self) -> &::std::option::Option<crate::types::FeatureType> {
&self.feature_type
}
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time = input;
self
}
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time = input;
self
}
pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn parameters(mut self, input: crate::types::FeatureParameter) -> Self {
let mut v = self.parameters.unwrap_or_default();
v.push(input);
self.parameters = ::std::option::Option::Some(v);
self
}
pub fn set_parameters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FeatureParameter>>) -> Self {
self.parameters = input;
self
}
pub fn get_parameters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FeatureParameter>> {
&self.parameters
}
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_feature_metadata::DescribeFeatureMetadataOutput {
crate::operation::describe_feature_metadata::DescribeFeatureMetadataOutput {
feature_group_arn: self.feature_group_arn,
feature_group_name: self.feature_group_name,
feature_name: self.feature_name,
feature_type: self.feature_type,
creation_time: self.creation_time,
last_modified_time: self.last_modified_time,
description: self.description,
parameters: self.parameters,
_request_id: self._request_id,
}
}
}