1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>A structure that contains information about where Evidently is to store evaluation events for longer term storage.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ProjectDataDelivery {
/// <p>If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.</p>
pub s3_destination: ::std::option::Option<crate::types::S3Destination>,
/// <p>If the project stores evaluation events in CloudWatch Logs, this structure stores the log group name.</p>
pub cloud_watch_logs: ::std::option::Option<crate::types::CloudWatchLogsDestination>,
}
impl ProjectDataDelivery {
/// <p>If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.</p>
pub fn s3_destination(&self) -> ::std::option::Option<&crate::types::S3Destination> {
self.s3_destination.as_ref()
}
/// <p>If the project stores evaluation events in CloudWatch Logs, this structure stores the log group name.</p>
pub fn cloud_watch_logs(&self) -> ::std::option::Option<&crate::types::CloudWatchLogsDestination> {
self.cloud_watch_logs.as_ref()
}
}
impl ProjectDataDelivery {
/// Creates a new builder-style object to manufacture [`ProjectDataDelivery`](crate::types::ProjectDataDelivery).
pub fn builder() -> crate::types::builders::ProjectDataDeliveryBuilder {
crate::types::builders::ProjectDataDeliveryBuilder::default()
}
}
/// A builder for [`ProjectDataDelivery`](crate::types::ProjectDataDelivery).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ProjectDataDeliveryBuilder {
pub(crate) s3_destination: ::std::option::Option<crate::types::S3Destination>,
pub(crate) cloud_watch_logs: ::std::option::Option<crate::types::CloudWatchLogsDestination>,
}
impl ProjectDataDeliveryBuilder {
/// <p>If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.</p>
pub fn s3_destination(mut self, input: crate::types::S3Destination) -> Self {
self.s3_destination = ::std::option::Option::Some(input);
self
}
/// <p>If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.</p>
pub fn set_s3_destination(mut self, input: ::std::option::Option<crate::types::S3Destination>) -> Self {
self.s3_destination = input;
self
}
/// <p>If the project stores evaluation events in an Amazon S3 bucket, this structure stores the bucket name and bucket prefix.</p>
pub fn get_s3_destination(&self) -> &::std::option::Option<crate::types::S3Destination> {
&self.s3_destination
}
/// <p>If the project stores evaluation events in CloudWatch Logs, this structure stores the log group name.</p>
pub fn cloud_watch_logs(mut self, input: crate::types::CloudWatchLogsDestination) -> Self {
self.cloud_watch_logs = ::std::option::Option::Some(input);
self
}
/// <p>If the project stores evaluation events in CloudWatch Logs, this structure stores the log group name.</p>
pub fn set_cloud_watch_logs(mut self, input: ::std::option::Option<crate::types::CloudWatchLogsDestination>) -> Self {
self.cloud_watch_logs = input;
self
}
/// <p>If the project stores evaluation events in CloudWatch Logs, this structure stores the log group name.</p>
pub fn get_cloud_watch_logs(&self) -> &::std::option::Option<crate::types::CloudWatchLogsDestination> {
&self.cloud_watch_logs
}
/// Consumes the builder and constructs a [`ProjectDataDelivery`](crate::types::ProjectDataDelivery).
pub fn build(self) -> crate::types::ProjectDataDelivery {
crate::types::ProjectDataDelivery {
s3_destination: self.s3_destination,
cloud_watch_logs: self.cloud_watch_logs,
}
}
}