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

namespace Google\Cloud\StorageTransfer\V1;

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

/**
 * AWS access key (see
 * [AWS Security
 * Credentials](https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)).
 * For information on our data retention policy for user credentials, see
 * [User credentials](https://cloud.google.com/storage-transfer/docs/data-retention#user-credentials).
 *
 * Generated from protobuf message <code>google.storagetransfer.v1.AwsAccessKey</code>
 */
class AwsAccessKey extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. AWS access key ID.
     *
     * Generated from protobuf field <code>string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $access_key_id = '';
    /**
     * Required. AWS secret access key. This field is not returned in RPC
     * responses.
     *
     * Generated from protobuf field <code>string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $secret_access_key = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $access_key_id
     *           Required. AWS access key ID.
     *     @type string $secret_access_key
     *           Required. AWS secret access key. This field is not returned in RPC
     *           responses.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Storagetransfer\V1\TransferTypes::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. AWS access key ID.
     *
     * Generated from protobuf field <code>string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAccessKeyId()
    {
        return $this->access_key_id;
    }

    /**
     * Required. AWS access key ID.
     *
     * Generated from protobuf field <code>string access_key_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAccessKeyId($var)
    {
        GPBUtil::checkString($var, True);
        $this->access_key_id = $var;

        return $this;
    }

    /**
     * Required. AWS secret access key. This field is not returned in RPC
     * responses.
     *
     * Generated from protobuf field <code>string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSecretAccessKey()
    {
        return $this->secret_access_key;
    }

    /**
     * Required. AWS secret access key. This field is not returned in RPC
     * responses.
     *
     * Generated from protobuf field <code>string secret_access_key = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSecretAccessKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->secret_access_key = $var;

        return $this;
    }

}

