| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <?php
- /**
- * Copyright 2022 UCloud Technology Co., Ltd.
- *
- * 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 UCloud\UPhone\Apis;
- use UCloud\Core\Request\Request;
- class GetUPhoneServerPriceRequest extends Request
- {
- public function __construct()
- {
- parent::__construct(["Action" => "GetUPhoneServerPrice"]);
- $this->markRequired("CityId");
- $this->markRequired("ServerModelName");
- }
-
- /**
- * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
- *
- * @return string|null
- */
- public function getProjectId()
- {
- return $this->get("ProjectId");
- }
- /**
- * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
- *
- * @param string $projectId
- */
- public function setProjectId($projectId)
- {
- $this->set("ProjectId", $projectId);
- }
- /**
- * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
- *
- * @return string|null
- */
- public function getCityId()
- {
- return $this->get("CityId");
- }
- /**
- * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
- *
- * @param string $cityId
- */
- public function setCityId($cityId)
- {
- $this->set("CityId", $cityId);
- }
- /**
- * ServerModelName: 服务器规格名称
- *
- * @return string|null
- */
- public function getServerModelName()
- {
- return $this->get("ServerModelName");
- }
- /**
- * ServerModelName: 服务器规格名称
- *
- * @param string $serverModelName
- */
- public function setServerModelName($serverModelName)
- {
- $this->set("ServerModelName", $serverModelName);
- }
- /**
- * ChargeType: 计费模式。枚举值为:> Year,按年付费;> Month,按月付费;> Dynamic,按小时预付费; 如果不传某个枚举值,默认返回年付、月付的价格组合集。
- *
- * @return string|null
- */
- public function getChargeType()
- {
- return $this->get("ChargeType");
- }
- /**
- * ChargeType: 计费模式。枚举值为:> Year,按年付费;> Month,按月付费;> Dynamic,按小时预付费; 如果不传某个枚举值,默认返回年付、月付的价格组合集。
- *
- * @param string $chargeType
- */
- public function setChargeType($chargeType)
- {
- $this->set("ChargeType", $chargeType);
- }
- /**
- * Quantity: 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。
- *
- * @return integer|null
- */
- public function getQuantity()
- {
- return $this->get("Quantity");
- }
- /**
- * Quantity: 购买时长。默认: 1。 月付时,此参数传0,代表了购买至月末。
- *
- * @param int $quantity
- */
- public function setQuantity($quantity)
- {
- $this->set("Quantity", $quantity);
- }
- /**
- * IpDestRegion: 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
- *
- * @return string|null
- */
- public function getIpDestRegion()
- {
- return $this->get("IpDestRegion");
- }
- /**
- * IpDestRegion: 购买独立IP必须此参数。绑定的目的地域。参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
- *
- * @param string $ipDestRegion
- */
- public function setIpDestRegion($ipDestRegion)
- {
- $this->set("IpDestRegion", $ipDestRegion);
- }
- /**
- * Bandwidth: 购买独立IP需要此参数。共享带宽总值。
- *
- * @return integer|null
- */
- public function getBandwidth()
- {
- return $this->get("Bandwidth");
- }
- /**
- * Bandwidth: 购买独立IP需要此参数。共享带宽总值。
- *
- * @param int $bandwidth
- */
- public function setBandwidth($bandwidth)
- {
- $this->set("Bandwidth", $bandwidth);
- }
- /**
- * IpCount: 购买独立IP需要此参数。需要的eip数量。
- *
- * @return integer|null
- */
- public function getIpCount()
- {
- return $this->get("IpCount");
- }
- /**
- * IpCount: 购买独立IP需要此参数。需要的eip数量。
- *
- * @param int $ipCount
- */
- public function setIpCount($ipCount)
- {
- $this->set("IpCount", $ipCount);
- }
- }
|