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/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace Macie2
  {
  namespace Model
  {
  
    /**
     * <p>Specifies which AWS account owns the S3 buckets that a classification job
     * analyzes, and the buckets to analyze for the account.</p><p><h3>See Also:</h3>  
     * <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/S3BucketDefinitionForJob">AWS
     * API Reference</a></p>
     */
    class AWS_MACIE2_API S3BucketDefinitionForJob
    {
    public:
      S3BucketDefinitionForJob();
      S3BucketDefinitionForJob(Aws::Utils::Json::JsonView jsonValue);
      S3BucketDefinitionForJob& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The unique identifier for the AWS account that owns the buckets. If you
       * specify this value and don't specify a value for the buckets array, the job
       * analyzes objects in all the buckets that are owned by the account and meet other
       * conditions specified for the job.</p>
       */
      inline const Aws::String& GetAccountId() const{ return m_accountId; }
  
      /**
       * <p>The unique identifier for the AWS account that owns the buckets. If you
       * specify this value and don't specify a value for the buckets array, the job
       * analyzes objects in all the buckets that are owned by the account and meet other
       * conditions specified for the job.</p>
       */
      inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
  
      /**
       * <p>The unique identifier for the AWS account that owns the buckets. If you
       * specify this value and don't specify a value for the buckets array, the job
       * analyzes objects in all the buckets that are owned by the account and meet other
       * conditions specified for the job.</p>
       */
      inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
  
      /**
       * <p>The unique identifier for the AWS account that owns the buckets. If you
       * specify this value and don't specify a value for the buckets array, the job
       * analyzes objects in all the buckets that are owned by the account and meet other
       * conditions specified for the job.</p>
       */
      inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
  
      /**
       * <p>The unique identifier for the AWS account that owns the buckets. If you
       * specify this value and don't specify a value for the buckets array, the job
       * analyzes objects in all the buckets that are owned by the account and meet other
       * conditions specified for the job.</p>
       */
      inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
  
      /**
       * <p>The unique identifier for the AWS account that owns the buckets. If you
       * specify this value and don't specify a value for the buckets array, the job
       * analyzes objects in all the buckets that are owned by the account and meet other
       * conditions specified for the job.</p>
       */
      inline S3BucketDefinitionForJob& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
  
      /**
       * <p>The unique identifier for the AWS account that owns the buckets. If you
       * specify this value and don't specify a value for the buckets array, the job
       * analyzes objects in all the buckets that are owned by the account and meet other
       * conditions specified for the job.</p>
       */
      inline S3BucketDefinitionForJob& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
  
      /**
       * <p>The unique identifier for the AWS account that owns the buckets. If you
       * specify this value and don't specify a value for the buckets array, the job
       * analyzes objects in all the buckets that are owned by the account and meet other
       * conditions specified for the job.</p>
       */
      inline S3BucketDefinitionForJob& WithAccountId(const char* value) { SetAccountId(value); return *this;}
  
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline const Aws::Vector<Aws::String>& GetBuckets() const{ return m_buckets; }
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline bool BucketsHasBeenSet() const { return m_bucketsHasBeenSet; }
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline void SetBuckets(const Aws::Vector<Aws::String>& value) { m_bucketsHasBeenSet = true; m_buckets = value; }
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline void SetBuckets(Aws::Vector<Aws::String>&& value) { m_bucketsHasBeenSet = true; m_buckets = std::move(value); }
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline S3BucketDefinitionForJob& WithBuckets(const Aws::Vector<Aws::String>& value) { SetBuckets(value); return *this;}
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline S3BucketDefinitionForJob& WithBuckets(Aws::Vector<Aws::String>&& value) { SetBuckets(std::move(value)); return *this;}
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline S3BucketDefinitionForJob& AddBuckets(const Aws::String& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; }
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline S3BucketDefinitionForJob& AddBuckets(Aws::String&& value) { m_bucketsHasBeenSet = true; m_buckets.push_back(std::move(value)); return *this; }
  
      /**
       * <p>An array that lists the names of the buckets.</p>
       */
      inline S3BucketDefinitionForJob& AddBuckets(const char* value) { m_bucketsHasBeenSet = true; m_buckets.push_back(value); return *this; }
  
    private:
  
      Aws::String m_accountId;
      bool m_accountIdHasBeenSet;
  
      Aws::Vector<Aws::String> m_buckets;
      bool m_bucketsHasBeenSet;
    };
  
  } // namespace Model
  } // namespace Macie2
  } // namespace Aws
  