Struct aws_sdk_dlm::types::builders::EventParametersBuilder
source · #[non_exhaustive]pub struct EventParametersBuilder { /* private fields */ }
Expand description
A builder for EventParameters
.
Implementations§
source§impl EventParametersBuilder
impl EventParametersBuilder
sourcepub fn event_type(self, input: EventTypeValues) -> Self
pub fn event_type(self, input: EventTypeValues) -> Self
The type of event. Currently, only snapshot sharing events are supported.
This field is required.sourcepub fn set_event_type(self, input: Option<EventTypeValues>) -> Self
pub fn set_event_type(self, input: Option<EventTypeValues>) -> Self
The type of event. Currently, only snapshot sharing events are supported.
sourcepub fn get_event_type(&self) -> &Option<EventTypeValues>
pub fn get_event_type(&self) -> &Option<EventTypeValues>
The type of event. Currently, only snapshot sharing events are supported.
sourcepub fn snapshot_owner(self, input: impl Into<String>) -> Self
pub fn snapshot_owner(self, input: impl Into<String>) -> Self
Appends an item to snapshot_owner
.
To override the contents of this collection use set_snapshot_owner
.
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.
sourcepub fn set_snapshot_owner(self, input: Option<Vec<String>>) -> Self
pub fn set_snapshot_owner(self, input: Option<Vec<String>>) -> Self
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.
sourcepub fn get_snapshot_owner(&self) -> &Option<Vec<String>>
pub fn get_snapshot_owner(&self) -> &Option<Vec<String>>
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.
sourcepub fn description_regex(self, input: impl Into<String>) -> Self
pub fn description_regex(self, input: impl Into<String>) -> Self
The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the policy to run only if snapshots created by policy policy-1234567890abcdef0
are shared with your account.
sourcepub fn set_description_regex(self, input: Option<String>) -> Self
pub fn set_description_regex(self, input: Option<String>) -> Self
The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the policy to run only if snapshots created by policy policy-1234567890abcdef0
are shared with your account.
sourcepub fn get_description_regex(&self) -> &Option<String>
pub fn get_description_regex(&self) -> &Option<String>
The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the policy to run only if snapshots created by policy policy-1234567890abcdef0
are shared with your account.
sourcepub fn build(self) -> EventParameters
pub fn build(self) -> EventParameters
Consumes the builder and constructs a EventParameters
.
Trait Implementations§
source§impl Clone for EventParametersBuilder
impl Clone for EventParametersBuilder
source§fn clone(&self) -> EventParametersBuilder
fn clone(&self) -> EventParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventParametersBuilder
impl Debug for EventParametersBuilder
source§impl Default for EventParametersBuilder
impl Default for EventParametersBuilder
source§fn default() -> EventParametersBuilder
fn default() -> EventParametersBuilder
source§impl PartialEq for EventParametersBuilder
impl PartialEq for EventParametersBuilder
source§fn eq(&self, other: &EventParametersBuilder) -> bool
fn eq(&self, other: &EventParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EventParametersBuilder
Auto Trait Implementations§
impl Freeze for EventParametersBuilder
impl RefUnwindSafe for EventParametersBuilder
impl Send for EventParametersBuilder
impl Sync for EventParametersBuilder
impl Unpin for EventParametersBuilder
impl UnwindSafe for EventParametersBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more