text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/macie2/Macie2_EXPORTS.h>
  #include <aws/macie2/model/JobComparator.h>
  #include <aws/macie2/model/ScopeFilterKey.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace Macie2
  {
  namespace Model
  {
  
    /**
     * <p>Specifies a property-based condition that determines whether an object is
     * included or excluded from a classification job.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SimpleScopeTerm">AWS
     * API Reference</a></p>
     */
    class AWS_MACIE2_API SimpleScopeTerm
    {
    public:
      SimpleScopeTerm();
      SimpleScopeTerm(Aws::Utils::Json::JsonView jsonValue);
      SimpleScopeTerm& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The operator to use in the condition. Valid operators for each supported
       * property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - EQ (equals) or NE (not
       * equals)</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - Any operator except
       * CONTAINS</p></li> <li><p>OBJECT_SIZE - Any operator except CONTAINS</p></li>
       * <li><p>TAG - EQ (equals) or NE (not equals)</p></li></ul>
       */
      inline const JobComparator& GetComparator() const{ return m_comparator; }
  
      /**
       * <p>The operator to use in the condition. Valid operators for each supported
       * property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - EQ (equals) or NE (not
       * equals)</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - Any operator except
       * CONTAINS</p></li> <li><p>OBJECT_SIZE - Any operator except CONTAINS</p></li>
       * <li><p>TAG - EQ (equals) or NE (not equals)</p></li></ul>
       */
      inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; }
  
      /**
       * <p>The operator to use in the condition. Valid operators for each supported
       * property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - EQ (equals) or NE (not
       * equals)</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - Any operator except
       * CONTAINS</p></li> <li><p>OBJECT_SIZE - Any operator except CONTAINS</p></li>
       * <li><p>TAG - EQ (equals) or NE (not equals)</p></li></ul>
       */
      inline void SetComparator(const JobComparator& value) { m_comparatorHasBeenSet = true; m_comparator = value; }
  
      /**
       * <p>The operator to use in the condition. Valid operators for each supported
       * property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - EQ (equals) or NE (not
       * equals)</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - Any operator except
       * CONTAINS</p></li> <li><p>OBJECT_SIZE - Any operator except CONTAINS</p></li>
       * <li><p>TAG - EQ (equals) or NE (not equals)</p></li></ul>
       */
      inline void SetComparator(JobComparator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); }
  
      /**
       * <p>The operator to use in the condition. Valid operators for each supported
       * property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - EQ (equals) or NE (not
       * equals)</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - Any operator except
       * CONTAINS</p></li> <li><p>OBJECT_SIZE - Any operator except CONTAINS</p></li>
       * <li><p>TAG - EQ (equals) or NE (not equals)</p></li></ul>
       */
      inline SimpleScopeTerm& WithComparator(const JobComparator& value) { SetComparator(value); return *this;}
  
      /**
       * <p>The operator to use in the condition. Valid operators for each supported
       * property (key) are:</p> <ul><li><p>OBJECT_EXTENSION - EQ (equals) or NE (not
       * equals)</p></li> <li><p>OBJECT_LAST_MODIFIED_DATE - Any operator except
       * CONTAINS</p></li> <li><p>OBJECT_SIZE - Any operator except CONTAINS</p></li>
       * <li><p>TAG - EQ (equals) or NE (not equals)</p></li></ul>
       */
      inline SimpleScopeTerm& WithComparator(JobComparator&& value) { SetComparator(std::move(value)); return *this;}
  
  
      /**
       * <p>The object property to use in the condition.</p>
       */
      inline const ScopeFilterKey& GetKey() const{ return m_key; }
  
      /**
       * <p>The object property to use in the condition.</p>
       */
      inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
  
      /**
       * <p>The object property to use in the condition.</p>
       */
      inline void SetKey(const ScopeFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
  
      /**
       * <p>The object property to use in the condition.</p>
       */
      inline void SetKey(ScopeFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
  
      /**
       * <p>The object property to use in the condition.</p>
       */
      inline SimpleScopeTerm& WithKey(const ScopeFilterKey& value) { SetKey(value); return *this;}
  
      /**
       * <p>The object property to use in the condition.</p>
       */
      inline SimpleScopeTerm& WithKey(ScopeFilterKey&& value) { SetKey(std::move(value)); return *this;}
  
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline SimpleScopeTerm& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline SimpleScopeTerm& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline SimpleScopeTerm& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline SimpleScopeTerm& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
  
      /**
       * <p>An array that lists the values to use in the condition. If the value for the
       * key property is OBJECT_EXTENSION, this array can specify multiple values and
       * Amazon Macie uses an OR operator to join the values. Otherwise, this array can
       * specify only one value. Valid values for each supported property (key) are:</p>
       * <ul><li><p>OBJECT_EXTENSION - A string that represents the file name extension
       * of an object. For example: doc, docx, pdf</p></li>
       * <li><p>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</p></li> <li><p>OBJECT_SIZE - An integer that
       * represents the storage size (in bytes) of an object.</p></li> <li><p>TAG - A
       * string that represents a tag key for an object. For advanced options, use a
       * TagScopeTerm object, instead of a SimpleScopeTerm object, to define a tag-based
       * condition for the job.</p></li></ul>
       */
      inline SimpleScopeTerm& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
  
    private:
  
      JobComparator m_comparator;
      bool m_comparatorHasBeenSet;
  
      ScopeFilterKey m_key;
      bool m_keyHasBeenSet;
  
      Aws::Vector<Aws::String> m_values;
      bool m_valuesHasBeenSet;
    };
  
  } // namespace Model
  } // namespace Macie2
  } // namespace Aws
  