#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RawMessageContent {
pub s3_reference: std::option::Option<crate::model::S3Reference>,
}
impl RawMessageContent {
pub fn s3_reference(&self) -> std::option::Option<&crate::model::S3Reference> {
self.s3_reference.as_ref()
}
}
impl std::fmt::Debug for RawMessageContent {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RawMessageContent");
formatter.field("s3_reference", &self.s3_reference);
formatter.finish()
}
}
pub mod raw_message_content {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) s3_reference: std::option::Option<crate::model::S3Reference>,
}
impl Builder {
pub fn s3_reference(mut self, input: crate::model::S3Reference) -> Self {
self.s3_reference = Some(input);
self
}
pub fn set_s3_reference(
mut self,
input: std::option::Option<crate::model::S3Reference>,
) -> Self {
self.s3_reference = input;
self
}
pub fn build(self) -> crate::model::RawMessageContent {
crate::model::RawMessageContent {
s3_reference: self.s3_reference,
}
}
}
}
impl RawMessageContent {
pub fn builder() -> crate::model::raw_message_content::Builder {
crate::model::raw_message_content::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3Reference {
pub bucket: std::option::Option<std::string::String>,
pub key: std::option::Option<std::string::String>,
pub object_version: std::option::Option<std::string::String>,
}
impl S3Reference {
pub fn bucket(&self) -> std::option::Option<&str> {
self.bucket.as_deref()
}
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
pub fn object_version(&self) -> std::option::Option<&str> {
self.object_version.as_deref()
}
}
impl std::fmt::Debug for S3Reference {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3Reference");
formatter.field("bucket", &self.bucket);
formatter.field("key", &self.key);
formatter.field("object_version", &self.object_version);
formatter.finish()
}
}
pub mod s3_reference {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) bucket: std::option::Option<std::string::String>,
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) object_version: std::option::Option<std::string::String>,
}
impl Builder {
pub fn bucket(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket = Some(input.into());
self
}
pub fn set_bucket(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket = input;
self
}
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
pub fn object_version(mut self, input: impl Into<std::string::String>) -> Self {
self.object_version = Some(input.into());
self
}
pub fn set_object_version(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.object_version = input;
self
}
pub fn build(self) -> crate::model::S3Reference {
crate::model::S3Reference {
bucket: self.bucket,
key: self.key,
object_version: self.object_version,
}
}
}
}
impl S3Reference {
pub fn builder() -> crate::model::s3_reference::Builder {
crate::model::s3_reference::Builder::default()
}
}