#[non_exhaustive]pub struct LifecycleConfig {
pub idle_delete_ttl: Option<Duration>,
pub idle_start_time: Option<Timestamp>,
pub ttl: Option<Ttl>,
/* private fields */
}Expand description
Specifies the cluster auto-delete schedule configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.idle_delete_ttl: Option<Duration>Optional. The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of Duration).
idle_start_time: Option<Timestamp>Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of Timestamp).
ttl: Option<Ttl>Either the exact time the cluster should be deleted at or the cluster maximum age.
Implementations§
Source§impl LifecycleConfig
impl LifecycleConfig
pub fn new() -> Self
Sourcepub fn set_idle_delete_ttl<T>(self, v: T) -> Self
pub fn set_idle_delete_ttl<T>(self, v: T) -> Self
Sets the value of idle_delete_ttl.
Sourcepub fn set_or_clear_idle_delete_ttl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_idle_delete_ttl<T>(self, v: Option<T>) -> Self
Sets or clears the value of idle_delete_ttl.
Sourcepub fn set_idle_start_time<T>(self, v: T) -> Self
pub fn set_idle_start_time<T>(self, v: T) -> Self
Sets the value of idle_start_time.
Sourcepub fn set_or_clear_idle_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_idle_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of idle_start_time.
Sourcepub fn set_ttl<T: Into<Option<Ttl>>>(self, v: T) -> Self
pub fn set_ttl<T: Into<Option<Ttl>>>(self, v: T) -> Self
Sets the value of ttl.
Note that all the setters affecting ttl are mutually
exclusive.
Sourcepub fn auto_delete_time(&self) -> Option<&Box<Timestamp>>
pub fn auto_delete_time(&self) -> Option<&Box<Timestamp>>
The value of ttl
if it holds a AutoDeleteTime, None if the field is not set or
holds a different branch.
Sourcepub fn set_auto_delete_time<T: Into<Box<Timestamp>>>(self, v: T) -> Self
pub fn set_auto_delete_time<T: Into<Box<Timestamp>>>(self, v: T) -> Self
Sets the value of ttl
to hold a AutoDeleteTime.
Note that all the setters affecting ttl are
mutually exclusive.
Trait Implementations§
Source§impl Clone for LifecycleConfig
impl Clone for LifecycleConfig
Source§fn clone(&self) -> LifecycleConfig
fn clone(&self) -> LifecycleConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more