<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * SSH configuration for AWS resources.
 *
 * @deprecated
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.AwsSshConfig</code>
 */
class AwsSshConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The name of the EC2 key pair used to login into cluster machines.
     *
     * Generated from protobuf field <code>string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $ec2_key_pair = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ec2_key_pair
     *           Required. The name of the EC2 key pair used to login into cluster machines.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AwsResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The name of the EC2 key pair used to login into cluster machines.
     *
     * Generated from protobuf field <code>string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getEc2KeyPair()
    {
        return $this->ec2_key_pair;
    }

    /**
     * Required. The name of the EC2 key pair used to login into cluster machines.
     *
     * Generated from protobuf field <code>string ec2_key_pair = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setEc2KeyPair($var)
    {
        GPBUtil::checkString($var, True);
        $this->ec2_key_pair = $var;

        return $this;
    }

}

