/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies a property-based condition that determines whether an S3 object is
* included or excluded from a classification job.See Also:
AWS
* API Reference
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
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
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
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
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
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
The object property to use in the condition.
*/ inline const ScopeFilterKey& GetKey() const{ return m_key; } /** *The object property to use in the condition.
*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *The object property to use in the condition.
*/ inline void SetKey(const ScopeFilterKey& value) { m_keyHasBeenSet = true; m_key = value; } /** *The object property to use in the condition.
*/ inline void SetKey(ScopeFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *The object property to use in the condition.
*/ inline SimpleScopeTerm& WithKey(const ScopeFilterKey& value) { SetKey(value); return *this;} /** *The object property to use in the condition.
*/ inline SimpleScopeTerm& WithKey(ScopeFilterKey&& value) { SetKey(std::move(value)); return *this;} /** *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.
*/ inline const Aws::VectorAn 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.
*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *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.
*/ inline void SetValues(const Aws::VectorAn 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.
*/ inline void SetValues(Aws::VectorAn 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.
*/ inline SimpleScopeTerm& WithValues(const Aws::VectorAn 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.
*/ inline SimpleScopeTerm& WithValues(Aws::VectorAn 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.
*/ inline SimpleScopeTerm& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *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.
*/ inline SimpleScopeTerm& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *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.
*/ inline SimpleScopeTerm& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: JobComparator m_comparator; bool m_comparatorHasBeenSet = false; ScopeFilterKey m_key; bool m_keyHasBeenSet = false; Aws::Vector