<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2/dlp.proto

namespace Google\Cloud\Dlp\V2;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Amazon S3 bucket.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.AmazonS3Bucket</code>
 */
class AmazonS3Bucket extends \Google\Protobuf\Internal\Message
{
    /**
     * The AWS account.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.AwsAccount aws_account = 1;</code>
     */
    protected $aws_account = null;
    /**
     * Required. The bucket name.
     *
     * Generated from protobuf field <code>string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $bucket_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dlp\V2\AwsAccount $aws_account
     *           The AWS account.
     *     @type string $bucket_name
     *           Required. The bucket name.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * The AWS account.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.AwsAccount aws_account = 1;</code>
     * @return \Google\Cloud\Dlp\V2\AwsAccount|null
     */
    public function getAwsAccount()
    {
        return $this->aws_account;
    }

    public function hasAwsAccount()
    {
        return isset($this->aws_account);
    }

    public function clearAwsAccount()
    {
        unset($this->aws_account);
    }

    /**
     * The AWS account.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2.AwsAccount aws_account = 1;</code>
     * @param \Google\Cloud\Dlp\V2\AwsAccount $var
     * @return $this
     */
    public function setAwsAccount($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AwsAccount::class);
        $this->aws_account = $var;

        return $this;
    }

    /**
     * Required. The bucket name.
     *
     * Generated from protobuf field <code>string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getBucketName()
    {
        return $this->bucket_name;
    }

    /**
     * Required. The bucket name.
     *
     * Generated from protobuf field <code>string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setBucketName($var)
    {
        GPBUtil::checkString($var, True);
        $this->bucket_name = $var;

        return $this;
    }

}

