Struct aws_sdk_macie2::types::builders::SimpleScopeTermBuilder
source · #[non_exhaustive]pub struct SimpleScopeTermBuilder { /* private fields */ }
Expand description
A builder for SimpleScopeTerm
.
Implementations§
source§impl SimpleScopeTermBuilder
impl SimpleScopeTermBuilder
sourcepub fn comparator(self, input: JobComparator) -> Self
pub fn comparator(self, input: JobComparator) -> Self
The operator to use in the condition. Valid values for each supported property (key) are:
OBJECT_EXTENSION - EQ (equals) or NE (not equals)
OBJECT_KEY - STARTS_WITH
OBJECT_LAST_MODIFIED_DATE - Any operator except CONTAINS
OBJECT_SIZE - Any operator except CONTAINS
sourcepub fn set_comparator(self, input: Option<JobComparator>) -> Self
pub fn set_comparator(self, input: Option<JobComparator>) -> Self
The operator to use in the condition. Valid values for each supported property (key) are:
OBJECT_EXTENSION - EQ (equals) or NE (not equals)
OBJECT_KEY - STARTS_WITH
OBJECT_LAST_MODIFIED_DATE - Any operator except CONTAINS
OBJECT_SIZE - Any operator except CONTAINS
sourcepub fn get_comparator(&self) -> &Option<JobComparator>
pub fn get_comparator(&self) -> &Option<JobComparator>
The operator to use in the condition. Valid values for each supported property (key) are:
OBJECT_EXTENSION - EQ (equals) or NE (not equals)
OBJECT_KEY - STARTS_WITH
OBJECT_LAST_MODIFIED_DATE - Any operator except CONTAINS
OBJECT_SIZE - Any operator except CONTAINS
sourcepub fn key(self, input: ScopeFilterKey) -> Self
pub fn key(self, input: ScopeFilterKey) -> Self
The object property to use in the condition.
sourcepub fn set_key(self, input: Option<ScopeFilterKey>) -> Self
pub fn set_key(self, input: Option<ScopeFilterKey>) -> Self
The object property to use in the condition.
sourcepub fn get_key(&self) -> &Option<ScopeFilterKey>
pub fn get_key(&self) -> &Option<ScopeFilterKey>
The object 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 the values to use in the condition. If the value for the key property is OBJECT_EXTENSION or OBJECT_KEY, this array can specify multiple values and Amazon Macie uses OR logic to join the values. Otherwise, this array can specify only one value.
Valid values for each supported property (key) are:
OBJECT_EXTENSION - A string that represents the file name extension of an object. For example: docx or pdf
OBJECT_KEY - A string that represents the key prefix (folder name or path) of an object. For example: logs or awslogs/eventlogs. This value applies a condition to objects whose keys (names) begin with the specified value.
OBJECT_LAST_MODIFIED_DATE - The date and time (in UTC and extended ISO 8601 format) when an object was created or last changed, whichever is latest. For example: 2020-09-28T14:31:13Z
OBJECT_SIZE - An integer that represents the storage size (in bytes) of an object.
Macie doesn't support use of wildcard characters in these values. Also, string values are case sensitive.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
An array that lists the values to use in the condition. If the value for the key property is OBJECT_EXTENSION or OBJECT_KEY, this array can specify multiple values and Amazon Macie uses OR logic to join the values. Otherwise, this array can specify only one value.
Valid values for each supported property (key) are:
OBJECT_EXTENSION - A string that represents the file name extension of an object. For example: docx or pdf
OBJECT_KEY - A string that represents the key prefix (folder name or path) of an object. For example: logs or awslogs/eventlogs. This value applies a condition to objects whose keys (names) begin with the specified value.
OBJECT_LAST_MODIFIED_DATE - The date and time (in UTC and extended ISO 8601 format) when an object was created or last changed, whichever is latest. For example: 2020-09-28T14:31:13Z
OBJECT_SIZE - An integer that represents the storage size (in bytes) of an object.
Macie doesn't support use of wildcard characters in these values. Also, string values are case sensitive.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
An array that lists the values to use in the condition. If the value for the key property is OBJECT_EXTENSION or OBJECT_KEY, this array can specify multiple values and Amazon Macie uses OR logic to join the values. Otherwise, this array can specify only one value.
Valid values for each supported property (key) are:
OBJECT_EXTENSION - A string that represents the file name extension of an object. For example: docx or pdf
OBJECT_KEY - A string that represents the key prefix (folder name or path) of an object. For example: logs or awslogs/eventlogs. This value applies a condition to objects whose keys (names) begin with the specified value.
OBJECT_LAST_MODIFIED_DATE - The date and time (in UTC and extended ISO 8601 format) when an object was created or last changed, whichever is latest. For example: 2020-09-28T14:31:13Z
OBJECT_SIZE - An integer that represents the storage size (in bytes) of an object.
Macie doesn't support use of wildcard characters in these values. Also, string values are case sensitive.
sourcepub fn build(self) -> SimpleScopeTerm
pub fn build(self) -> SimpleScopeTerm
Consumes the builder and constructs a SimpleScopeTerm
.
Trait Implementations§
source§impl Clone for SimpleScopeTermBuilder
impl Clone for SimpleScopeTermBuilder
source§fn clone(&self) -> SimpleScopeTermBuilder
fn clone(&self) -> SimpleScopeTermBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SimpleScopeTermBuilder
impl Debug for SimpleScopeTermBuilder
source§impl Default for SimpleScopeTermBuilder
impl Default for SimpleScopeTermBuilder
source§fn default() -> SimpleScopeTermBuilder
fn default() -> SimpleScopeTermBuilder
source§impl PartialEq<SimpleScopeTermBuilder> for SimpleScopeTermBuilder
impl PartialEq<SimpleScopeTermBuilder> for SimpleScopeTermBuilder
source§fn eq(&self, other: &SimpleScopeTermBuilder) -> bool
fn eq(&self, other: &SimpleScopeTermBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.