#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetFeatureInput {
pub project: ::std::option::Option<::std::string::String>,
pub feature: ::std::option::Option<::std::string::String>,
}
impl GetFeatureInput {
pub fn project(&self) -> ::std::option::Option<&str> {
self.project.as_deref()
}
pub fn feature(&self) -> ::std::option::Option<&str> {
self.feature.as_deref()
}
}
impl GetFeatureInput {
pub fn builder() -> crate::operation::get_feature::builders::GetFeatureInputBuilder {
crate::operation::get_feature::builders::GetFeatureInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetFeatureInputBuilder {
pub(crate) project: ::std::option::Option<::std::string::String>,
pub(crate) feature: ::std::option::Option<::std::string::String>,
}
impl GetFeatureInputBuilder {
pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project = ::std::option::Option::Some(input.into());
self
}
pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project = input;
self
}
pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
&self.project
}
pub fn feature(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.feature = ::std::option::Option::Some(input.into());
self
}
pub fn set_feature(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.feature = input;
self
}
pub fn get_feature(&self) -> &::std::option::Option<::std::string::String> {
&self.feature
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_feature::GetFeatureInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_feature::GetFeatureInput {
project: self.project,
feature: self.feature,
})
}
}