<?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\AndroidManagement;

class Device extends \Google\Collection
{
  protected $collection_key = 'previousDeviceNames';
  /**
   * @var int
   */
  public $apiLevel;
  /**
   * @var ApplicationReport[]
   */
  public $applicationReports;
  protected $applicationReportsType = ApplicationReport::class;
  protected $applicationReportsDataType = 'array';
  /**
   * @var PasswordRequirements[]
   */
  public $appliedPasswordPolicies;
  protected $appliedPasswordPoliciesType = PasswordRequirements::class;
  protected $appliedPasswordPoliciesDataType = 'array';
  /**
   * @var string
   */
  public $appliedPolicyName;
  /**
   * @var string
   */
  public $appliedPolicyVersion;
  /**
   * @var string
   */
  public $appliedState;
  /**
   * @var CommonCriteriaModeInfo
   */
  public $commonCriteriaModeInfo;
  protected $commonCriteriaModeInfoType = CommonCriteriaModeInfo::class;
  protected $commonCriteriaModeInfoDataType = '';
  /**
   * @var DeviceSettings
   */
  public $deviceSettings;
  protected $deviceSettingsType = DeviceSettings::class;
  protected $deviceSettingsDataType = '';
  /**
   * @var UserFacingMessage
   */
  public $disabledReason;
  protected $disabledReasonType = UserFacingMessage::class;
  protected $disabledReasonDataType = '';
  /**
   * @var Display[]
   */
  public $displays;
  protected $displaysType = Display::class;
  protected $displaysDataType = 'array';
  /**
   * @var string
   */
  public $enrollmentTime;
  /**
   * @var string
   */
  public $enrollmentTokenData;
  /**
   * @var string
   */
  public $enrollmentTokenName;
  /**
   * @var HardwareInfo
   */
  public $hardwareInfo;
  protected $hardwareInfoType = HardwareInfo::class;
  protected $hardwareInfoDataType = '';
  /**
   * @var HardwareStatus[]
   */
  public $hardwareStatusSamples;
  protected $hardwareStatusSamplesType = HardwareStatus::class;
  protected $hardwareStatusSamplesDataType = 'array';
  /**
   * @var string
   */
  public $lastPolicyComplianceReportTime;
  /**
   * @var string
   */
  public $lastPolicySyncTime;
  /**
   * @var string
   */
  public $lastStatusReportTime;
  /**
   * @var string
   */
  public $managementMode;
  /**
   * @var MemoryEvent[]
   */
  public $memoryEvents;
  protected $memoryEventsType = MemoryEvent::class;
  protected $memoryEventsDataType = 'array';
  /**
   * @var MemoryInfo
   */
  public $memoryInfo;
  protected $memoryInfoType = MemoryInfo::class;
  protected $memoryInfoDataType = '';
  /**
   * @var string
   */
  public $name;
  /**
   * @var NetworkInfo
   */
  public $networkInfo;
  protected $networkInfoType = NetworkInfo::class;
  protected $networkInfoDataType = '';
  /**
   * @var NonComplianceDetail[]
   */
  public $nonComplianceDetails;
  protected $nonComplianceDetailsType = NonComplianceDetail::class;
  protected $nonComplianceDetailsDataType = 'array';
  /**
   * @var string
   */
  public $ownership;
  /**
   * @var bool
   */
  public $policyCompliant;
  /**
   * @var string
   */
  public $policyName;
  /**
   * @var PowerManagementEvent[]
   */
  public $powerManagementEvents;
  protected $powerManagementEventsType = PowerManagementEvent::class;
  protected $powerManagementEventsDataType = 'array';
  /**
   * @var string[]
   */
  public $previousDeviceNames;
  /**
   * @var SecurityPosture
   */
  public $securityPosture;
  protected $securityPostureType = SecurityPosture::class;
  protected $securityPostureDataType = '';
  /**
   * @var SoftwareInfo
   */
  public $softwareInfo;
  protected $softwareInfoType = SoftwareInfo::class;
  protected $softwareInfoDataType = '';
  /**
   * @var string
   */
  public $state;
  /**
   * @var string[]
   */
  public $systemProperties;
  /**
   * @var User
   */
  public $user;
  protected $userType = User::class;
  protected $userDataType = '';
  /**
   * @var string
   */
  public $userName;

