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

class ReservationBlock extends \Google\Model
{
  /**
   * Resources are being allocated for the reservation block.
   */
  public const STATUS_CREATING = 'CREATING';
  /**
   * Reservation block is currently being deleted.
   */
  public const STATUS_DELETING = 'DELETING';
  public const STATUS_INVALID = 'INVALID';
  /**
   * Reservation block has allocated all its resources.
   */
  public const STATUS_READY = 'READY';
  /**
   * [Output Only] The number of resources that are allocated in this
   * reservation block.
   *
   * @var int
   */
  public $count;
  /**
   * [Output Only] Creation timestamp inRFC3339 text format.
   *
   * @var string
   */
  public $creationTimestamp;
  protected $healthInfoType = ReservationBlockHealthInfo::class;
  protected $healthInfoDataType = '';
  /**
   * [Output Only] The unique identifier for the resource. This identifier is
   * defined by the server.
   *
   * @var string
   */
  public $id;
  /**
   * [Output Only] The number of instances that are currently in use on this
   * reservation block.
   *
   * @var int
   */
  public $inUseCount;
  /**
   * [Output Only] Type of the resource. Alwayscompute#reservationBlock for
   * reservation blocks.
   *
   * @var string
   */
  public $kind;
  /**
   * [Output Only] The name of this reservation block generated by Google
   * Compute Engine. The name must be 1-63 characters long, and comply with
   * RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
   *
   * @var string
   */
  public $name;
  protected $physicalTopologyType = ReservationBlockPhysicalTopology::class;
  protected $physicalTopologyDataType = '';
  protected $reservationMaintenanceType = GroupMaintenanceInfo::class;
  protected $reservationMaintenanceDataType = '';
  /**
   * [Output Only] The number of reservation subBlocks associated with this
   * reservation block.
   *
   * @var int
   */
  public $reservationSubBlockCount;
  /**
   * [Output Only] The number of in-use reservation subBlocks associated with
   * this reservation block. If at least one VM is running on a subBlock, it is
   * considered in-use.
   *
   * @var int
   */
  public $reservationSubBlockInUseCount;
  /**
   * [Output Only] Server-defined fully-qualified URL for this resource.
   *
   * @var string
   */
  public $selfLink;
  /**
   * [Output Only] Server-defined URL for this resource with the resource id.
   *
   * @var string
   */
  public $selfLinkWithId;
  /**
   * [Output Only] Status of the reservation block.
   *
   * @var string
   */
  public $status;
  /**
   * [Output Only] Zone in which the reservation block resides.
   *
   * @var string
   */
  public $zone;

