#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ExportBundleInput {
pub bundle_id: ::std::option::Option<::std::string::String>,
pub project_id: ::std::option::Option<::std::string::String>,
pub platform: ::std::option::Option<crate::types::Platform>,
}
impl ExportBundleInput {
pub fn bundle_id(&self) -> ::std::option::Option<&str> {
self.bundle_id.as_deref()
}
pub fn project_id(&self) -> ::std::option::Option<&str> {
self.project_id.as_deref()
}
pub fn platform(&self) -> ::std::option::Option<&crate::types::Platform> {
self.platform.as_ref()
}
}
impl ExportBundleInput {
pub fn builder() -> crate::operation::export_bundle::builders::ExportBundleInputBuilder {
crate::operation::export_bundle::builders::ExportBundleInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ExportBundleInputBuilder {
pub(crate) bundle_id: ::std::option::Option<::std::string::String>,
pub(crate) project_id: ::std::option::Option<::std::string::String>,
pub(crate) platform: ::std::option::Option<crate::types::Platform>,
}
impl ExportBundleInputBuilder {
pub fn bundle_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bundle_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_bundle_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bundle_id = input;
self
}
pub fn get_bundle_id(&self) -> &::std::option::Option<::std::string::String> {
&self.bundle_id
}
pub fn project_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.project_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_project_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.project_id = input;
self
}
pub fn get_project_id(&self) -> &::std::option::Option<::std::string::String> {
&self.project_id
}
pub fn platform(mut self, input: crate::types::Platform) -> Self {
self.platform = ::std::option::Option::Some(input);
self
}
pub fn set_platform(mut self, input: ::std::option::Option<crate::types::Platform>) -> Self {
self.platform = input;
self
}
pub fn get_platform(&self) -> &::std::option::Option<crate::types::Platform> {
&self.platform
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::export_bundle::ExportBundleInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::export_bundle::ExportBundleInput {
bundle_id: self.bundle_id,
project_id: self.project_id,
platform: self.platform,
})
}
}