#[non_exhaustive]pub struct AwsLogSourceConfigurationBuilder { /* private fields */ }Expand description
A builder for AwsLogSourceConfiguration.
Implementations§
source§impl AwsLogSourceConfigurationBuilder
impl AwsLogSourceConfigurationBuilder
sourcepub fn accounts(self, input: impl Into<String>) -> Self
pub fn accounts(self, input: impl Into<String>) -> Self
Appends an item to accounts.
To override the contents of this collection use set_accounts.
Specify the Amazon Web Services account information where you want to enable Security Lake.
sourcepub fn set_accounts(self, input: Option<Vec<String>>) -> Self
pub fn set_accounts(self, input: Option<Vec<String>>) -> Self
Specify the Amazon Web Services account information where you want to enable Security Lake.
sourcepub fn get_accounts(&self) -> &Option<Vec<String>>
pub fn get_accounts(&self) -> &Option<Vec<String>>
Specify the Amazon Web Services account information where you want to enable Security Lake.
sourcepub fn regions(self, input: impl Into<String>) -> Self
pub fn regions(self, input: impl Into<String>) -> Self
Appends an item to regions.
To override the contents of this collection use set_regions.
Specify the Regions where you want to enable Security Lake.
sourcepub fn set_regions(self, input: Option<Vec<String>>) -> Self
pub fn set_regions(self, input: Option<Vec<String>>) -> Self
Specify the Regions where you want to enable Security Lake.
sourcepub fn get_regions(&self) -> &Option<Vec<String>>
pub fn get_regions(&self) -> &Option<Vec<String>>
Specify the Regions where you want to enable Security Lake.
sourcepub fn source_name(self, input: AwsLogSourceName) -> Self
pub fn source_name(self, input: AwsLogSourceName) -> Self
The name for a Amazon Web Services source. This must be a Regionally unique value.
This field is required.sourcepub fn set_source_name(self, input: Option<AwsLogSourceName>) -> Self
pub fn set_source_name(self, input: Option<AwsLogSourceName>) -> Self
The name for a Amazon Web Services source. This must be a Regionally unique value.
sourcepub fn get_source_name(&self) -> &Option<AwsLogSourceName>
pub fn get_source_name(&self) -> &Option<AwsLogSourceName>
The name for a Amazon Web Services source. This must be a Regionally unique value.
sourcepub fn source_version(self, input: impl Into<String>) -> Self
pub fn source_version(self, input: impl Into<String>) -> Self
The version for a Amazon Web Services source. This must be a Regionally unique value.
sourcepub fn set_source_version(self, input: Option<String>) -> Self
pub fn set_source_version(self, input: Option<String>) -> Self
The version for a Amazon Web Services source. This must be a Regionally unique value.
sourcepub fn get_source_version(&self) -> &Option<String>
pub fn get_source_version(&self) -> &Option<String>
The version for a Amazon Web Services source. This must be a Regionally unique value.
sourcepub fn build(self) -> Result<AwsLogSourceConfiguration, BuildError>
pub fn build(self) -> Result<AwsLogSourceConfiguration, BuildError>
Consumes the builder and constructs a AwsLogSourceConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AwsLogSourceConfigurationBuilder
impl Clone for AwsLogSourceConfigurationBuilder
source§fn clone(&self) -> AwsLogSourceConfigurationBuilder
fn clone(&self) -> AwsLogSourceConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsLogSourceConfigurationBuilder
impl Default for AwsLogSourceConfigurationBuilder
source§fn default() -> AwsLogSourceConfigurationBuilder
fn default() -> AwsLogSourceConfigurationBuilder
source§impl PartialEq for AwsLogSourceConfigurationBuilder
impl PartialEq for AwsLogSourceConfigurationBuilder
source§fn eq(&self, other: &AwsLogSourceConfigurationBuilder) -> bool
fn eq(&self, other: &AwsLogSourceConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AwsLogSourceConfigurationBuilder
Auto Trait Implementations§
impl Freeze for AwsLogSourceConfigurationBuilder
impl RefUnwindSafe for AwsLogSourceConfigurationBuilder
impl Send for AwsLogSourceConfigurationBuilder
impl Sync for AwsLogSourceConfigurationBuilder
impl Unpin for AwsLogSourceConfigurationBuilder
impl UnwindSafe for AwsLogSourceConfigurationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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