#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StopIngestionInput {
pub ingestion_identifier: ::std::option::Option<::std::string::String>,
pub app_bundle_identifier: ::std::option::Option<::std::string::String>,
}
impl StopIngestionInput {
pub fn ingestion_identifier(&self) -> ::std::option::Option<&str> {
self.ingestion_identifier.as_deref()
}
pub fn app_bundle_identifier(&self) -> ::std::option::Option<&str> {
self.app_bundle_identifier.as_deref()
}
}
impl StopIngestionInput {
pub fn builder() -> crate::operation::stop_ingestion::builders::StopIngestionInputBuilder {
crate::operation::stop_ingestion::builders::StopIngestionInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StopIngestionInputBuilder {
pub(crate) ingestion_identifier: ::std::option::Option<::std::string::String>,
pub(crate) app_bundle_identifier: ::std::option::Option<::std::string::String>,
}
impl StopIngestionInputBuilder {
pub fn ingestion_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ingestion_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_ingestion_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ingestion_identifier = input;
self
}
pub fn get_ingestion_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.ingestion_identifier
}
pub fn app_bundle_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.app_bundle_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_app_bundle_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.app_bundle_identifier = input;
self
}
pub fn get_app_bundle_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.app_bundle_identifier
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::stop_ingestion::StopIngestionInput, ::aws_smithy_http::operation::error::BuildError> {
::std::result::Result::Ok(crate::operation::stop_ingestion::StopIngestionInput {
ingestion_identifier: self.ingestion_identifier,
app_bundle_identifier: self.app_bundle_identifier,
})
}
}