#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ExportTaskS3LocationRequest {
pub s3_bucket: ::std::option::Option<::std::string::String>,
pub s3_prefix: ::std::option::Option<::std::string::String>,
}
impl ExportTaskS3LocationRequest {
pub fn s3_bucket(&self) -> ::std::option::Option<&str> {
self.s3_bucket.as_deref()
}
pub fn s3_prefix(&self) -> ::std::option::Option<&str> {
self.s3_prefix.as_deref()
}
}
impl ExportTaskS3LocationRequest {
pub fn builder() -> crate::types::builders::ExportTaskS3LocationRequestBuilder {
crate::types::builders::ExportTaskS3LocationRequestBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ExportTaskS3LocationRequestBuilder {
pub(crate) s3_bucket: ::std::option::Option<::std::string::String>,
pub(crate) s3_prefix: ::std::option::Option<::std::string::String>,
}
impl ExportTaskS3LocationRequestBuilder {
pub fn s3_bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_bucket = ::std::option::Option::Some(input.into());
self
}
pub fn set_s3_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_bucket = input;
self
}
pub fn get_s3_bucket(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_bucket
}
pub fn s3_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_prefix = ::std::option::Option::Some(input.into());
self
}
pub fn set_s3_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_prefix = input;
self
}
pub fn get_s3_prefix(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_prefix
}
pub fn build(self) -> crate::types::ExportTaskS3LocationRequest {
crate::types::ExportTaskS3LocationRequest {
s3_bucket: self.s3_bucket,
s3_prefix: self.s3_prefix,
}
}
}