<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Connectors;

class Connection extends \Google\Collection
{
  protected $collection_key = 'egressBackends';
  protected $authConfigType = AuthConfig::class;
  protected $authConfigDataType = '';
  protected $configVariablesType = ConfigVariable::class;
  protected $configVariablesDataType = 'array';
  public $connectorVersion;
  public $createTime;
  public $description;
  public $egressBackends;
  public $envoyImageLocation;
  public $imageLocation;
  public $inactive;
  public $labels;
  protected $lockConfigType = LockConfig::class;
  protected $lockConfigDataType = '';
  public $name;
  public $serviceAccount;
  public $serviceDirectory;
  protected $statusType = ConnectionStatus::class;
  protected $statusDataType = '';
  public $updateTime;

  /**
   * @param AuthConfig
   */
  public function setAuthConfig(AuthConfig $authConfig)
  {
    $this->authConfig = $authConfig;
  }
  /**
   * @return AuthConfig
   */
  public function getAuthConfig()
  {
    return $this->authConfig;
  }
  /**
   * @param ConfigVariable[]
   */
  public function setConfigVariables($configVariables)
  {
    $this->configVariables = $configVariables;
  }
  /**
   * @return ConfigVariable[]
   */
  public function getConfigVariables()
  {
    return $this->configVariables;
  }
  public function setConnectorVersion($connectorVersion)
  {
    $this->connectorVersion = $connectorVersion;
  }
  public function getConnectorVersion()
  {
    return $this->connectorVersion;
  }
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  public function getCreateTime()
  {
    return $this->createTime;
  }
  public function setDescription($description)
  {
    $this->description = $description;
  }
  public function getDescription()
  {
    return $this->description;
  }
  public function setEgressBackends($egressBackends)
  {
    $this->egressBackends = $egressBackends;
  }
  public function getEgressBackends()
  {
    return $this->egressBackends;
  }
  public function setEnvoyImageLocation($envoyImageLocation)
  {
    $this->envoyImageLocation = $envoyImageLocation;
  }
  public function getEnvoyImageLocation()
  {
    return $this->envoyImageLocation;
  }
  public function setImageLocation($imageLocation)
  {
    $this->imageLocation = $imageLocation;
  }
  public function getImageLocation()
  {
    return $this->imageLocation;
  }
  public function setInactive($inactive)
  {
    $this->inactive = $inactive;
  }
  public function getInactive()
  {
    return $this->inactive;
  }
  public function setLabels($labels)
  {
    $this->labels = $labels;
  }
  public function getLabels()
  {
    return $this->labels;
  }
  /**
   * @param LockConfig
   */
  public function setLockConfig(LockConfig $lockConfig)
  {
    $this->lockConfig = $lockConfig;
  }
  /**
   * @return LockConfig
   */
  public function getLockConfig()
  {
    return $this->lockConfig;
  }
  public function setName($name)
  {
    $this->name = $name;
  }
  public function getName()
  {
    return $this->name;
  }
  public function setServiceAccount($serviceAccount)
  {
    $this->serviceAccount = $serviceAccount;
  }
  public function getServiceAccount()
  {
    return $this->serviceAccount;
  }
  public function setServiceDirectory($serviceDirectory)
  {
    $this->serviceDirectory = $serviceDirectory;
  }
  public function getServiceDirectory()
  {
    return $this->serviceDirectory;
  }
  /**
   * @param ConnectionStatus
   */
  public function setStatus(ConnectionStatus $status)
  {
    $this->status = $status;
  }
  /**
   * @return ConnectionStatus
   */
  public function getStatus()
  {
    return $this->status;
  }
  public function setUpdateTime($updateTime)
  {
    $this->updateTime = $updateTime;
  }
  public function getUpdateTime()
  {
    return $this->updateTime;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Connection::class, 'Google_Service_Connectors_Connection');