  /**
   * [Output Only] The number of resources that are allocated in this
   * reservation block.
   *
   * @param int $count
   */
  public function setCount($count)
  {
    $this->count = $count;
  }
  /**
   * @return int
   */
  public function getCount()
  {
    return $this->count;
  }
  /**
   * [Output Only] Creation timestamp inRFC3339 text format.
   *
   * @param string $creationTimestamp
   */
  public function setCreationTimestamp($creationTimestamp)
  {
    $this->creationTimestamp = $creationTimestamp;
  }
  /**
   * @return string
   */
  public function getCreationTimestamp()
  {
    return $this->creationTimestamp;
  }
  /**
   * [Output Only] Health information for the reservation block.
   *
   * @param ReservationBlockHealthInfo $healthInfo
   */
  public function setHealthInfo(ReservationBlockHealthInfo $healthInfo)
  {
    $this->healthInfo = $healthInfo;
  }
  /**
   * @return ReservationBlockHealthInfo
   */
  public function getHealthInfo()
  {
    return $this->healthInfo;
  }
  /**
   * [Output Only] The unique identifier for the resource. This identifier is
   * defined by the server.
   *
   * @param string $id
   */
  public function setId($id)
  {
    $this->id = $id;
  }
  /**
   * @return string
   */
  public function getId()
  {
    return $this->id;
  }
  /**
   * [Output Only] The number of instances that are currently in use on this
   * reservation block.
   *
   * @param int $inUseCount
   */
  public function setInUseCount($inUseCount)
  {
    $this->inUseCount = $inUseCount;
  }
  /**
   * @return int
   */
  public function getInUseCount()
  {
    return $this->inUseCount;
  }
  /**
   * [Output Only] Type of the resource. Alwayscompute#reservationBlock for
   * reservation blocks.
   *
   * @param string $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * [Output Only] The name of this reservation block generated by Google
   * Compute Engine. The name must be 1-63 characters long, and comply with
   * RFC1035 @pattern [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * [Output Only] The physical topology of the reservation block.
   *
   * @param ReservationBlockPhysicalTopology $physicalTopology
   */
  public function setPhysicalTopology(ReservationBlockPhysicalTopology $physicalTopology)
  {
    $this->physicalTopology = $physicalTopology;
  }
  /**
   * @return ReservationBlockPhysicalTopology
   */
  public function getPhysicalTopology()
  {
    return $this->physicalTopology;
  }
  /**
   * [Output Only] Maintenance information for this reservation block.
   *
   * @param GroupMaintenanceInfo $reservationMaintenance
   */
  public function setReservationMaintenance(GroupMaintenanceInfo $reservationMaintenance)
  {
    $this->reservationMaintenance = $reservationMaintenance;
  }
  /**
   * @return GroupMaintenanceInfo
   */
  public function getReservationMaintenance()
  {
    return $this->reservationMaintenance;
  }
  /**
   * [Output Only] The number of reservation subBlocks associated with this
   * reservation block.
   *
   * @param int $reservationSubBlockCount
   */
  public function setReservationSubBlockCount($reservationSubBlockCount)
  {
    $this->reservationSubBlockCount = $reservationSubBlockCount;
  }
  /**
   * @return int
   */
  public function getReservationSubBlockCount()
  {
    return $this->reservationSubBlockCount;
  }
  /**
   * [Output Only] The number of in-use reservation subBlocks associated with
   * this reservation block. If at least one VM is running on a subBlock, it is
   * considered in-use.
   *
   * @param int $reservationSubBlockInUseCount
   */
  public function setReservationSubBlockInUseCount($reservationSubBlockInUseCount)
  {
    $this->reservationSubBlockInUseCount = $reservationSubBlockInUseCount;
  }
  /**
   * @return int
   */
  public function getReservationSubBlockInUseCount()
  {
    return $this->reservationSubBlockInUseCount;
  }
  /**
   * [Output Only] Server-defined fully-qualified URL for this resource.
   *
   * @param string $selfLink
   */
  public function setSelfLink($selfLink)
  {
    $this->selfLink = $selfLink;
  }
  /**
   * @return string
   */
  public function getSelfLink()
  {
    return $this->selfLink;
  }
  /**
   * [Output Only] Server-defined URL for this resource with the resource id.
   *
   * @param string $selfLinkWithId
   */
  public function setSelfLinkWithId($selfLinkWithId)
  {
    $this->selfLinkWithId = $selfLinkWithId;
  }
  /**
   * @return string
   */
  public function getSelfLinkWithId()
  {
    return $this->selfLinkWithId;
  }
  /**
   * [Output Only] Status of the reservation block.
   *
   * Accepted values: CREATING, DELETING, INVALID, READY
   *
   * @param self::STATUS_* $status
   */
  public function setStatus($status)
  {
    $this->status = $status;
  }
  /**
   * @return self::STATUS_*
   */
  public function getStatus()
  {
    return $this->status;
  }
  /**
   * [Output Only] Zone in which the reservation block resides.
   *
   * @param string $zone
   */
  public function setZone($zone)
  {
    $this->zone = $zone;
  }
  /**
   * @return string
   */
  public function getZone()
  {
    return $this->zone;
  }
}

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