#[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 ==.