/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Specifies a property-based condition that determines whether an S3 object is * included or excluded from a classification job.

See Also:

AWS * API Reference

*/ class SimpleScopeTerm { public: AWS_MACIE2_API SimpleScopeTerm(); AWS_MACIE2_API SimpleScopeTerm(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API SimpleScopeTerm& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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

*/ inline const JobComparator& GetComparator() const{ return m_comparator; } /** *

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

*/ inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; } /** *

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

*/ inline void SetComparator(const JobComparator& value) { m_comparatorHasBeenSet = true; m_comparator = value; } /** *

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

*/ inline void SetComparator(JobComparator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); } /** *

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

*/ inline SimpleScopeTerm& WithComparator(const JobComparator& value) { SetComparator(value); return *this;} /** *

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

*/ inline SimpleScopeTerm& WithComparator(JobComparator&& value) { SetComparator(std::move(value)); return *this;} /** *

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::Vector& GetValues() const{ return m_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.

*/ 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::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

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(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

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& WithValues(const Aws::Vector& value) { SetValues(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& WithValues(Aws::Vector&& value) { SetValues(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 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 m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws