#[non_exhaustive]pub struct SearchResourcesSimpleCriterionBuilder { /* private fields */ }
Expand description
A builder for SearchResourcesSimpleCriterion
.
Implementations§
source§impl SearchResourcesSimpleCriterionBuilder
impl SearchResourcesSimpleCriterionBuilder
sourcepub fn comparator(self, input: SearchResourcesComparator) -> Self
pub fn comparator(self, input: SearchResourcesComparator) -> Self
The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).
sourcepub fn set_comparator(self, input: Option<SearchResourcesComparator>) -> Self
pub fn set_comparator(self, input: Option<SearchResourcesComparator>) -> Self
The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).
sourcepub fn get_comparator(&self) -> &Option<SearchResourcesComparator>
pub fn get_comparator(&self) -> &Option<SearchResourcesComparator>
The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).
sourcepub fn key(self, input: SearchResourcesSimpleCriterionKey) -> Self
pub fn key(self, input: SearchResourcesSimpleCriterionKey) -> Self
The property to use in the condition.
sourcepub fn set_key(self, input: Option<SearchResourcesSimpleCriterionKey>) -> Self
pub fn set_key(self, input: Option<SearchResourcesSimpleCriterionKey>) -> Self
The property to use in the condition.
sourcepub fn get_key(&self) -> &Option<SearchResourcesSimpleCriterionKey>
pub fn get_key(&self) -> &Option<SearchResourcesSimpleCriterionKey>
The property to use in the condition.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
An array that lists one or more values to use in the condition. If you specify multiple values, Amazon Macie uses OR logic to join the values. Valid values for each supported property (key) are:
ACCOUNT_ID - A string that represents the unique identifier for the Amazon Web Services account that owns the resource.
S3_BUCKET_EFFECTIVE_PERMISSION - A string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission property of an S3 bucket.
S3_BUCKET_NAME - A string that represents the name of an S3 bucket.
S3_BUCKET_SHARED_ACCESS - A string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess property of an S3 bucket.
Values are case sensitive. Also, Macie doesn't support use of partial values or wildcard characters in values.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
An array that lists one or more values to use in the condition. If you specify multiple values, Amazon Macie uses OR logic to join the values. Valid values for each supported property (key) are:
ACCOUNT_ID - A string that represents the unique identifier for the Amazon Web Services account that owns the resource.
S3_BUCKET_EFFECTIVE_PERMISSION - A string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission property of an S3 bucket.
S3_BUCKET_NAME - A string that represents the name of an S3 bucket.
S3_BUCKET_SHARED_ACCESS - A string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess property of an S3 bucket.
Values are case sensitive. Also, Macie doesn't support use of partial values or wildcard characters in values.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
An array that lists one or more values to use in the condition. If you specify multiple values, Amazon Macie uses OR logic to join the values. Valid values for each supported property (key) are:
ACCOUNT_ID - A string that represents the unique identifier for the Amazon Web Services account that owns the resource.
S3_BUCKET_EFFECTIVE_PERMISSION - A string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission property of an S3 bucket.
S3_BUCKET_NAME - A string that represents the name of an S3 bucket.
S3_BUCKET_SHARED_ACCESS - A string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess property of an S3 bucket.
Values are case sensitive. Also, Macie doesn't support use of partial values or wildcard characters in values.
sourcepub fn build(self) -> SearchResourcesSimpleCriterion
pub fn build(self) -> SearchResourcesSimpleCriterion
Consumes the builder and constructs a SearchResourcesSimpleCriterion
.
Trait Implementations§
source§impl Clone for SearchResourcesSimpleCriterionBuilder
impl Clone for SearchResourcesSimpleCriterionBuilder
source§fn clone(&self) -> SearchResourcesSimpleCriterionBuilder
fn clone(&self) -> SearchResourcesSimpleCriterionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SearchResourcesSimpleCriterionBuilder
impl Default for SearchResourcesSimpleCriterionBuilder
source§fn default() -> SearchResourcesSimpleCriterionBuilder
fn default() -> SearchResourcesSimpleCriterionBuilder
source§impl PartialEq for SearchResourcesSimpleCriterionBuilder
impl PartialEq for SearchResourcesSimpleCriterionBuilder
source§fn eq(&self, other: &SearchResourcesSimpleCriterionBuilder) -> bool
fn eq(&self, other: &SearchResourcesSimpleCriterionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.