<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/gkemulticloud/v1/aws_resources.proto

namespace Google\Cloud\GkeMultiCloud\V1;

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

/**
 * Configuration related to application-layer secrets encryption.
 *
 * @deprecated
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.AwsDatabaseEncryption</code>
 */
class AwsDatabaseEncryption extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     *
     * Generated from protobuf field <code>string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $kms_key_arn = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $kms_key_arn
     *           Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     *
     * Generated from protobuf field <code>string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getKmsKeyArn()
    {
        return $this->kms_key_arn;
    }

    /**
     * Required. The ARN of the AWS KMS key used to encrypt cluster secrets.
     *
     * Generated from protobuf field <code>string kms_key_arn = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setKmsKeyArn($var)
    {
        GPBUtil::checkString($var, True);
        $this->kms_key_arn = $var;

        return $this;
    }

}

