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

namespace Google\Cloud\VMMigration\V1\AwsSourceDetails;

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

/**
 * Message describing AWS Credentials using access key id and secret.
 *
 * Generated from protobuf message <code>google.cloud.vmmigration.v1.AwsSourceDetails.AccessKeyCredentials</code>
 */
class AccessKeyCredentials extends \Google\Protobuf\Internal\Message
{
    /**
     * AWS access key ID.
     *
     * Generated from protobuf field <code>string access_key_id = 1;</code>
     */
    private $access_key_id = '';
    /**
     * Input only. AWS secret access key.
     *
     * Generated from protobuf field <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     */
    private $secret_access_key = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $access_key_id
     *           AWS access key ID.
     *     @type string $secret_access_key
     *           Input only. AWS secret access key.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vmmigration\V1\Vmmigration::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Input only. AWS secret access key.
     *
     * Generated from protobuf field <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     * @return string
     */
    public function getSecretAccessKey()
    {
        return $this->secret_access_key;
    }

    /**
     * Input only. AWS secret access key.
     *
     * Generated from protobuf field <code>string secret_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setSecretAccessKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->secret_access_key = $var;

        return $this;
    }

}


