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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>A container that specifies the time value for S3 Replication Time Control (S3 RTC). This value is also used for the replication metrics <code>EventThreshold</code> element. </p> <note>
/// <p>This is not supported by Amazon S3 on Outposts buckets.</p>
/// </note>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ReplicationTimeValue {
/// <p>Contains an integer that specifies the time period in minutes. </p>
/// <p>Valid value: 15</p>
pub minutes: ::std::option::Option<i32>,
}
impl ReplicationTimeValue {
/// <p>Contains an integer that specifies the time period in minutes. </p>
/// <p>Valid value: 15</p>
pub fn minutes(&self) -> ::std::option::Option<i32> {
self.minutes
}
}
impl ReplicationTimeValue {
/// Creates a new builder-style object to manufacture [`ReplicationTimeValue`](crate::types::ReplicationTimeValue).
pub fn builder() -> crate::types::builders::ReplicationTimeValueBuilder {
crate::types::builders::ReplicationTimeValueBuilder::default()
}
}
/// A builder for [`ReplicationTimeValue`](crate::types::ReplicationTimeValue).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ReplicationTimeValueBuilder {
pub(crate) minutes: ::std::option::Option<i32>,
}
impl ReplicationTimeValueBuilder {
/// <p>Contains an integer that specifies the time period in minutes. </p>
/// <p>Valid value: 15</p>
pub fn minutes(mut self, input: i32) -> Self {
self.minutes = ::std::option::Option::Some(input);
self
}
/// <p>Contains an integer that specifies the time period in minutes. </p>
/// <p>Valid value: 15</p>
pub fn set_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
self.minutes = input;
self
}
/// <p>Contains an integer that specifies the time period in minutes. </p>
/// <p>Valid value: 15</p>
pub fn get_minutes(&self) -> &::std::option::Option<i32> {
&self.minutes
}
/// Consumes the builder and constructs a [`ReplicationTimeValue`](crate::types::ReplicationTimeValue).
pub fn build(self) -> crate::types::ReplicationTimeValue {
crate::types::ReplicationTimeValue { minutes: self.minutes }
}
}