  /**
   * @param int
   */
  public function setApiLevel($apiLevel)
  {
    $this->apiLevel = $apiLevel;
  }
  /**
   * @return int
   */
  public function getApiLevel()
  {
    return $this->apiLevel;
  }
  /**
   * @param ApplicationReport[]
   */
  public function setApplicationReports($applicationReports)
  {
    $this->applicationReports = $applicationReports;
  }
  /**
   * @return ApplicationReport[]
   */
  public function getApplicationReports()
  {
    return $this->applicationReports;
  }
  /**
   * @param PasswordRequirements[]
   */
  public function setAppliedPasswordPolicies($appliedPasswordPolicies)
  {
    $this->appliedPasswordPolicies = $appliedPasswordPolicies;
  }
  /**
   * @return PasswordRequirements[]
   */
  public function getAppliedPasswordPolicies()
  {
    return $this->appliedPasswordPolicies;
  }
  /**
   * @param string
   */
  public function setAppliedPolicyName($appliedPolicyName)
  {
    $this->appliedPolicyName = $appliedPolicyName;
  }
  /**
   * @return string
   */
  public function getAppliedPolicyName()
  {
    return $this->appliedPolicyName;
  }
  /**
   * @param string
   */
  public function setAppliedPolicyVersion($appliedPolicyVersion)
  {
    $this->appliedPolicyVersion = $appliedPolicyVersion;
  }
  /**
   * @return string
   */
  public function getAppliedPolicyVersion()
  {
    return $this->appliedPolicyVersion;
  }
  /**
   * @param string
   */
  public function setAppliedState($appliedState)
  {
    $this->appliedState = $appliedState;
  }
  /**
   * @return string
   */
  public function getAppliedState()
  {
    return $this->appliedState;
  }
  /**
   * @param CommonCriteriaModeInfo
   */
  public function setCommonCriteriaModeInfo(CommonCriteriaModeInfo $commonCriteriaModeInfo)
  {
    $this->commonCriteriaModeInfo = $commonCriteriaModeInfo;
  }
  /**
   * @return CommonCriteriaModeInfo
   */
  public function getCommonCriteriaModeInfo()
  {
    return $this->commonCriteriaModeInfo;
  }
  /**
   * @param DeviceSettings
   */
  public function setDeviceSettings(DeviceSettings $deviceSettings)
  {
    $this->deviceSettings = $deviceSettings;
  }
  /**
   * @return DeviceSettings
   */
  public function getDeviceSettings()
  {
    return $this->deviceSettings;
  }
  /**
   * @param UserFacingMessage
   */
  public function setDisabledReason(UserFacingMessage $disabledReason)
  {
    $this->disabledReason = $disabledReason;
  }
  /**
   * @return UserFacingMessage
   */
  public function getDisabledReason()
  {
    return $this->disabledReason;
  }
  /**
   * @param Display[]
   */
  public function setDisplays($displays)
  {
    $this->displays = $displays;
  }
  /**
   * @return Display[]
   */
  public function getDisplays()
  {
    return $this->displays;
  }
  /**
   * @param string
   */
  public function setEnrollmentTime($enrollmentTime)
  {
    $this->enrollmentTime = $enrollmentTime;
  }
  /**
   * @return string
   */
  public function getEnrollmentTime()
  {
    return $this->enrollmentTime;
  }
  /**
   * @param string
   */
  public function setEnrollmentTokenData($enrollmentTokenData)
  {
    $this->enrollmentTokenData = $enrollmentTokenData;
  }
  /**
   * @return string
   */
  public function getEnrollmentTokenData()
  {
    return $this->enrollmentTokenData;
  }
  /**
   * @param string
   */
  public function setEnrollmentTokenName($enrollmentTokenName)
  {
    $this->enrollmentTokenName = $enrollmentTokenName;
  }
  /**
   * @return string
   */
  public function getEnrollmentTokenName()
  {
    return $this->enrollmentTokenName;
  }
  /**
   * @param HardwareInfo
   */
  public function setHardwareInfo(HardwareInfo $hardwareInfo)
  {
    $this->hardwareInfo = $hardwareInfo;
  }
  /**
   * @return HardwareInfo
   */
  public function getHardwareInfo()
  {
    return $this->hardwareInfo;
  }
  /**
   * @param HardwareStatus[]
   */
  public function setHardwareStatusSamples($hardwareStatusSamples)
  {
    $this->hardwareStatusSamples = $hardwareStatusSamples;
  }
  /**
   * @return HardwareStatus[]
   */
  public function getHardwareStatusSamples()
  {
    return $this->hardwareStatusSamples;
  }
  /**
   * @param string
   */
  public function setLastPolicyComplianceReportTime($lastPolicyComplianceReportTime)
  {
    $this->lastPolicyComplianceReportTime = $lastPolicyComplianceReportTime;
  }
  /**
   * @return string
   */
  public function getLastPolicyComplianceReportTime()
  {
    return $this->lastPolicyComplianceReportTime;
  }
  /**
   * @param string
   */
  public function setLastPolicySyncTime($lastPolicySyncTime)
  {
    $this->lastPolicySyncTime = $lastPolicySyncTime;
  }
  /**
   * @return string
   */
  public function getLastPolicySyncTime()
  {
    return $this->lastPolicySyncTime;
  }
  /**
   * @param string
   */
  public function setLastStatusReportTime($lastStatusReportTime)
  {
    $this->lastStatusReportTime = $lastStatusReportTime;
  }
  /**
   * @return string
   */
  public function getLastStatusReportTime()
  {
    return $this->lastStatusReportTime;
  }
  /**
   * @param string
   */
  public function setManagementMode($managementMode)
  {
    $this->managementMode = $managementMode;
  }
  /**
   * @return string
   */
  public function getManagementMode()
  {
    return $this->managementMode;
  }
  /**
   * @param MemoryEvent[]
   */
  public function setMemoryEvents($memoryEvents)
  {
    $this->memoryEvents = $memoryEvents;
  }
  /**
   * @return MemoryEvent[]
   */
  public function getMemoryEvents()
  {
    return $this->memoryEvents;
  }
  /**
   * @param MemoryInfo
   */
  public function setMemoryInfo(MemoryInfo $memoryInfo)
  {
    $this->memoryInfo = $memoryInfo;
  }
  /**
   * @return MemoryInfo
   */
  public function getMemoryInfo()
  {
    return $this->memoryInfo;
  }
  /**
   * @param string
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * @param NetworkInfo
   */
  public function setNetworkInfo(NetworkInfo $networkInfo)
  {
    $this->networkInfo = $networkInfo;
  }
  /**
   * @return NetworkInfo
   */
  public function getNetworkInfo()
  {
    return $this->networkInfo;
  }
  /**
   * @param NonComplianceDetail[]
   */
  public function setNonComplianceDetails($nonComplianceDetails)
  {
    $this->nonComplianceDetails = $nonComplianceDetails;
  }
  /**
   * @return NonComplianceDetail[]
   */
  public function getNonComplianceDetails()
  {
    return $this->nonComplianceDetails;
  }
  /**
   * @param string
   */
  public function setOwnership($ownership)
  {
    $this->ownership = $ownership;
  }
  /**
   * @return string
   */
  public function getOwnership()
  {
    return $this->ownership;
  }
  /**
   * @param bool
   */
  public function setPolicyCompliant($policyCompliant)
  {
    $this->policyCompliant = $policyCompliant;
  }
  /**
   * @return bool
   */
  public function getPolicyCompliant()
  {
    return $this->policyCompliant;
  }
  /**
   * @param string
   */
  public function setPolicyName($policyName)
  {
    $this->policyName = $policyName;
  }
  /**
   * @return string
   */
  public function getPolicyName()
  {
    return $this->policyName;
  }
  /**
   * @param PowerManagementEvent[]
   */
  public function setPowerManagementEvents($powerManagementEvents)
  {
    $this->powerManagementEvents = $powerManagementEvents;
  }
  /**
   * @return PowerManagementEvent[]
   */
  public function getPowerManagementEvents()
  {
    return $this->powerManagementEvents;
  }
  /**
   * @param string[]
   */
  public function setPreviousDeviceNames($previousDeviceNames)
  {
    $this->previousDeviceNames = $previousDeviceNames;
  }
  /**
   * @return string[]
   */
  public function getPreviousDeviceNames()
  {
    return $this->previousDeviceNames;
  }
  /**
   * @param SecurityPosture
   */
  public function setSecurityPosture(SecurityPosture $securityPosture)
  {
    $this->securityPosture = $securityPosture;
  }
  /**
   * @return SecurityPosture
   */
  public function getSecurityPosture()
  {
    return $this->securityPosture;
  }
  /**
   * @param SoftwareInfo
   */
  public function setSoftwareInfo(SoftwareInfo $softwareInfo)
  {
    $this->softwareInfo = $softwareInfo;
  }
  /**
   * @return SoftwareInfo
   */
  public function getSoftwareInfo()
  {
    return $this->softwareInfo;
  }
  /**
   * @param string
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return string
   */
  public function getState()
  {
    return $this->state;
  }
  /**
   * @param string[]
   */
  public function setSystemProperties($systemProperties)
  {
    $this->systemProperties = $systemProperties;
  }
  /**
   * @return string[]
   */
  public function getSystemProperties()
  {
    return $this->systemProperties;
  }
  /**
   * @param User
   */
  public function setUser(User $user)
  {
    $this->user = $user;
  }
  /**
   * @return User
   */
  public function getUser()
  {
    return $this->user;
  }
  /**
   * @param string
   */
  public function setUserName($userName)
  {
    $this->userName = $userName;
  }
  /**
   * @return string
   */
  public function getUserName()
  {
    return $this->userName;
  }
}

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